Last active
July 1, 2023 02:28
-
-
Save brandedoutcast/d21ac9ce216f90f77513c76c25b1cd68 to your computer and use it in GitHub Desktop.
Spam domains that plague my email
This file contains 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
jmails.info | |
sacustomerdelight.co.in | |
extrobuzzapp.com | |
ixigo.info | |
offer4uhub.com | |
netecart.com | |
101coupon.in | |
freedealcode.in | |
bankmarket.in | |
hotoffers.co.in | |
offeronmail.com | |
email-smtp1.com | |
offersurprise.com | |
shopcluescrm.com | |
gopaisa.com | |
commtrends.in | |
shopatbest.com | |
lapnikpro.com | |
wsu.edu | |
airtel.online | |
mailclues.info | |
amails.in | |
check2inbox.com | |
postfixbox.com | |
mailindiapro.com | |
ampleclick.com | |
conlinetraining.com | |
doors2inbox.com | |
shoponmail.in | |
airpostmail.in | |
solveerrors.com | |
smtpmailbox.com | |
ideascost.com | |
feminastyle.in | |
hg2016.in | |
jainmoredemand-gifts.co.in | |
tclnewsletters.co.in | |
lucifro.com | |
tclnewsletters.co.in | |
efincare.com | |
perfectpriceindia.com | |
shiningindiaa.com | |
easyjobs365.com | |
efinmail.com | |
casaconsultant.com | |
displaymailbox.com | |
mailerassist.com | |
fccashback.in | |
openstackmail.com | |
jondepp.in | |
olatour.in | |
adstrendz.com | |
maillong.com | |
couponwalas.in | |
bookonmail.com | |
ecomaffiliates.in | |
rediffmail.com | |
bestvaluess.com | |
konnectmail.com | |
wimpmail.com | |
angle-bag.com | |
prudentconnect.com | |
offerupdatemail.com | |
fabhotels.com | |
global-mailtrends.com | |
notifyonmail.com | |
octa-mails.com | |
shop-on-mail.com | |
book-on-mail.com | |
mailjio.com | |
mails-server.com | |
travelonmail.com | |
blogonmail.com | |
spinkmail.com | |
worldonmail.com | |
updates-on-mail.com | |
inboxads365.com | |
nano-mails.com | |
jobs-on-mail.com | |
jopasumail.com | |
[email protected] | |
multymaniac.com | |
goconnectmail.com | |
amaznoffer.in | |
[email protected] | |
ampleclick.in | |
[email protected] | |
perkyfish.com | |
bdycare.com | |
mojodesks.in | |
gamepind.com | |
cii.in | |
my-sunshine.in | |
online-fashion.in | |
utrans01.com | |
spinadz.com | |
adspurt.in | |
opayq.com | |
peace-passion.in | |
cashmeback.in | |
mymts.net | |
whtsnext.in | |
ableselling.com | |
beach.ocn.ne.jp | |
digitalchamp.info | |
fastoye.in | |
cartoonsdeliver.com | |
interviewtrainings.com | |
longgearn.com | |
makeindiawork.in | |
bigmailroom.com | |
bitbns.com | |
thamesmail.com | |
bigritz.com | |
allmaillot.com | |
getmymails.in | |
allaboutnews.in | |
maildivine.com | |
mailcitrus.com | |
mailcougar.com | |
mackbeans.com | |
mailaccent.com | |
localbhaiyaz.com | |
mackmuller.com | |
ons99.com | |
ibhejo.in | |
homethycare.com | |
survey-search.net | |
dripsdripsdrips.com | |
obratime.com | |
post.com | |
cloutmails.in | |
insuremails.com | |
blingevents.co | |
soloclicks.in | |
financebookonline.com | |
illustrious.in | |
supercilious.in | |
autopostal.in | |
splendorous.in | |
ceremonious.in | |
weathersealmails.com | |
poshpoint.in | |
usemycards.com | |
zeemail.in | |
gokaarts.com | |
patchbuzz.com | |
decipherinc.com | |
starvmail.in | |
prasscross.com | |
edgemail.in | |
wartmail.in | |
icontact.co.in | |
bistmail.in | |
lopezmail.in | |
mailshotz.com | |
ziprecruiters.in | |
blissspace.in | |
newzzletter.com | |
acres21.com | |
vintagecowfarms.com | |
dharohardairy.com | |
freshplatter.com | |
vintagedairyfarm.com | |
alerts91.com | |
voice91.com | |
funinmail.in | |
midcart.info | |
freetalkie.com | |
indiaanation.in | |
socialtech.in | |
jiosaavnmailers.com | |
saavnletters.com | |
edisplaymailbox.com | |
bajajfin-rbl.com | |
bloggerati.in | |
emailerasstist.com | |
bigmir.net | |
india-furniture.co.in | |
vodafoneideamail.in | |
ecasaconsultant.com | |
propask.com | |
3stepinternet.com | |
fashiongup.in | |
appdiver.online | |
bookpdf.co.in | |
discountwalas.com | |
profitguruonline.com | |
autoepost.com | |
indiamailers.com | |
formirror.com | |
retinastar.com | |
courierbasket.com | |
informalnewz.com | |
netmedsedm.com | |
updatedyouindia.com | |
unqiueindia.com | |
trustrootz.com | |
connequitymailer.com | |
vibegem.com | |
lavishmonk.in | |
adsupdate.co.in | |
thepowerdelta.com | |
99travelz.com | |
kiteink.com | |
foxletters.com | |
learnvibes.net | |
rightsofemployees.com | |
indiainfoline.com | |
clovify.com | |
kinkroot.com | |
wteel.in | |
moreshow.in | |
treeflux.com | |
rqqtyz.ru | |
scroob.co.in | |
11xi.in | |
globaluniversitiesinfo.com | |
eveedge.com |
Please suggest how to use Appscript. I also want to get rid of spam emails
@decey This is how I use AppScript
function killSpam() {
var count = 0;
var threads = GmailApp.getInboxThreads();
var res = UrlFetchApp.fetch("https://gist.githubusercontent.com/brandedoutcast/d21ac9ce216f90f77513c76c25b1cd68/raw");
var domains = res.getContentText().split(/\r?\n/);
var deleted = [];
for (const thread of threads) {
var message = thread.getMessages()[0];
var from = message.getFrom().split(" ");
var fromAddress = from[from.length - 1].replace(">", "").replace("<", "");
var isSpam = domains.some(function (spamDomain) {
var mailPart = fromAddress.slice(-spamDomain.length - 1);
return mailPart.length === spamDomain.length ? mailPart === spamDomain : mailPart.slice(1) === spamDomain && (mailPart[0] === "." || mailPart[0] === "@")
})
if (isSpam) {
thread.moveToTrash();
deleted.push(message.getFrom())
count++;
}
}
Logger.log("Total: " + count);
Logger.log("Removed: " + deleted.join(", "));
}
Line 19 wsu.edu would be a problem for Washington State University students.
https://news.ycombinator.com/item?id=32134734 : adding hckrnews discussion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please suggest how to use Appscript. I also want to get rid of spam emails