Home » Questions » Computers [ Ask a new question ]

How can I convert HTML emails to plain text with fetchmail?

How can I convert HTML emails to plain text with fetchmail?

I recently set up an email gateway for our bug tracker, which was originally intended as a way for streamline error reporting from our server software. I told my colleagues about it, and they were also happy to have this feature, but I was horrified to discover the abuse of my poor system inflicted by entourage/outlook emails.

Asked by: Guest | Views: 365
Total answers/comments: 1
Guest [Entry]

"If you research your question with fetchmail in mind you won't find good answers.
That is because fetchmail is not the tool for your job.

As the Fetchmail FAQ says:

Repeat after me: fetchmail's job is
transport, not policy.

What most people do in such cases is to use fetchmail together with procmail.
Easiest thing to do would be to pipe you messages through html2txt like explained here.

If you never worked with procmail, don't be afraid.
procmail is horrible, but if you keep things simple it's not too bad."