At 7:57 AM -0800 11/30/01, Dale Therio wrote:
>I seem to be getting lots of failed emails in my queue. I am
>not sure why as the addresses appear to be fine.
>
>Anyway, what steps do I need to take to "reset" individual
>emails so at least another attempt will be made to send them?
Save the following script as a "classic applet":
on open theFileList
set nl to ASCII character 13
repeat with theFile in theFileList
set nl to ASCII character 13
set fileCh to (open for access theFile with write permission)
set curPos to 0
set theData to ""
repeat
set curPos to curPos + (length of theData) + 1
set theData to (read fileCh before nl)
if theData is "" then exit repeat
if (offset of "R E" in theData) is 1 then
set theData to "R W" & (characters 4 through -1 of
theData
as string) as text
write theData starting at curPos to fileCh
set theData to (read fileCh from curPos before nl)
end if
end repeat
close access fileCh
end repeat
end open
(This script will work with the built-in scripting additions.)
Now, if you drop a message file containing failed addressees on the
resulting "droplet" icon, all of the "failed" indicators will be changed
to "waiting" indicators. As Dmitry pointed out, make sure you shut down
SIMS before using this, otherwise SIMS won't pick them up until the next
time you start it.
You can drop many files simultaneously and they'll all be processed;
converting it so that you can drop a folder (if there's a reason you'd
want to) is left as an exercise for the student.
HTH.
Regards
Mark Hartman
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>