Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Eudora / January 2004



Tip: Looking for answers? Try searching our database.

Eudora and Applescript - select a message.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
grasshopper - 25 Jan 2004 23:37 GMT
this should be a simple one, but I'm missing it somehow... I need to
select a message in a mailbox, so that my script can act on it
(assuming that there is no message currently selected/highlighted).

I though something like this would do it:

tell application "Eudora" select message 1 of mailbox "Spamnix" end tell

but the select command isn't available in Eudora (6.0.2, OS X 10.2.8).

I hunted through the dictionary (yes, even the Standard Suite 8^) , but
couldn't find anything appropriate. I couldn't find anything like a
'current message' object, either, that I could set.

I can't just act programatically on the message, I actually do need the
message selected in the UI, so that the user (me) knows what's about to
be acted upon before I hit the spamcop-like script. I'd hate to
inadvertently report the wrong message to 'the cops'.

any ideas? I feel like George Jetson, click click click.

thanks, g.
Dennis M. Marks - 26 Jan 2004 01:42 GMT
I have read the following message from grasshopper <nospam@thevoid.com>
and have decided to lend my vast knowledge.

The writer said:
> this should be a simple one, but I'm missing it somehow... I need to
> select a message in a mailbox, so that my script can act on it
[quoted text clipped - 18 lines]
>
> thanks, g.

and my reply is:

Why not just click on the message in the "in" or "junk" box and run the
following script?

tell application "Eudora"
  forward first message
  set field "To" of first message to "uce@ftc.gov"
  set field "From" of first message to "you@you.net"
  set oldSubject to field "Subject" of first message
  set field "Subject" of first message to "SPAM [" & oldSubject & "]"
  set oldText to field "" of first message
  set field "" of first message to "The following SPAM has been
rejected and is being forwarded to you for action:" & return & return &
oldText
  queue first message
end tell

Signature

Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net

grasshopper - 26 Jan 2004 03:21 GMT
I actually have the script working perfectly... it looks up the source
client IP address, determines if the address is in ARIN, RIPE, or
APNIC, finds the appropriate abuse address based on the PTR, and
forwards the message with full headers to that address.

works like a charm.

the script is designed to work on the selected message.

however, I have to actually select a message manually. since my spam
filter (Spamnix, incidentally) does a nice job of putting all my spam
into a separate mail box, then all I have to do is hit my hot key that
fires the script, and it does its thing.

I need to run the script on each message, rather than let the script go
to town on everything in the mailbox. (several reasons for that: I
might spot an abuse reply message, or a message may have been marked as
spam that isn't, so I need to spend the 1/4 second per message thinking
if I want to report it.

the only thing the script doesn't do is politely select the next
message for processing  in the mailbox I'm working on.

icing, man. give no quarter to the spammers.

g.

> I have read the following message from grasshopper <nospam@thevoid.com>
> and have decided to lend my vast knowledge.
[quoted text clipped - 40 lines]
>    queue first message
> end tell
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.