Checking from an external file?
Philip Rhoades via Courier-maildrop <[email protected]> Sun, 18 May 2025 10:50:33 +1000
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
People,
Part of my .mailfilter looks like this:
# .spam ^Subject: Uppper {{{3
if ( /^Subject: INQ /:h \
|| /^Subject: \(/:h \
|| /^Subject: (Top|Luxury) Watches/:h \
|| /^Subject: 180/:h \
|| /^Subject: 4mJ/:h \
|| /^Subject: =?UTF/:h \
|| /^Subject: ? eat this.../:h \
|| /^Subject: \*\*/:h \
|| /^Subject: \.You/:h \
|| /^Subject: \[CONFINDENTIAL\]/:h \
|| /^Subject: \[Mayo Clinic Research\]/:h \
|| /^Subject: A .*(reverse|Daily).*(payment|Sprinkle)/:h \
|| /^Subject: Action Required/:h \
|| /^Subject: ACH/:h \
|| /^Subject: ACTIVEZ/:h \
etc.
Is it possible to have a separate file with all the lines in so that
section of .mailfilter could be reduced to something like:
# .spam ^Subject: Uppper {{{3
if ( /^Subject: "/home/phr/Maildir/spam_upper.txt" /:h )
?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: [email protected]