procmail
[Top] [All Lists]

Re: to a script and a mailbox

2001-07-24 05:26:14
* Marc van Duivenvoorde <marc(_at_)ymondhc(_dot_)com> [010723 11:14]:
I use the following recipe to redirect some email to a mysql database, but
it doesn't show up anymore in any of my mailboxes. What am I doing wrong.
See the recipe below.

:0
* TO^(_dot_)marc(_at_)ymondhc(_dot_)com
{
      :0 fhbw
      | /home/marc/.procmail/scripts/todb.pl
      :0:
      /var/spool/mail/marc
}

if I use this construction with a sed -e '/blabla/d' option it deletes some
stuff (like adds in listbot / yahoo mail) and it puts the mail in the right
folder.


Does your VERBOSE log say anything?  What does todb.pl output?  You
specified the second recipe as a filter.  Does todb.pl send anything to
stdout?

Perhaps something along these lines (untested, of course!):

:0w  # add message to database
* ^TO_marc(_at_)ymondhc(_dot_)com
| /home/marc/.procmail/scripts/todb.pl

:0A:  # drop message in mailbox
/var/spool/mail/marc


-- 
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
        
I'd love to give you something
but what would help?
  -- Ikkyu
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>