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:
:0c
|(echo "Subject: $UNREAD unread mail(s)"; echo; echo "$NEWMAIL")|
$SENDMAIL $MYAD
I ended up with this, which drops the message directly in the inbox of the
list user, no sendmail involved:
:0c
|(echo "Subject: $UNREAD unread mail(s)"; \
echo "Date: `date '+%F %T'`"; \
echo "From: New Mail Scan"; \
echo; \
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/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail