Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Lone CR in Signature
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Lone CR in Signature

 Post Reply Post Reply
Author
Find-Relation View Drop Down
Groupie
Groupie


Joined: 06 June 2006
Location: Denmark
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Find-Relation Quote  Post ReplyReply Direct Link To This Post Topic: Lone CR in Signature
    Posted: 23 June 2010 at 11:40am
Hi Web Wiz Forums Developers
 
The last weeks this error has occured daily, when email notification is sent to users using mail-server fpo.mail.dk.
host fpo.mail.dk[80.160.76.237] said: 550 5.6.0 Lone CR
   or LF in body (see RFC2822 section 2.3) (in reply to end of DATA command)
 
Action: failed
Status: 5.6.0
Remote-MTA: dns; fpo.mail.dk
Diagnostic-Code: smtp; 550 5.6.0 Lone CR or LF in body (see RFC2822 section
   2.3)
 
This is probably the reason:
When a user has more than 1 line in the signature, the line-change is stored with these characters - chr(x):
chr(13)
< chr(60)
b chr(98)
r chr(114)
chr(32 )
/: chr(47)
>: 62
 
The same problem does'nt exist in a Thread-message, where the line-change correctly has a LF - chr(10) - just after chr(13).
 
Can you fix that problem in the next version, before other mail-servers get the same idea, and reject mails without LF (or CR).
Back to Top
Find-Relation View Drop Down
Groupie
Groupie


Joined: 06 June 2006
Location: Denmark
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Find-Relation Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2010 at 11:12pm
Originally posted by WebWiz-Bruce WebWiz-Bruce wrote:

This might be a bit difficult as the forum code does not put any Carriage Returns or Line Feeds into signatures. If there are any the these would be put in by the web browser when the person writes their signature and more than likely only certain browsers, so would need to know which browser.
Hi Bruce

Please check these code-lines:

register.asp:
strSignature = FormatPost(strSignature)
 
functions\functions_format_post.asp:
Private Function FormatPost(ByVal strMessage)
strMessage = Replace(strMessage, Chr(10), "<br />", 1, -1, 1)
 
You're right - the code does not put Carriage Returns or Line Feeds into signatures, but as you see, the code removes Chr(10) from the signature.
 
strMessage = Replace(strMessage, Chr(10), Chr(10) & "<br />", 1, -1, 1)
might be a better solution to prevent the mentioned error from the mail-server.
 
 

 
Regards Ole Dalsgaard Jensen
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2010 at 8:53am
Mail servers that reject emails due to a lone CR or LF was due to an Outlook vulnerability form over 5 years ago that was never exploited and was patched along time ago.

Mail servers rejecting emails based on lone CR and LF fell out of favour along time ago as it blocked quite a high percentage of legitimate emails as about 1 in very 50 emails have a lone CR or LF in the header.

I would recommend contacting the mail server admin and let them know they are preventing legitimate emails from coming through.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.