Make a rule:
[...]
If
<From> <Contains> <
[email protected]>
<Specific header> <References> <Contains> <
[email protected]>
<Specific header> <In-Reply-To> <Contains> <
[email protected]>
The condition "<Specified header>" only exists for e-mail messages, not for
news. Did I overlook anything?
No, you're right. I was thinking of Custom Views, where all the criteria are
available for news messages as well. News Rules are very much less
versatile. I suppose there might be a way to run a script from an Outgoing
Rule that assigns a category to the sender of the message you're replying to
.. But then _all_ their messages would have that category - not what you
want. News message replies also don't have links to the messages they're
replying to, so that's no good either.
But a news rule on All Messages or specified newsgroups running an
AppleScript that looked for the References header would work.
tell application "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set theHeaders to headers of theMsg
set AppleScript's text item delimiters to {return & "References: "}
try
set theRefs to text item 2 of theHeaders
set theRefs to paragraph 1 of theRefs
on error -- no References
set AppleScript's text item delimiters to {""}
return
end try
set AppleScript's text item delimiters to {""}
if theRefs contains "
[email protected]" then
set category of theMsg to {category "Personal"} --< name of category
here
end if
end tell
Perhaps I forgot to mention that I'm using Office:mac 2004...
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <
http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <
http://macscripter.net/scriptbuilders/>
Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.
PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.