Page Index Toggle Pages: 1
Topic Tools
Normal Topic Email - BAD HEADER SECTION (Read 804 times)
shodam3
YaBB Newcomer
*
Offline



Posts: 7
Re: Email - BAD HEADER SECTION
Reply #9 - Dec 30th, 2013 at 9:49pm
Post Tools
hi xnoddyx,

the information about encoding you mention Quote:
Content-Type: text/plain; charset=Windows-1250

is ok but this is valid only for the message itself and not the header. The similar information should be included also in the fields From, Subject, etc. It's perfectly explained in the link you found:

Quote:
WHAT IS AN INVALID CHARACTER IN A MAIL HEADER SECTION?

 The RFC 5322 document specifies rules for forming internet messages.
 It does not allow the use of characters with codes above 127 to be
 used directly (non-encoded) in a mail header section.

 If such characters (e.g. with diacritics) from ISO Latin or other
 alphabets need to be included in a header section, these characters
 need to be properly encoded according to RFC 2047. Such encoding
 is often done transparently by mail reader (MUA), but if automatic
 encoding is not available (e.g. by some older MUA) it is a user's
 responsibility to avoid using such characters in a header section,
 or to encode them manually. Typically the offending header fields
 in this category are 'Subject', 'Organization', and comment fields
 or display names in e-mail addresses of 'From', 'To' or 'Cc'.


Of course we can switch off the header check on our server as proposed in this link but the real problem is on receivers' side. If their mail reader doesn't have the above mentioned automatic encoding the email is shown incorrectly of even rejected. However it seems that the forum is really not dealing with this issue. Sad
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Email - BAD HEADER SECTION
Reply #8 - Dec 29th, 2013 at 3:18pm
Post Tools
shodam3 wrote on Dec 20th, 2013 at 9:17pm:
Concerning the email you got from my forum I think it only proves the existence of the problem. There're non-ascii characters in the header but still no information about encoding.

I don't see how you workout that "but still no information about encoding"

it is right here

xnoddyx wrote on Dec 20th, 2013 at 10:46am:
Content-Type: text/plain; charset=Windows-1250


but I did some more looking for you and found this
https://groups.google.com/forum/#!topic/mailing.unix.amavis-user/0OOsmNtSCb8
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
shodam3
YaBB Newcomer
*
Offline



Posts: 7
Re: Email - BAD HEADER SECTION
Reply #7 - Dec 20th, 2013 at 9:17pm
Post Tools
Hi xnoddyx,

I've checked (together my server admin) the possibility that SMTP server modifies the header but we didn't find any problem there. He's absolutely sure that the header without information about encoding comes directly from the forum.

Concerning the email you got from my forum I think it only proves the existence of the problem. There're non-ascii characters in the header but still no information about encoding. The fact that it looks good is probably due to Outlook and Hotmail clients which were programmed to cope with these errors. I also see it well in Opera-mail but some more basic clients don't go beyond standard and only show the "diamonds".
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Email - BAD HEADER SECTION
Reply #6 - Dec 20th, 2013 at 10:46am
Post Tools
Hi shodam3

sorry I am just getting back to you I got your email from the forum and it all looks good to me

this is part of the header I got

Code
Select All
To: xxxxxxxxx@hotmail.com
Date: út, 17 Dec 2013 20:06:06 +0000
From: Astronomické fórum <xxxxxxx@centrum.cz>
X-Mailer: YaBB SMTP
Subject: Nová soukromá zpráva
Content-Type: text/plain; charset=Windows-1250
Message-Id: <xxxxxxxxxx@xxxxx.xxxxxx.astro.cz>
Return-Path: xxxxxx@xxxxxxx.cz
X-OriginalArrivalTime: 17 Dec 2013 19:06:10.0118 (UTC) FILETIME=[0BEFBE60:01CEFB5B]
 


that is in outlook 2007 and looks the same in my Hotmail inbox as well.

the dev team thinks
Quote:
Just from what's in the email I can tell there's some UTF-8 encoding going on because of all the WTF diamonds.

What I'm guessing now is that when the emails are being sent through to the SMTPl  they're being encoded as UTF-8. YaBB should be sending the right header info to the SMTP program but it's being removed or overwritten.
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Email - BAD HEADER SECTION
Reply #5 - Dec 17th, 2013 at 7:44am
Post Tools
Hi shodam3
shodam3 wrote on Dec 16th, 2013 at 7:54pm:
I guess you meant Windows-1250 not ISO-1250, don't you?

sorry yes I did you can try Windows-1250 as there is some mapping difference to ISO-1250 if that don't work then you can try ISO-8859-2 or the YaBB default ISO-8859-1

you will find my email on this post can you get your forum to send me a email so that I can try to map the unrecognized character here
shodam3 wrote on Dec 16th, 2013 at 7:54pm:
From: Astronomick� f�rum <shodam@centrum.cz>X-Mailer: YaBB SMTPSubject: Nov� soukrom� zpr�va

to a character set I will also pass this info onto the Development Team and ask for more input as well.

Edited:
also can you try using Unix/Linux/BSD Sendmail path /usr/sbin/sendmail
« Last Edit: Dec 17th, 2013 at 7:49am by xnoddyx »  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
shodam3
YaBB Newcomer
*
Offline



Posts: 7
Re: Email - BAD HEADER SECTION
Reply #4 - Dec 16th, 2013 at 7:54pm
Post Tools
Hi xnoddyx,

I guess you meant Windows-1250 not ISO-1250, don't you? However it's already there and I still have this problem. The encoding is definitely correct - the whole forum is in Windows-1250 and looking well - but the problem with emails is that there's no encoding mentioned in the header. The emails from my forum look like this:

To: jzborgers@centrum.cz
Date: po, 16 Dec 2013 20:19:30 +0000
From: Astronomick� f�rum <shodam@centrum.cz>
X-Mailer: YaBB SMTP
Subject: Nov� soukrom� zpr�va

but it probably should be:

To: shodam@centrum.cz
Date: Sat, 14 Dec 2013 01:10:03 +0100
From: =?windows-1250?Q?Astronomick=E9_f=F3rum?= <shodam@centrum.cz>
X-Mailer: YaBB SMTP
Subject: =?windows-1250?Q?Nov=E1_soukrom=E1_zpr=E1va?=
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Email - BAD HEADER SECTION
Reply #3 - Dec 16th, 2013 at 6:20am
Post Tools
Hi shodam3

can you check and edit file /yabb2/Languages/English/Email.lng

look for
Code
Select All
$emailcharset = 'ISO-8859-1'; 



edit it to
Code
Select All
$emailcharset = 'ISO-1250'; 



if you are still having some difficulties with it you can have a look here and try some more ISO charsets http://en.wikipedia.org/wiki/Character_encoding
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
shodam3
YaBB Newcomer
*
Offline



Posts: 7
Re: Email - BAD HEADER SECTION
Reply #2 - Dec 13th, 2013 at 8:34pm
Post Tools
Hi xnoddyx,

my forum is at astro-forum(dot)cz. It's 2.3.1 version running on Unix server. There're the following mods installed:
AutoTabs 4 YaBB231      
Event Calendar / Birthday List V1.3
YaMMS 4 YaBB231
Recent Post Menu

There has always been problem with email header encoding. The only change is that the provider switched from sendmail to SMTP and the new mail server is running header check and reports the following errors:
.../spamassassin/Rules/SUBJECT_NEEDS_ENCODING
.../spamassassin/Rules/SUBJ_ILLEGAL_CHARS
.../spamassassin/Rules/INVALID_DATE
.../spamassassin/Rules/MISSING_MID

Some email clients (like my Opera) can work with this but some people report problems. Either the characters are not readable or the mail is rejected as spam or the email is considered to be sent on 1.1.1970.
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Email - BAD HEADER SECTION
Reply #1 - Dec 12th, 2013 at 5:49am
Post Tools
Hi shodam3

I will need more info from you so that I can pass this onto the Development Team for you

what YaBB are you running ?

what server is it running on ?

do you have any mods running on the forum ?

also has it always had that error or is it new ? if it is new it may be that you host has made edits to the server.
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
shodam3
YaBB Newcomer
*
Offline



Posts: 7
Email - BAD HEADER SECTION
Dec 11th, 2013 at 8:21pm
Post Tools
Hello,
I have a question regarding emails being sent from YaBB. I always get "BAD HEADER SECTION, Non-encoded 8-bit data" warning from the mail server and some users have difficulties receiving these emails. The problem is that my forum is encoded in Windows-1250 and the non-ascii characters are also included in email header (subject, forum name, etc). According to the information from my server admin the header should correctly look like this "=?windows-1250?Q?Nov=E1_soukrom=E1_zpr=E1va?=". Is there a way how to get it from YaBB?
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top