procmail
[Top] [All Lists]

Re: Scanning IMAP mail (first solution)

2009-11-16 12:56:54
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." ?
-- 
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠
____________________________________________________________
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