OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



E-mail error: Invalid 8-BIT characters in header

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

E-mail error: Invalid 8-BIT characters in header

Postby ihaladin » Fri Nov 18, 2011 10:00 am

Hi!

I've set up a conference website at http://www.grad.unizg.hr/cetra using OCS. The conference is now in phase of abstract reviewing and registration.

I've noticed that when an e-mail is being sent via OCS to or from a user that has some special characters in his name i.e. Željko Korlaet (our conferene Chairman :) ), system administrator gets the following error email:
Code: Select all
Your message WAS SUCCESSFULLY RELAYED to:
  <zkorlaet@grad.hr>

This delivery report was generated by the program amavisd-new at host
master.grad.hr. Our internal reference code for your message is
07132-02/IWU0ZUrPhJkG

INVALID HEADER: INVALID 8-BIT CHARACTERS IN HEADER

  Non-encoded 8-bit data (char C5 hex): To: "Prof. \305\275eljko
Korlaet"[...]

Return-Path: <www-data@master.grad.hr>
Message-ID: <20111110141737.1238ADA494333@master.grad.hr>
Subject: [CETRA 2012] Paper Review Request

WHAT IS AN INVALID CHARACTER IN MAIL HEADER?

  The RFC 2822 standard 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 mail header.

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

  Sometimes such invalid header fields are inserted automatically
  by some MUA, MTA, content checker, or other mail handling service.
  If this is the case, that service needs to be fixed or properly
  configured. Typically the offending header fields in this category
  are 'Date', 'Received', 'X-Mailer', 'X-Priority', 'X-Scanned', etc.

  If you don't know how to fix or avoid the problem, please report it
  to _your_ postmaster or system manager.


This is the original header:
Code: Select all
Return-Path: <www-data@master.grad.hr>
Received: by master.grad.hr (Postfix, from userid 33)
   id 38ADA494333; Thu, 10 Nov 2011 15:17:37 +0100 (CET)
To: "Prof. Željko Korlaet" <zkorlaet@grad.hr>
Subject: [CETRA 2012] Paper Review Request
Content-Type: text/plain; charset="utf-8"
X-Mailer: Public Knowledge Project Suite v2
X-Originating-IP: 161.53.50.4
Date: Thu, 10 Nov 2011 15:17:37 +0100
From: "Ivo Haladin" <ihaladin@grad.hr>
Message-Id: <20111110141737.1238ADA494333@master.grad.hr>


My questions to you are:
Since all the characters are accepted when users register themselves at the website and all characters work since page and database encoding is UTF-8, how to edit e-mail header to display these characters correctly? In the error message it says following "If such characters (e.g. with diacritics) from ISO Latin or other alphabets need to be included in the header, these characters need to be properly encoded according to RFC 2047", but I don't know how to implement this to OCS...

If this is not possible, or is to complicated (I'm no web programmer) maby a workaround solution could be to remove the name completly from the e-mail To: and From: fields when sending an e-mail.
Then this attached e-mail header would not contain "Prof. Željko Korlaet" <zkorlaet@grad.hr> but only zkorlaet@grad.hr and the message would pass without an error.
Could you then tell me where to edit this to remove the name and surname from e-mail header?

Thank you in advance for your answers,

Ivo
ihaladin
 
Posts: 7
Joined: Wed Mar 02, 2011 1:42 am
Location: Zagreb

Re: E-mail error: Invalid 8-BIT characters in header

Postby asmecher » Mon Oct 21, 2013 7:52 am

Hi ihaladin,

Sorry for the extreme delay in responding; your message was trapped in a moderation queue that we don't generally use. What version of OCS are you using?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8676
Joined: Wed Aug 10, 2005 12:56 pm

Re: E-mail error: Invalid 8-BIT characters in header

Postby ihaladin » Fri Dec 13, 2013 4:21 am

asmecher wrote:Hi ihaladin,

Sorry for the extreme delay in responding; your message was trapped in a moderation queue that we don't generally use. What version of OCS are you using?

Regards,
Alec Smecher
Public Knowledge Project Team


Hi Alec,

it seems that the issue has been resolved after I've patched with ocs-2.3.3-1_to_2.3.5.patch.

Thanks anyway.

Ivo
ihaladin
 
Posts: 7
Joined: Wed Mar 02, 2011 1:42 am
Location: Zagreb


Return to OCS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 1 guest