Converting incoming mail from HTML to all plain text
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Converting incoming mail from HTML to all plain text
I've been trying to come up with a simple solution to convert ALL incoming HTML based mail (evil!) to plain text. I would assume something along the lines of a good .procmailrc would do calling html2text but I haven't been able to figure out a good recipe for it yet.
Any suggestions would be most welcomed and appreciated.
If so, you might consider using a text client, such as Mutt, or the GUI Claws mail client, which defaults to displaying mail in plain text (in other words, it ignores the HTML). You can get a plugin that will display--not send--properly formatted HTML if it's one of those few emails that you decide you wish to view in HTML.
A web search for "linux strip html from email" turns up a number of links about this. You might find one of them useful.
If so, you might consider using a text client, such as Mutt, or the GUI Claws mail client, which defaults to displaying mail in plain text (in other words, it ignores the HTML). You can get a plugin that will display--not send--properly formatted HTML if it's one of those few emails that you decide you wish to view in HTML.
A web search for "linux strip html from email" turns up a number of links about this. You might find one of them useful.
Thanks for responding but I think you don't fully understand the scenario.
This would be for ax25 based mail importing tcp/ip based mail. My client uses a simple dumb terminal on shortwave radio or VHF based FM radio. Shell access or clients such as Mutt and especially a GUI on a dumb terminal are not options. The issue is an incoming HTML based mail can't not be read cleanly on a dumb terminal. I'm thinking a .procmailrc file may do the trick.
The information that you just posted would have been useful in your initial question. I'm sure that it will help others offer more useful suggestions than did I in subsequent replies.
Note the question that prefaced my response:
The information that you just posted would have been useful in your initial question. I'm sure that it will help others offer more useful suggestions than did I in subsequent replies.
I know it would have been useful, however I didn't want environment to bias a response. Clearly environment has. Nothing I've searched has been able to do whats needed unfortunately. I can't believe how SMTP has been so destroyed over the years (thanks B.G!)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.