mail
mail copied to clipboard
Various questions regarding built-in capabilities
Hi! I'm a new user and trying to get a flying start with the gem. Does it (plan to) support any of the following?
- Guess if mime part is an actual "attachment" or decoration garbage for HTML mail
- Convert HTML mail to plain text
- When doing
mail = Mail.read_from_string("From mbox\nSubject: Bar\n"), how does one get the mboxFromline? - Parse an mbox file into an array of mail objects
- Decode virus killer links in body (
urldefense.proofpoint.com,*.safelinks.protection.outlook.com, etc.) - Sanitize file names in attachments (for saving safely to disk)
- Handle bounced email (
message/delivery-statusandmessage/rfc822) - Quote email (append
>to each line) - Add a mail signature from
~/.signature - Utilize the contents of
~/.mailrcfiles
Thanks in advance! This gem seems to be a real -- well -- gem :)
@mikel: Little help? Reordered the questions in order of importance. 1-4 are most important.
My take would be that apart from 3, the rest are not in scope.
As to 3, please see https://github.com/mikel/mail#reading-an-email
@sebbASF
- Are you one of the devs, or just a user?
- The question is how to get the mbox
Fromline, not the mail headerFrom:. The parser does accept (ie. not throw an exception) if parsing an email starting with this line, but is it available later? - If you know any sleek libraries for the things you deem "out of scope", share links. Only 1 and 2 are really important, as they are a lot of work. The rest is just a few lines of code, but then again not necessary to re-invent the wheel.
- don’t know, offhand.
- https://rubygems.org/ has a search facility