Hi,
sometimes I get mails that look dubious. The best way to find out if they are spam oder phishing-mails is to check the mail-header and look into the mail-source for cloaked links.
Is it easy possible, to make a new option "show mail source" or extend the option "show mail header"?
Should this be available from folder view to avoid triggering #1067 & similar?
Not OP here, obviously, but this might be slightly useful as simply an option in the message view window, alongside the 'view attachment' button, for instance.
That's just what I wanted...
Seconded. Headers can contain spoofed sender addresses, so often the difference between legit mail and phishing is the malicious link URL, and there's no way to inspect it right now.
This should be relatively simple to implement, now that we actually have the source in the db. Just open an activity, load the message, write it to a string and display :)
Or we could be more clever about it and not try to display base64-encoded 10MB attachments in a TextView :)
an additional suggestion:
add a checkbox or so, that only shows part of the source code that was filtered by the sanitization algorithm. (even attributes without the tag name, but separated into lines: everything there is something that's not sanitized, add a new line)
Since I work on an email app I use the "show source" functionality of my desktop email client quite a lot. However, I find most of the time it's not as useful as it could be. All email apps I've looked at display the raw message data. This is good enough for looking at the headers fields. But it's not great for looking at the message body, or rather body parts (since most messages are MIME multipart messages nowadays).
I think we can do better. My idea for a "show source" screen is the following:
multipart/mixed
โ multipart/alternative
โ โ text/plain
โ โ multipart/related
โ โ text/html
โ โ image/jpeg
โ application/pdf [attachment.pdf]
text/* parts if present. If there's no transport encoding or it was stripped by request of the user, we should also use the charset argument to properly decode the text.These are quite a lot of features. Not all of this has to be implemented at once. In fact I strongly recommend to do it in steps as small as possible.
Some more things to consider:
Most helpful comment
Since I work on an email app I use the "show source" functionality of my desktop email client quite a lot. However, I find most of the time it's not as useful as it could be. All email apps I've looked at display the raw message data. This is good enough for looking at the headers fields. But it's not great for looking at the message body, or rather body parts (since most messages are MIME multipart messages nowadays).
I think we can do better. My idea for a "show source" screen is the following:
multipart/mixed โ multipart/alternative โ โ text/plain โ โ multipart/related โ โ text/html โ โ image/jpeg โ application/pdf [attachment.pdf]text/*parts if present. If there's no transport encoding or it was stripped by request of the user, we should also use the charset argument to properly decode the text.These are quite a lot of features. Not all of this has to be implemented at once. In fact I strongly recommend to do it in steps as small as possible.
Some more things to consider: