[pmmail-list] Enabling Return Receipt by Default
Menno Tillema
pmmail-list@blueprintsoftwareworks.com
Sat, 31 May 2003 07:21:36 +0200 (CST)
On Sat, 31 May 2003 08:07:08 +0550, Parag Mehta wrote:
> IS there a way to enable return receipt for all mails that i send
> instead of manually enabling this feature each time i compose
> an email ?
I've asked this in the past an Paul Ratcliffe sent me this message. You can do a lot with filters ;-) It works on PMMail for OS/2, but I imagine there's something similar on Win as well.
Tot mails, <Menno>
********************
OK, here it is. This filter adds a return receipt line to any message
that passes through it. You must configure your email address in it
before using it, otherwise you won't get any receipts!
/* REXX Message Send exit to add return receipt request to all messages */
/* Configure the email address to use for the receipts on the next line */
email = 'user@domain'
/**/
arg file
inhdr = 1
i = 0
modflag = 0
gotrr = 0
do while lines(file) <> 0
i = i + 1
line.0 = i
line.i = linein(file)
if inhdr = 1 then
if length(line.i) = 0 then do
inhdr = 0
if gotrr = 0 then do
line.i = 'Return-Receipt-To:' email
i = i + 1
line.0 = i
line.i = ''
modflag = 1
end
end; else if left(line.i, 18) = 'Return-Receipt-To:' then
gotrr = 1
end
call stream file, 'C', 'CLOSE'
if modflag = 1 then do
'@del' file '2>nul'
do i = 1 to line.0
call lineout file, line.i
end
call lineout file
end
- pmmail-list - The PMMail Discussion List ---------------------------
To POST to the list, send your message to:
pmmail-list@blueprintsoftwareworks.com
To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com
with the first line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------