Re: undigesting and filtering by list-id
On Mon, 24 Sep 2007 09:22:04 -0700
Andrew Sackville-West <andrew@farwestbilliards.com> wrote:
> On Mon, Sep 24, 2007 at 11:26:24AM -0400, Celejar wrote:
> > On Mon, 24 Sep 2007 16:16:06 +0100
> > Brad Rogers <brad@fineby.me.uk> wrote:
> >
> > > On Mon, 24 Sep 2007 10:51:16 -0400
> > > Celejar <celejar@gmail.com> wrote:
> > >
> > > Hello Celejar,
> > >
> > > > preserve the 'list-id' header. Is there no choice, then, but to
> > > > filter by 'to' (and 'cc' etc.)?
> > >
> > > For Sylpheed or CM the following should work;
> > >
> > > header "X-Mailing-List" matchcase "<debian-user@lists.debian.org>"
> >
> > Thanks. I'm not sure I understand, though; do you mean that the
> > 'X-Mailing-List' header is preserved after undigesting? In any event,
> > I get d-u individual mails; my question was about a different mailing
> > list, which I see does not retain any type of list identifying header
> > (except 'to') after being undigested.
>
> I've not used formail but a quick perusal of the man page suggests
> that you can include/preserve headers with ease using -[aAxXiI]. See
> man formail.
You are right. I did spend some time with the man pages, but I didn't
realize the power of the header manipulation options. It is indeed
possible to manually force a specific header onto the digest parts,
either by directly specifying it with [aAiI], or possibly by extracting
it with [xX] and then adding it with the previous options. I'm not
sure how to do the latter without some sort of variable assignment, but
the former is sufficient in any event. I have switched away from
digest mode in the meantime, but thanks for the tip in case I ever
decide to return.
> A
Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator
Reply to: