Closed mnmallea closed 5 months ago
@mnmallea Thank you for the report. I agree that unsubscribe notifications should be treated as "feedback" (optout) rather than "vacation". I will try to make a correction so that they can be classified correctly.
@mnmallea The code implemented at #280 returns the following result:
% ruby -Ilib -rsisimai -e 'puts Sisimai.dump($*.shift)' ./apple-feedback-unsubscribe.eml | jq
[
{
"action": "",
"alias": "",
"catch": "",
"deliverystatus": "",
"destination": "icloud.com",
"diagnosticcode": "",
"diagnostictype": "",
"feedbacktype": "opt-out",
"lhost": "",
"listid": "",
"messageid": "",
"origin": "./apple-feedback-unsubscribe.eml",
"reason": "feedback",
"replycode": "",
"rhost": "",
"senderdomain": "example.org",
"smtpagent": "Feedback-Loop",
"smtpcommand": "",
"subject": "",
"timezoneoffset": "+0000",
"token": "a68c9c71e8103ff7a1fc5846e7808fa8fb06954f",
"hardbounce": false,
"addresser": "opt-out-100731.e75std53hz8rnmy4r@example.org",
"recipient": "example@icloud.com",
"timestamp": 1714672135
}
]
Thank you @azumakuniyuki! That output looks good
When an Apple email user unsubscribes from an email list using the unsubscribe button in the email client, Apple sends an automated opt out message like this one:
After analyzing it with sisimai I got this response:
I think that it shouldn't be classified with vacation reason as the email text doesn't say anything about being on vacation or out of office.