procmail
[Top] [All Lists]

Re: Scanning IMAP mail (first solution)

2009-11-16 12:34:28
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)

-- 
The older you get the more you need the people you knew when you
        were young.


____________________________________________________________
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