Hi,
* Jonathan Nichols wrote (2005-12-12 20:33):
If the filter I have below works, this will wind up in the right place.
#courier-maildrop list
#if (/^(To|Cc):.*!cour...@lists.sourceforge.net/)
if (/^List-Id: .+ <courier-maildrop.lists.sourceforge.net>/)
{
to "$HOME/.maildir/".Mailing Lists".Courier-Maildrop"
}
Does the List-Id field look ok? I'm not really sure what the .+ is
supposed to do. I just grabbed it from another filter I had, but I don't
know the meaning of it.
^List-Id: .+ <courier...
+-------------------- start of string
++++++++------------ literal text
+----------- blank
++--------- any character, once or more
+-------- blank
++++++++ literal text
Is it to catch other text? Like this one:
List-Id: Gentoo Linux mail <gentoo-server.gentoo.org>
Nope, there is no match for the last two parts I listed.
Would (/^List-Id: .+ <gentoo-server.gentoo.org>/) catch the ID in the <
field as well as the text between the "List-Id:" field and the address?
Sure. (If I don't misunderstand your question.)
The two look almost identical, but only one works.
Please quote one List-Id header form each list.
Thorsten