detect unsubscribe from email body which doesn't have list-unsubscribe header

641 Views Asked by At

To provide unsubscribe functionality, am getting the (mailto, subject) / (link) fields from the "List-Unsubscriber" header. But some emails does not have this header, instead they provide the link in email body. But gmail is able to get the link and implement this functionality. The catch is: i tried to send a mail with UnSubscribe link in the body and gmail ignores it. So should i regex the text of email to implement the unsubscribe functionality or ignore and implement only the emails with 'List-Unsubscribe' header?

0

There are 0 best solutions below