CUFILTER(1p)

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

✨ CUFILTER ✨

okay so bestie, this is cufilter β€” the little Perl script that filters your emails through Mail::CheckUser, from the User Contributed Perl Documentation collection. it's giving procmail's bestie fr fr πŸ’–


πŸ¦‹ NAME

cufilter β€” filter emails through Mail::CheckUser πŸ’…


🌸 SYNOPSIS

literally all you gotta do is add these lines to your ~/.procmailrc and you're golden:

# Filter mail through Mail::CheckUser
:0f
| /usr/bin/cufilter

no cap, that's it πŸŽ€


πŸ’œ DESCRIPTION

so here's the tea β˜• β€” when email messages get filtered through this program using the procmail settings we just showed you in the SYNOPSYS (yes, it's spelled like that up there, iykyk), the email address sitting in the "From:" header gets passed through Mail::CheckUser to make sure it's actually valid. vibe check on your senders, basically ✨

and if there's a problem with that email address? the "Subject:" header gets modified to show which email address failed, along with the failure reason. it's literally the most helpful thing ever.

πŸ’– important bestie note: no messages are lost. none. zero. the way this works is it just gives your mail client an easy way to organize, sort, or filter based on those little subject tweaks. main character energy for your inbox πŸ‘‘

🌈 EXAMPLES

okay let's say a spammer (boooo πŸ…) sends a message with these headers:

From: god@heaven.org
To: you@host.com
Subject: Happy Pill

then the new headers might change to the following:

From: god@heaven.org
To: you@host.com
Subject: [CU!god@heaven.org!DNS failure: SERVFAIL] Happy Pill

see how that [CU!...!DNS failure: SERVFAIL] got slapped on the front? 🫢 that makes it SO easy to filter for mail clients. ate and left no crumbs πŸ’…


🧚 INSTALL

this file can be installed into /usr/bin/cufilter and is intended to be utilized through the procmail functionality by adding the following lines to your ~/.procmailrc configuration:

# Filter mail through Mail::CheckUser
:0f
| /usr/bin/cufilter

literally copy, paste, slay πŸ’–


πŸ‘‘ AUTHORS

Rob Brown bbb@cpan.org


Copyright (c) 2003 Rob Brown bbb@cpan.org. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

$Id: cufilter,v 1.3 2003/09/18 15:36:26 hookbot Exp $

πŸ’€ SEE ALSO


and that's the whole page bestie, ty for coming to my ted talk 🌟

sign-off szn: this lil number is from perl v5.34.0, dated 2022-06-15, and it lives under the CUFILTER(1p) man page name πŸ’œ mwah, go filter some spam ✨

πŸ“¦ where this page comes from