MAILFILTER(1)

πŸ“¦
version 0.8.9 Β· 2 versions
  • 0.8.9 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.8.7 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

okay so bestie, welcome to MAILFILTER(1) πŸ’– straight out of the User Manuals section, and trust, this one is a whole vibe: it deletes spam before the spam even gets to touch your laptop. let's get into it πŸ¦‹


✨ NAME ✨

mailfilter β€” Filters e-mail, gets rid of spam πŸ—‘οΈβœ¨


🌸 SYNOPSIS 🌸

mailfilter [OPTION]...

that's it. that's the whole entrance. main character energy, no notes πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

Mailfilter is a very flexible utility that gets rid of unwanted spam mails before you have to go through the whole ordeal of downloading them onto your local computer 😭 like, why would you even invite them in. it offers support for one or many POP accounts and it's especially useful for dialup connections via modem, ISDN, etc. (iykyk, the struggle was real) πŸ“ž

so here's the tea: Mailfilter connects to any POP mail box and compares part of its content to a set of user defined filter rules. that way the spam gets deleted directly on the mail server. it never even makes it to your machine. iconic behaviour fr fr πŸ’€βœ¨

with Mailfilter you can define your own filters (rules) to determine which e-mails should be delivered and which ones are considered waste. and the rules are Regular Expressions, so you can flex all those familiar options from other mail delivery programs such as procmail(1), for example 🌈


🫢 RETURN VALUE 🫢

the mailfilter program normally returns 0, but -1 if an error occurs. 😭

buuut, if it has been invoked with the return-value command line switch, it gives back a positive integer in case there are messages on the POP server. empty POP accounts would then result in a return value of 0. using the switch, mailfilter can be embedded into a shell script more easily 🐚✨ (script girlies, this one's for you)


πŸŽ€ CONFIGURATION πŸŽ€

the behaviour of Mailfilter is controlled by command-line options and a configuration file. the program will not start without it. not a drill bestie, it simply will not go 🚫

example configurations can be looked up in the mailfilterex(5) man page, in the INSTALL document, or inside the doc/ directory of the Mailfilter distribution πŸ“‚

by default Mailfilter tries to read $HOME/.mailfilterrc to get all its settings from. this is the place where all changes should be made, unless it is explicitly specified otherwise. a comprehensive list of all supported options and keywords can be found in the mailfilterrc(5) man page πŸ“–


πŸ”₯ OPTIONS πŸ”₯

  • -h, --help β€” Display help information πŸ†˜ (when you're lost, she's got you)
  • -L, --logfile=FILE β€” Specify logfile location πŸ“
  • -M, --mailfilterrc=FILE β€” Specify rcfile location πŸ—‚οΈ
  • -r, --return-value β€” Enable additional return values πŸ”’
  • -s, --skip-ssl-verify β€” Skip verification of SSL certificates (Do not use unless you know better!) ⚠️
ok so for real on that last one: Do not use unless you know better! the manual said it, I'm just the messenger πŸ’€
  • -t, --test β€” Simulate deletes πŸ§ͺ (practice round, nothing actually gets deleted)
  • -i, --ignore-time-stamps β€” Ignore invalid Message-ID time stamps (Do not use unless you know better!) ⏰⚠️
yeah, same energy here: Do not use unless you know better! πŸ™ˆ
  • -v, --verbose=LEVEL β€” Specify level of verbosity πŸ—£οΈ (crank it up if you want her to overshare)
  • -V, --version β€” Display version information 🏷️

🌈 SEE ALSO 🌈

mailfilterrc(5), mailfilterex(5), procmail(1), regex(7) πŸ’–


Copyright Β© 2000-2022 Andreas Bauer <baueran@gmail.com> πŸ’Œ

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 😀 no cap.


and that's the whole page bestie πŸŽ€ tysm for reading β€” this little number is the Mailfilter page, dated January 2009, and it lives at MAILFILTER(1) in the manual. go forth and let it eat that spam for breakfast πŸ“βœ¨ bye ily πŸ’œ

πŸ“¦ where this page comes from