on 05/18/2004 01:22 AM, Paul Berkowitz at [EMAIL PROTECTED] wrote:
> 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?
I host perhaps a thousand domains worth of email, postmaster@ is set up on
all those domains and forwarded to me at postmaster@ so I can make sure that
any spam reports from stupid clients who are abusing my service can be
removed. I need to get those reports, of course, I get
[EMAIL PROTECTED] directly as well as about 10 other domains of mine
that are personal, the remaining other domains that are clients hosted
domains, I get them via a forward to [EMAIL PROTECTED]
Your script:
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
Looks to me like it will always forward to [EMAIL PROTECTED], is this
correct?
What I was loking for was if to postmaster, move and DO NOY FORWARD else
move and FORWARD.
Would this do that?
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
else
set theFwd to forward oneMsg to "[EMAIL PROTECTED]" without
opening window
send theFwd with sending later
move oneMsg to folder id 6
end if
end repeat
end tell
Is AS case insensitive, or should I do something like:
lowercase(first recipient)
Thanks Paul!
--
-------------------------------------------------------------
Scott Haneda Tel: 415.898.2602
http://www.newgeo.com Fax: 313.557.5052
[EMAIL PROTECTED] Novato, CA U.S.A.
--
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/>