Eudora Help, Please
Eudora Help, Please
- Subject: Eudora Help, Please
- From: Marconi <email@hidden>
- Date: Sat, 12 Jul 2003 11:16:02 -0700
I'm trying to identify the biggest sources of spam I receive and I'm
thinking that the "Received: from" headers can help. In my spam
mailbox, I'd like to be able to select a group of emails and then
invoke a script to do the following:
open a blank, text document ('New Text Document' from the File menu)
for each selected email...
push the blah-blah button "set show all headers to true" (if
necessary to be able to copy header info);
open the email, if necessary;
look for all lines beginning with "Received: from" and copy those
entire lines;
paste the Received: from lines into the text document (followed by a newline)
close the spam email
I can then save the text document and use BBEdit to clean it up,
leaving only the IP addresses of the Received: from servers. The most
frequently appearing IPs will get some special attention.
The following is not a real script. The syntax is wrong and I don't
even know if a script can open a new text document. I can't even
figure out how to get a count of messages in the selection so the
script knows how many times to do the repeat loop.
tell application "Eudora"
open a text document
set spamlist to selection
set HowMany to count of messages in spamlist
repeat with thismessage from 1 to HowMany
set show all headers to true
set ReceivedLine to text of (get field "Received: from")
Paste ReceivedLine into text document -- followed by a newline
end repeat -- move on to next message
end tell
I hope it's clear what I'm trying to do... Can anyone guide me to the
correct syntax?
Eudora 5.2.1 on OSX 10.2.6.
--
"A man who believes in nothing will fall for anything." -- Malcolm X
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.