3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Feature proposal
FromSent OnAttachments
Przemyslaw WegrzynApr 25, 2004 3:11 pm.patch
Martin List-PetersenApr 25, 2004 5:18 pm 
Nick SimicichMay 2, 2004 1:33 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Feature proposalActions...
From:Martin List-Petersen (mar@list-petersen.se)
Date:Apr 25, 2004 5:18:46 pm
List:net.sourceforge.lists.courier-maildrop

Wouldn't it be better to build your own script around sendsms to pre-process you sms messages ?

On Sun, 2004-04-25 at 23:12, Przemyslaw Wegrzyn wrote:

Hi!

I'm using the following construct to send SMS notifcations on each incoming e-mail:

cc "|/usr/bin/sendsms 123123123"

The problem is, that I don't want sendsms (perl script) to be injected with full message body. I'd rather it close stdin as soon as it collects all necessary headers and/or body parts.

If the script closes its STDIN before reading the whole message, maildrop treats it as an error and exits with EX_TEMPFAIL. I'd like to force maildrop to ignore pipe write errors when needed (but of course still care about exit status, and exec() failures). I've done a patch that allows using '%' in place of '|' when such behavior is needed.

Could such feature be included in future maildrop releases ?

Best Regards, -=Czaj-nick=-