Title: Re: Changing Account on multiple emails
On 31/12/02 0:25, "Jeff Forte" <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm just moving back into Entourage and have imported a bunch of mail.
>
> Does anyone know if there's a way to change the account of multiple messages
> at one time, so they can be replied to from the account they were initially
> sent to?
>
> Thanks in advance.
>
> J.F.
>

Here's a script that will change the account to one of your choosing. Put the name of your account into the first line in place of 'barryw.net' - note this should be the account's NAME, not the email address for it.

If you have more than one account to change, simply make copies of the script and set each one up accordingly.

Note that these scripts will also run from mail rules to change the account of mail as they arrive - useful if, like me, you have several email addresses redirected to one mail box.

If you are on IMAP accounts, you will need to change the third line("set accList to (every POP account whose name ...") to read "...IMAP Account..."



property accountName : "barryw.net"
tell application "Microsoft Entourage"
    set accList to (every POP account whose name contains accountName)
    if accList = {} then
        display dialog "No Account defined!" buttons {"Quit"} default button 1 with icon stop
        return
    else
        set theAcc to item 1 of accList
        set messList to current messages
        if messList = {} then
            display dialog "No messages selected!" buttons {"Quit"} default button 1 with icon stop
            return
        else
            repeat with aMess in messList
                set account of aMess to theAcc
            end repeat
        end if
    end if
end tell


--
Barry

Reply via email to