EmailDiscussions.com  

Go Back   EmailDiscussions.com > Email Service Provider-specific Forums > FastMail Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Stay in touch wirelessly

FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc.

Reply
 
Thread Tools
Old 29 Jan 2015, 07:57 AM   #1
dsemf
Member
 
Join Date: Mar 2014
Posts: 33
Message formatting settings issue

I am hoping that I just have a setting that is wrong, but I don't seem to be able to find it. I am using the standard web client.

The text as typed:
Code:
sndpath = jmri.util.FileUtil.getExternalFilename("preference:bellTest.wav")
snd = jmri.jmrit.Sound(sndpath)
snd.play()
The text/plain portion of the sent mail:
Code:
sndpath =
jmri.util.FileUtil.getExternalFilename("preference:bellTest.wav") snd =
jmri.jmrit.Sound(sndpath) snd.play()
The text/html portion of the sent mail:
Code:
<div>sndpath = jmri.util.FileUtil.getExternalFilename("preference:bellTest.wav")<br></div>
<div>snd = jmri.jmrit.Sound(sndpath)<br></div>
<div>snd.play()<br></div>
The message format is set for rich text. The wrap lines option in the advanced settings is NOT checked.

The email is being sent to a Yahoo group and Yahoo is using the text/plain portion of the message. The snippet is python code and makes for REALLY hard reading.

DS
dsemf is offline   Reply With Quote

Old 29 Jan 2015, 04:19 PM   #2
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
Are you sending from a Unix like system and receiving in MS Windows? Sometimes, that causes these types of problems owing to conversions of line ends not taking place. Occasionally, character set conversions also confuse line ends.

I usually draw pictures in this type of situation, noting OS, mail client, text format & character set outgoing and incoming. Often this aids in explaining the behavior. Fixing it may, or may not, be easy.
BritTim is offline   Reply With Quote
Old 30 Jan 2015, 02:49 AM   #3
dsemf
Member
 
Join Date: Mar 2014
Posts: 33
Quote:
Originally Posted by BritTim View Post
Are you sending from a Unix like system and receiving in MS Windows? Sometimes, that causes these types of problems owing to conversions of line ends not taking place. Occasionally, character set conversions also confuse line ends.

I usually draw pictures in this type of situation, noting OS, mail client, text format & character set outgoing and incoming. Often this aids in explaining the behavior. Fixing it may, or may not, be easy.
I am running the standard web client on Safari (8.0.3), OS X Yosemite (10.10.2). I am looking at the raw messages in the Sent mail folder.

The problem occurs when the Rich Text format is used.

Plain Text:
Code:
Message-Id: <1422552646.705529.220589493.07EADB7C@webmail.messagingengine.com>
X-Sasl-Enc: v4FnBh0p2zetX4iGDkAC+qUy5fySvjztJPZLqUMED5p+ 1422552646
From: xxx <xxx@yyy>
To: "qqq" <rrr@sss>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Mailer: MessagingEngine.com Webmail Interface - ajax-46f3f2c7
Subject: Test Message - Plain Text
Date: Thu, 29 Jan 2015 11:30:46 -0600

Line 1
Line 2
Line 3

Done
Rich Text:
Code:
Message-Id: <1422552599.704911.220589169.05739398@webmail.messagingengine.com>
X-Sasl-Enc: A0bsYO0kSu+jf4NlGgSzTNpBu5uqxOP5iD/ZXPlpEyLs 1422552599
From: xxx <xxx@yyy>
To: "qqq" <rrr@sss>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: multipart/alternative; boundary="_----------=_14225525997049114";
 charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-46f3f2c7
Subject: Test Message - Rich Text
Date: Thu, 29 Jan 2015 11:29:59 -0600

This is a multi-part message in MIME format.

--_----------=_14225525997049114
Content-Transfer-Encoding: 7bit
Content-Type: text/plain


Line 1 Line 2 Line 3

Done

--_----------=_14225525997049114
Content-Transfer-Encoding: 7bit
Content-Type: text/html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Line 1<br></div>
<div>Line 2<br></div>
<div>Line 3<br></div>
<div>&nbsp;</div>
<div>Done</div>
</body>
</html>

--_----------=_14225525997049114--
To answer your questions, I am running on a UNIX like system. Since I am looking at the raw sent mail, the receiving system is not relevant.

Now that I know the source of the problem, I can just format all mails to the Yahoo group as plain text until a resolution is found.

In the meantime, it is not clear if this is a settings problem or an actual FastMail bug.

DS
dsemf is offline   Reply With Quote
Old 30 Jan 2015, 11:36 AM   #4
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
Ah, yes. Well explained. The issue is with the conversion from rich text (html) to plain text. The <br> html elements are not generating line breaks in the conversion to plain text. This does seem wrong.
BritTim is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 05:43 PM.

 

Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy