procmail
[Top] [All Lists]

Re: to a script and a mailbox

2001-07-24 05:45:50
well I already found it but thanks anyway

Now i use this recipe

:0
* ^TO_(_dot_)marc(_at_)ymondhc(_dot_)com
{
        :0 c h b w
        | to/some/perlscript
        :0:
        mailbox
}

:0 c h b w uses a copy of the original mail to put in the database and
sends the original mail to a mailbox.

I just used made up names, but the todo.pl should add some email from
several mailing lists to a mysql database where we can use it as a online
reference for the network / sysadmins. I'm building a sort of knowledge
database for our intranet and I thought that mailing list archives would be
a nice and up to date reference to have.

Marc van Duivenvoorde

On 2001.07.24 14:16:04 +0200 Matt Dunford wrote:
* 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


_______________________________________________
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>