Title: Re: No Cc: in Redirects?
On 1/20/01 9:01 AM, "Bryan Harris" <[EMAIL PROTECTED]> wrote:

> [The real reason is that I'm fixing up my Open Template script, which pulls
> any message (incoming/outgoing/sent with attachments) out of a template
> folder.  If the desired message in there is a draft, I can just do a resend.
> That command won't work on incoming or sent messages, though, so I have to
> do a redirect, but a redirect won't allow editing or a Cc: recipient.  And
> from what I can tell you can't just generate a new message in AS
> automatically attaching files originally attached to a different message.]

Here's how to do all that, Brian:


if class of theMsg is outgoing message then
    if delivery status of theMsg is sent then
        set newMsg to duplicate theMsg to drafts folder
        set delivery status of newMsg to unsent
        open newMsg
    else
        resend theMsg
    end if
else -- incoming message
    set theSource to source of theMsg
    set theAccount to default mail account -- or account of theMsg, as you prefer
    set newMsg to make new outgoing message at drafts folder with properties {account:theAccount, source:theSource}
    open newMsg
end if




--
Paul Berkowitz

Reply via email to