nicm / fdm

fdm source code
269 stars 50 forks source link

Option to unwrap wrapped lines at 76 characters when saved in maildir #82

Closed balki closed 4 years ago

balki commented 4 years ago

When emails are saved in maildirs, the text file is wrapped at 76 characters. Since the wrap could break between words, it affects searching for keywords across emails. An option to unwrap automatically for text like content types would be helpful.

nicm commented 4 years ago

fdm does not wrap lines at 76 characters, probably the original mail was wrapped at 76 characters.

balki commented 4 years ago

Yes. it is the original mail. But most (if not all) mail are wrapped as that is the format from RFC.

balki commented 4 years ago

@nicm Do you think it is a good idea to have an option for this? Would you accept a pull request?

nicm commented 4 years ago

Why don't you pass the mail through a rewrite rule first to unwrap it?

balki commented 4 years ago

Thank. I will try with rewrite rule.