Author Topic: Plain Text emails + unwanted line breaks  (Read 1393 times)

Offline btcentral

  • Jr. Member
  • **
  • Posts: 26
Plain Text emails + unwanted line breaks
« on: March 17, 2010, 08:45:14 AM »
Hi All,

I'm currently using Roundcube 0.3.1 (the latest release on the main website, not SVN) and there is one thing that has been bugging me since pretty much I first started using roundcube 3 and a half or so years ago.

When you write a plain text email, the text seems to automatically have line breaks put in in various places.

For example, say I want to email someone the following:

Quote
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac iaculis mauris. Sed vel neque gravida tortor viverra tempus vel quis velit. Donec sollicitudin dapibus mauris, et commodo velit sagittis non. Vivamus pulvinar sodales dui, sit amet fringilla lectus vulputate sit amet. Donec rutrum fringilla risus id ultricies. Nullam ante sapien, mattis adipiscing mollis vitae, pellentesque eget tortor. Nam eros ante, malesuada eget molestie id, feugiat sed felis. Mauris vel nunc vitae lacus dignissim tempor. Integer non diam a enim vestibulum molestie. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Quisque ornare est quis mauris aliquam luctus. Phasellus eget justo id nibh sagittis consequat ac ut sem. Integer egestas mauris eget mauris cursus laoreet.

Curabitur faucibus pulvinar eleifend. Morbi mollis felis dignissim turpis dignissim sed mollis nisl ultrices. Aenean dignissim interdum enim, pulvinar mattis libero lobortis pellentesque. Donec vitae magna est. Maecenas malesuada, nisi faucibus adipiscing egestas, mauris nunc cursus sem, vitae molestie eros tortor sed leo. Phasellus euismod mollis diam. Morbi vel arcu at mi vestibulum pharetra. Morbi hendrerit, felis eget sagittis aliquet, nisi erat eleifend mauris, ac sagittis magna risus in ipsum. Integer lacus leo, pharetra eu ullamcorper sit amet, ullamcorper vulputate odio. Mauris non turpis turpis. Mauris sed quam leo, in auctor arcu. Nulla adipiscing tortor nec turpis fringilla ut egestas ante interdum. Vestibulum et nulla elit. Donec a nisl sed sem faucibus consectetur. Mauris eget enim ipsum, ac posuere purus.

I want that to display as it is, and then just automatically wrap when required (like you would expect to see on a web page)

However when you actually send the email roundcube would transform it in to this with the additional line breaks:

Quote
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac iaculis
mauris. Sed vel neque gravida tortor viverra tempus vel quis velit. Donec
sollicitudin dapibus mauris, et commodo velit sagittis non. Vivamus
pulvinar sodales dui, sit amet fringilla lectus vulputate sit amet. Donec
rutrum fringilla risus id ultricies. Nullam ante sapien, mattis adipiscing
mollis vitae, pellentesque eget tortor. Nam eros ante, malesuada eget
molestie id, feugiat sed felis. Mauris vel nunc vitae lacus dignissim
tempor. Integer non diam a enim vestibulum molestie. Vestibulum ante ipsum
primis in faucibus orci luctus et ultrices posuere cubilia Curae; Quisque
ornare est quis mauris aliquam luctus. Phasellus eget justo id nibh
sagittis consequat ac ut sem. Integer egestas mauris eget mauris cursus
laoreet.

Curabitur faucibus pulvinar eleifend. Morbi mollis felis dignissim turpis
dignissim sed mollis nisl ultrices. Aenean dignissim interdum enim,
pulvinar mattis libero lobortis pellentesque. Donec vitae magna est.
Maecenas malesuada, nisi faucibus adipiscing egestas, mauris nunc cursus
sem, vitae molestie eros tortor sed leo. Phasellus euismod mollis diam.
Morbi vel arcu at mi vestibulum pharetra. Morbi hendrerit, felis eget
sagittis aliquet, nisi erat eleifend mauris, ac sagittis magna risus in
ipsum. Integer lacus leo, pharetra eu ullamcorper sit amet, ullamcorper
vulputate odio. Mauris non turpis turpis. Mauris sed quam leo, in auctor
arcu. Nulla adipiscing tortor nec turpis fringilla ut egestas ante
interdum. Vestibulum et nulla elit. Donec a nisl sed sem faucibus
consectetur. Mauris eget enim ipsum, ac posuere purus.

Is there some way to stop this from happening? Either that or at the very least increase the amount of characters before each line break? (on a 1920x1080 screen it just looks ridiculous)

Many Thanks!
http://www.btcentral.org.uk - Cheap, Top Quality Web-design.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Plain Text emails + unwanted line breaks
« Reply #1 on: March 17, 2010, 09:07:03 AM »
It is RFC Standard to break lines at a length of 74 (or so) chars. So you have to use HTML formatted messages to avoid the line breaks.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)