On 16-Nov-2009, at 10:57, JW Simpson wrote:
On Mon, 2009-11-16 at 10:34 -0700, LuKreme wrote:
On 16-Nov-2009, at 02:13, LuKreme wrote:
|(echo "Subject: $UNREAD unread mail(s)"; echo; echo "$NEWMAIL")|
I ended up with this, which drops the message directly in the inbox of the
list user, no sendmail involved:
|(echo "Subject: $UNREAD unread mail(s)"; \
echo "Date: `date '+%F %T'`"; \
echo "From: New Mail Scan"; \
echo "$NEWMAIL") | maildrop -d
(my imap server is currently courier)
Did that solve your earlier problem "It works, however every version of
this I've tried sends the file as a single line instead of preserving
the formatting. If it matters, this is postfix's sendmail stub, and not
real sendmail." ?
The last version with the $SENDMAIL preserved the formatting, as does this one.
@mdhughes: One of the few regrets I have about lawnless
apartments: Shallow graves are so much harder to come by.
procmail mailing list Procmail homepage: http://www.procmail.org/