Last active
November 30, 2015 22:23
-
-
Save rgthree/6b92a0089db465c8205a to your computer and use it in GitHub Desktop.
"Mailer" Gmail Filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filter; | |
filter = '' + | |
'-is:chat ' + | |
'-from:me ' + | |
// Only when we haven't applied a userlabel already; this works well as the last rule in your filters list | |
'has:nouserlabels ' + | |
'{"Order Number" "Order No" "Subtotal" "Shipping Address" "Billing Address" "Thank you for shopping" "Thank you for your order" "Shipping Confirmation" "has shipped"} ' + | |
''; | |
console.log("---------------\n RETAIL FILTER: \n" + filter.replace(/\s+/g, ' ')); | |
filter = '' + | |
'-is:chat ' + | |
'-from:me ' + | |
// Only when we haven't applied a userlabel already; this works well as the last rule in your filters list | |
'has:nouserlabels ' + | |
'{ ' + | |
// Uber, minus recipets | |
' (from:uber -subject:{receipt (your {trip ride})}) ' + | |
// Untapped toasts cheers | |
' (from:@untappd.com subject:{toast cheers comment}) ' + | |
// Noreply minus any reciepts/payment | |
' (' + | |
' {replyto:{noreply no-reply do-not-reply} from:{noreply no-reply do-not-reply}}' + | |
' -{subject:"you sent $" "Payment Info" "Confirmation" "RECEIPT" "Order Number" "Order No" "Order #" "Transaction"} ' + | |
' )' + | |
// Lists :( | |
' list:{ ' + | |
' mcsv.net' + | |
' lists.psu.edu' + | |
' } ' + | |
// Or, finally, from specific emails | |
' from:{ ' + | |
' info ' + | |
' chromium-discuss ' + | |
' notifications ' + | |
' newsletter ' + | |
' newsletters ' + | |
' alerts ' + | |
' googleplay ' + | |
' engagemsg ' + | |
' alumni ' + | |
' [email protected] ' + | |
' [email protected] ' + | |
' (auto eventbrite.com) ' + | |
' email.newegg.com ' + | |
' mail.moosejaw.com ' + | |
' emails.gamefly.com ' + | |
' [email protected] ' + | |
' email.americanexpress.com ' + | |
' [email protected] ' + | |
' email.glassdoor.com ' + | |
' news.spotifymail.com ' + | |
' [email protected] ' + | |
' [email protected] ' + | |
' [email protected] ' + | |
' mail.fidelity.com ' + | |
' email.chase.com ' + | |
' mcsv.net ' + | |
' [email protected] ' + | |
' [email protected] ' + | |
' omnimagnet.net ' + | |
' bovada.lv ' + | |
' [email protected] ' + | |
' customer_research ' + | |
' communications ' + | |
' marketing ' + | |
' email.amexnetwork.com ' + | |
' paragonproperties ' + | |
' overhalfsale.com ' + | |
' cmail20.com ' + | |
' [email protected] ' + | |
' goodrichresidential ' + | |
' senchacon.com ' + | |
' mlspin.net ' + | |
' goodhands.allstate.com ' + | |
' [email protected] ' + | |
' ({jobs-listings auto jobs member} linkedin.com) ' + | |
' [email protected] ' + | |
' [email protected]' + | |
' welcome.aexp.com' + | |
' ezpassma.com' + | |
' [email protected]' + | |
' email.iheart.com' + | |
' dropboxmail.com' + | |
' [email protected]' + | |
' votenet.com' + | |
' eversourceebillnotification' + | |
' [email protected]' + | |
' [email protected]' + | |
' [email protected]' + | |
' [email protected]' + | |
' } ' + | |
'} '; | |
console.log("---------------\n MAILER FILTER: \n" + filter.replace(/\s+/g, ' ')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment