procmail
[Top] [All Lists]

Multiple actions

1997-09-17 07:08:56
This is probably very simple.  I use procmail to sort mail and to convert
MIME encoded characters to 8-bit characters.  I'd like it to do both
actions on certain mail items.

Currently, mail that *doesn't* get diverted from my main spool file gets
the MIME conversion done.  I'd like the mail that gets redirected to the
`work' spool file to also get the MIME conversion.  Can the MIME filter
be placed before the `work' filter and set up such that filtering
continues such that `work'-filtered mail would have gone through it?  

My understanding of the `c' flag is that a `copy' of the mail will
go through (MIME unfiltered) to the following `work' filter.  Is that correct?

-- ~/.procmail --
MAILDIR=/var/spool/mail

:0
* ^From debian-user-request(_at_)lists(_dot_)debian(_dot_)org
debian

:0
* ^From procmail-request(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
maillists

:0
* ^From fetchmail-friends-request(_at_)ccil(_dot_)org
maillists

# work-related mail
:0
* ^From (_dot_)*(_at_)dfo-mpo(_dot_)gc(_dot_)ca
work

# MIME filtering of accented characters and split lines.
:0
* ^Content-Type: *text/plain
{
  :0 fbw
  * ^Content-Transfer-Encoding: *quoted-printable
  | mimencode -u -q

     :0 Afhw
     | formail -I "Content-Transfer-Encoding: 8bit"

  :0 fbw
  * ^Content-Transfer-Encoding: *base64
  | mimencode -u -b

     :0 Afhw
     | formail -I "Content-Transfer-Encoding: 8bit"
}
--------

Thanks!
--
Peter Galbraith, research scientist             
<galbraith(_at_)mixing(_dot_)qc(_dot_)dfo(_dot_)ca>
Maurice-Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada  418-775-0852 - FAX 418-775-0546

<Prev in Thread] Current Thread [Next in Thread>
  • Multiple actions, Peter S Galbraith <=