[Chris <[EMAIL PROTECTED]> schrieb am 24.1.2006 um 8:36 Uhr:]
>
>>[Wayne Brissette <[EMAIL PROTECTED]> schrieb am 23.1.2006 um 14:21 Uhr:]
>>
>>>The only thing a receipt will tell you is if the destination mail system
>>>received the mail.
>
>I'm a bit late to this thread but how do these receipts work?  I thought
>that identifying whether mail is read could only work with HTML - one
>reason I avoid it in case I inadvertently click on some spam.

As far as I know there are some proprietary headers that cause most users
mail clients to send a receipt.

To answer to such a request from within PM I use this script (now
slightly improved), which asks me first if I want to send the receipt.
(If I do not answer within 7 seconds it sends the receipt.)

[AppleScript]
-- script by [EMAIL PROTECTED]
tell application "PowerMail"
        set selectedMsgs to the current messages
        repeat with msg in selectedMsgs
                if headers of msg contains "Disposition-Notification-To:" then
                        set temp to display dialog ("A receipt for reading was 
requested. Send?")¬
    buttons {"Cancel", "OK"} default button 2 giving up after 7
                        if button returned of temp is "OK" then
                                set theSubject to subject of msg
                                set theDate to time sent of msg
                                set nowDate to current date
                                set olddelis to my text item delimiters
                                set my text item delimiters to 
"Disposition-Notification-To:"
                                set theList to every text item of (headers of 
msg as string)
                                set my text item delimiters to " "
                                set theList to every text item of (item 2 of 
theList)
                                set theList to item 2 of theList
                                set my text item delimiters to return
                                set theRecipient to item 1 of (every text item 
of theList)
                                set my text item delimiters to olddelis
                                set newMsg to make new message with properties 
{subject:"Received: "
& theSubject, content:"Hi!" & return & return & "Your message" &
return & return & "       subject: " & theSubject & return & "       sent
on " & theDate & return & return & "was received on " & nowDate,
recipient:theRecipient, status:waiting}
    open msg
                        end if
                end if
        end repeat
end tell
[/AppleScript]

I put a filter right after my SPAM filters as incoming filter with the
condition "AppleScript" and the value pointing to the above script. Works
fine.


lG
Subhash

--
http://www.subhash.at





Reply via email to