Skip to content

Instantly share code, notes, and snippets.

@isomorphisms
Last active March 4, 2019 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isomorphisms/b5432f004970c077a4d8ab26cda74e27 to your computer and use it in GitHub Desktop.
Save isomorphisms/b5432f004970c077a4d8ab26cda74e27 to your computer and use it in GitHub Desktop.
start mutt without having to see bad messages
<limit>
!(
~s token ||
~s reward ||
~s data ||
~s feedback ||
~s news ||
~s free ||
~s crunchbase ||
~s "!!" ||
~s integrate ||
~s save ||
~s alert ||
~s free ||
~s marketing ||
~s daily ||
~s views ||
~s soon ||
~s trial ||
~s best ||
~s soon ||
~s rapid
)
<enter>
@isomorphisms
Copy link
Author

isomorphisms commented Mar 3, 2019

Starting mutt with mutt -e 'push "<limit> !(~s free || ~s "!" || ~s news || ~s alert ) <enter>" ' will start mutt without annoying messages.

I thus define a bash function Mutt() { mutt -e 'push "<limit> !( ~s free || ~s "!" || ~s "deep learning" || ~s marketing || ~s daily || ~s data ) " ' ; } in ~/.bashrc (and ~/.zshrc)

and then start reading mail with Mutt instead of mutt.

What are some other good filter words?

@isomorphisms
Copy link
Author

Alternately T ~s free and then D will delete any of these patterns from the mbox.

@isomorphisms
Copy link
Author

PS I’m aware that Bayesian methods can generate signals like this. The point is to see the filter typed out, whether you generated it mathematically or personally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment