Re: Negate a pattern in ~/.mailfilter

Sam Varshavchik <[email protected]> Sun, 05 Feb 2023 22:31:21 -0500
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--===============8523091919433635119==
Content-Type: multipart/signed;
    boundary="=_monster.email-scan.com-28040-1675654281-0001";
    micalg=pgp-sha1; protocol="application/pgp-signature"

This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_monster.email-scan.com-28040-1675654281-0001
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Francesco Ariis writes:

> Hello,
>     I am a new maildrop user.
> Today I was writing a pattern like this:
>
>     if ( /^List-Id:.*<discourse.something.org>/:h || && \
>          /^Subject:.*\[PM\]/:h || )
>         to $MAILFOLDER/lists
>
> I would like to tell maildrop =E2=80=9Cdeliver to `lists` if the first =
pattern
> is matched but *not* the second=E2=80=9D. How can I do that?

That should be doable as

     if ( /^List-Id:.*<discourse.something.org>/:h && \
          !/^Subject:.*\[PM\]/:h)


--=_monster.email-scan.com-28040-1675654281-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQIyBAABCAAdFiEEMWrVnbBKLOeG9ifkazpiviedvyUFAmPgdIkACgkQazpivied
vyUcvA/3abOp+yJqdBnmdjq8pdeShFHwjQz9U67J6gy/hawiaIdgVDW0ZIqS12j+
/HATS14MaPWvvb+OLIY0MDbB1VO5wYPnIw5lrGwke+iJyUDsxfRhnEgvWgAjEn0u
Fmhd/NSmcbmx7gWQolNvcPEUEKKjaPVUxM8TMT7EbIBWBFUeKi8wZQ8ZlyjCypkQ
tkZ/HQfsi2+l4LucycKpha6XAEdsid9LDJCJ9Lstp2vYVVOFH7oparBZtXZ68AzB
CaQ8JTRa900hv7zTvZUIS/MejP74550LLfr8c2ETMDVaEYmbugmpPOIwMwulB7hH
6Xr79sEYstYLzmCEaYJP0rKXsqcU4BTbNYnSpnHKWvHqwHvuPYHrtLTlHS/fAqqi
F1VPy9eaPKY6aQSXWaL9IxAeKtHM+qvZCd6BvhLi8bS5Q/R2XRX/1VMrScgWiWJ1
BdJARV6biC2RGLLrBkRmMzADlrN+2mfyPM6FR6zIMxF9c58wCW1FQWNvPyb/H9ym
zBHjsx3N+99Zl8ft80C7OSw5CIf4ZDecImss0VdePXB7I+dBWxPvHuzQXjFqi2Xe
L0qixu1dsekbdGFcq6NofuUGh1Ri9n/EH/00FrgxC1omSirXFazZXsNzVw6hXs9g
5ueL8dBHQzTQazbyUdNVb37/K7ttXi77+tjel249x0zaAoV1wQ==
=36pL
-----END PGP SIGNATURE-----

--=_monster.email-scan.com-28040-1675654281-0001--


--===============8523091919433635119==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8523091919433635119==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

--===============8523091919433635119==--