[NTLUG:Discuss] new mail notification via samba
Richard Geoffrion
ntlug at rain4us.net
Tue Jul 9 13:15:00 CDT 2002
Working with Slackware 8.1, qmail-1.03, and vpopmail.
I have winpopup notification working on every other incomming mail message.
The qmail system follows instructions in a .qmail (dot-qmail) file when it
processes incoming mail. The .qmail file that I created will drop a copy of
the message in the user's mailbox then runs egrep to extract the from/to/and
subject line and send it via smbclient to machine XXX
/home/vpopmail/domains/example.com/user1/Maildir/
|egrep -i '^(from|to|subject):' | smbclient -M user1
Only this only works for every other mail message. Is there some Unix 101
function that I'm missing? Am I hanging a procedure that gets kicked (or
closed) by the message that doesn't display anything?
Clues? Advice?
-Richard <--- The almost successful.
More information about the Discuss
mailing list