makandra/spreewald

No matches with the "I follow the link in the email" step

Closed this issue · 0 comments

The current implementation of the mentioned step (and potentially others) does not always match links.
More precisely, if we have a HTML mail without an explicit HTML part, we convert it plain text and look for a link there - but links have been stripped beforehand.

See:

if body_text_html?
body = text_from_html(mail.body.to_s)
else
body = mail.body.to_s
end

We should not convert the HTML body to plain text in this case but rather use directly and scan for a[href].