Page 1 of 1

Finding unsubscribe button regardless of how it is worded in emails

Posted: 14 Jun 2021, 20:30
by milkygirl90
This simple script can only cater to the 1ˢᵗ scenario, but not the others. How can I improve it such that it will help me find clickable unsubscribe links if the 1ˢᵗ case fails?

Code: Select all

^q:: ; Find Unsubscribe button in Gmail
Sendinput {end}^f
Sleep 200
SendInput Unsubscribe
Sendinput {esc}
Sleep 100
SendInput ^{enter}
return
https://i.imgur.com/7u8uRWj.png
https://i.imgur.com/Uyx0h0q.png
https://i.imgur.com/31V31Wc.png
https://i.imgur.com/gkIfjRu.png
https://i.imgur.com/WBlQG9G.png

Re: Finding unsubscribe button regardless of how it is worded in emails

Posted: 15 Jun 2021, 14:28
by tidbit
write an AI with the intelligence of a human, because computers don't know what you want.
or
hard-code in every variation, and do actions accordingly.

Re: Finding unsubscribe button regardless of how it is worded in emails

Posted: 15 Jun 2021, 17:20
by swagfag
send a mail to the address or visit the link indicated by the List-Unsubscribe header

Re: Finding unsubscribe button regardless of how it is worded in emails

Posted: 16 Jun 2021, 01:28
by milkygirl90
swagfag wrote:
15 Jun 2021, 17:20
send a mail to the address or visit the link indicated by the List-Unsubscribe header
do u mind elaborating on the latter?

Re: Finding unsubscribe button regardless of how it is worded in emails

Posted: 16 Jun 2021, 02:55
by swagfag
by law, whoever is sending u the newsletters is required to include this optional email header. u can inspect the email headers and either send an email to the specified address or visit the specified link to unsubscribe urself. that's the same as clicking the unsubscribe link(typically at the bottom), except without having to go hunt for it among a thousand possible different wording permutations

of course, if the sender isn't complying, ure sol(u can report the top the ftc if theyre based in the us i guess)