On 1/20/01 11:40 AM, "Bryan Harris" <[EMAIL PROTECTED]> wrote:
>
>
> Paul,
>
> You're amazing. That was at least half the script, so it might as well be
> submitted under your name. Thanks. =)
Oh, I've just been doing this for a while, so I've been there before.
>
> Quick question, though, any reason not to just use the last 4 commands (in
> your code snippet not including the "end if") for all message types? It
> seems to work just fine.
Nope - I thought thought you had a personal attachment to the "resend"
command so I wanted to leave it in. The only tiny advantage is that if the
user decides not to send it after all and closes the new window, there will
be a redundant extra message in drafts folder in all cases. With the
"resend" command you wouldn't get that in the case of the original being an
unsent template, although you would still get it in the other two cases, of
course.
>
> Also, is there a way to wipe the To: field in the newMsg?
Once the new message is open as a window, it's a draft window, so you can do
the following (DON'T refer to it as newMsg or it won't work). After the
open newMsg
add a final line:
set to recipients of window 1 to ""
You can change recipients of a draft window, but not of any sort of saved
message. so that's why you have to do it that way. But since you're
including incoming messages as the template, and the original sender might
have added cc recipients, and sent message, where you might have added cc
and/or bcc recipients, I would actually play it safe and make that last
line:
set {window 1's to recipients, window 1's CC recipients, window 1's
BCC recipients} to {"", "", ""}
>
> ps. Out of curiosity, what's the "Redirect" command for then?
>
>
"Redirect" sends on a message to someone else EXACTLY as you got it without
alteration. It is usually used for sending on messages from another sender,
not yourself, in their original form, to another person. Since it looks to
the final recipient as if it came not from you but from the original sender,
this prevents fraud. Otherwise unscrupulous people could alter messages to
their opposite, or to something completely different, and pretend they came
from a trusted source. It's a good thing to have this restriction, even
though the true route can be tracked in the Source headers. Most people
don't do that: if they get a message that appears to come from someone they
know, they don't go checking the headers to make sure. I don't, for certain.
>
>> 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
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>