Title: Re: Same folder as original - new
On 7/31/01 10:39 AM, "Carsten & Uni Vous Ortmann" <[EMAIL PROTECTED]> wrote:
>
>
>> From: Allen Watson <[EMAIL PROTECTED]>
>> Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
>> Date: Mon, 30 Jul 2001 17:18:23 -0700
>> To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
>> Subject: Re: Same folder as original - new
>>
>> See Paul Berkowitz's AppleScript,
>> <http://applescriptcentral.com/ftpinwin.php?id=39>
>>
>> File Reply in Same Folder
>>
>> Hm. That files <your> reply in the same folder as an original message, which
>> isn't the same thing. I suppose one could write a script to do what you
>> want. Would the idea be, if the incoming message is a reply to one of my
>> messages, file it in the same folder as my original message?
> Yep, that's it.
>
>> No exceptions?
> No!
>
>> (I'm about to leave on 2 weeks vacation, and Paul B, the other scripting
>> guru--the main one--will be back from his vacation in a few days and
>> catching up. So don't hold your breath...)
> OK, I won't, but thanks for your reply and I do hope that you or Paul or
> some other wizards can help me solve this one.
Hi, Carsten. Actually this one should be much easier than my File Reply script, using (more-or-less) the feature Entourage itself uses. Entourage automatically links incoming replies to a message you wrote to that message - something Allen in fact noticed first as a possible device for getting to it.
Since it's always possible that someone would link other messages to that original and/or to the contact sending the reply, which might in turn be linked "ion series' (by association) to the new incoming message (I haven't checked this yet), I'll double-check by specifying the most recent linked message with the same subject (with or without the "Re: "). So if the sender has changed the subject, it won't work - but then again, if the sender changed the subject, I imagine Entourage might not detect the link anyway (haven't checked that either).
Anyway try this out from a Mail Rule and tell me how it works. To make your mail retrieving (Send & Receive All operation) not slow down by too much and too many rules, you should probably specify the criteria as
<Subject> <Starts with> <Re:>
plus any other variations of the same thing (is "Re" different in Swedish or other languages?) rather than "All messages".
-------------------Move Reply to Original's Folder-----------------
tell application "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set msgSubject to subject of theMsg -- should start with "Re:" or equivalent
set linkedItems to links of theMsg
repeat with i from 1 to (count linkedItems)
set linkedItem to item i of linkedItems
if class of linkedItem is outgoing message and msgSubject contains (subject of linkedItem) then
set theFolder to storage of linkedItem
move theMsg to theFolder
exit repeat
end if
end repeat
end tell
--------------------------------------------------------------
--
Paul Berkowitz
- Same folder as original - new Carsten & Uni Vous Ortmann
- Re: Same folder as original - new Allen Watson
- Re: Same folder as original - new Carsten & Uni Vous Ortmann
- Re: Same folder as original - new Paul Berkowitz
- Re: Same folder as original - new Allen Watson
