On 5/18/04 12:51 AM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
> on 05/18/2004 12:43 AM, Paul Berkowitz at [EMAIL PROTECTED] wrote: > >>> I need a condition in it... >>> If to: starts with postmaster@ then >> >> If "to:" starts with postmaster@ ??? Hello? Are you sure you don't mean >> "From:"? These are messages sent to you? Could they be TO a postmaster with >> you as CC? Sure you don't actually mean "FROM"? > > No, I really mean to: > Here is the idea, you can spam filter all you want, hwoever, one can not > spam filter on postmaster@ or abuse@ since I need to get all those messages, > customers will report spam to me, if I were to filter on that, I would be > thinking customer email was spam, so I need to get them. > > I don't want to forward off any messages that ever come to any poastmaster@ > account to any honeypot, spamtrop, or otherwise automated system. The script lines I wrote below do look for the postmaster@ in the 'to' as you asked. They will only ever come to you if you are a postmaster at one of your email addresses, or if you are a CC [NOT a forward] of a message sent to a postmaster. Are you? > > >>> just move the message to "!!!SPAM!!!" >> >> I thought you wanted it to go to Junk E-mail folder. (We generally don't >> have modifiers like "just" in scripting languages, BTW. ;-) > > Any they always told me applescript is english list :-) > >> tell application "Microsoft Entourage" >> set msgList to current messages >> repeat with oneMsg in msgList >> if address of address of (first recipient of oneMsg) starts with >> "postmaster@" then >> move oneMsg to folder id 6 -- this is Junk E-mail folder, named >> whatever you like, or else: folder "Junk E--mail" >> end if >> set theFwd to forward oneMsg to "[EMAIL PROTECTED]" without opening >> window >> send theFwd with sending later >> end repeat >> end tell > > Id 6 implies that I can actually rename this folder, is this possible, I am > not seeing how? Oh, you're right I see. It was renameable in an earlier beta. I guess when it is create by the app, it's like the other special folders This 'id 6' is still useful to know if you were writing scripts for other people (who might not be English-speaking so their localized Entourage will have a different name for the folder). You can use either method if for yourself: using the name "Junk E-mail" is fine. -- Paul Berkowitz MVP Entourage Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html> AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/> PLEASE always state which version of Entourage you are using - **2004**, X or 2001. It's often impossible to answer your questions otherwise. -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
