Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements on automatic wrapping #1862

Kabouik opened this issue Jul 6, 2017 · 2 comments


Copy link

commented Jul 6, 2017

Automatic wrapping does not work on paragraphs starting with a "-", like lists, and the resulting email body looks weird because of paragraphs of different widths.

Additionally, I realized that wrapping is done every time the email is saved, i.e. if you are composing a message and leave it in your drafts for later editing. This is inconvenient because it means further edits on your draft will totally mess up the formatting of paragraphs. Here are pictures illustrating the issue:

Composing a new mail (note paragraphs starting with "-"); no wrapping yet:

Now wrapping has been done after leaving the "Compose" view, and then going back to the new draft (note the absence of wrapping for lists):

Doing further edits to my email, the formatting starts to be messed up in the previously wrapped paragraphs, and makes editing more complicated (this email is short, but it may be very hard to read in longer drafts):

Saving the draft, browsing to another Mailpile view, and then coming back to it will re-wrap the text as described above but short lines in the previous screenshot may remain shorter than wrapping threshold (not sure on this one though, I have not properly tested it, and it is not obvious here, should try with more agressive editing before the save) [Just tried it, the rewrapping takes care of shorter lines correctly] :

To avoid this issue, I believe wrapping should be done only when the content of the message is final and won't change anymore (when clicking on the Send button). Also, it would be nice to let the user specify the preferred length (in characters) for lines to apply automatic wrapping.


  • Lists should be wrapped as well (I tried actually sending the message and the lists still do not appear wrapped in the recipient's mail client or webmail)
  • Wrapping should be done only when the content is not prone to further changes, i.e. when the email is actually sent and going in the outbox
  • User preferences on wrapping could be convenient (can we do it with set prefs.line_length xx?)

This comment has been minimized.

Copy link

commented Jun 3, 2019

Any update on this? I have the same issue as @Kabouik. Is there a temporary fix?


This comment has been minimized.

Copy link

commented Jul 26, 2019

Also relevant - #1638 #1560

On IRC - mailpile - ptotter referenced this which may be relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.