procmail
[Top] [All Lists]

RE: Procmail Database Interface?

1999-07-12 13:45:42

I'd still try to persuade you to do this differently. If you haven't
yet read the section in the FAQ about this, please have a go at it.
You should probably set up your MTA to do the forwarding for you
somehow.

I'm pretty set on doing it through procmail.  First of all, sendmail is
handling mail for the entire machine, and I'd rather not do too much with
sendmail because there are a lot of users already depending on it for
delivery.  I'm also sendmail illiterate, despite the fact that I just bought
the sendmail O'Reilly book.  I like procmail better for this application,
but that's just me.

Perl can extract the To: field(s) just fine (there can legitimately be
several) or you can take a cheap shot and just extract the first. If
you are unsure of how to do this in Perl, (you can't possibly manage
to write a script which does the rest of the job, but) you can get
Procmail to extract the first To: header thusly:

I'm pretty good with Perl, just not with standard e-mail / header
formatting.  This link <http://www.qz.to/~eli/faqs/addressing.html> didn't
work when I went to it, though maybe the site is only temporarily down.  I
guess this is the option I'm going to look into.  I'm sure I also have to
worry about Cc: and Bcc: fields.  Correct me if I'm wrong.

Thanks a lot for the info,
Russell

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