Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Email subject garbaged when set?, posted by Chris Green on Wed Jul 27 17:30:38 2005 
    icon2.gif   Re: Email subject garbaged when set?, posted by Stefan Ritt on Thu Aug 4 22:59:12 2005 
       icon2.gif   Re: Email subject garbaged when set?, posted by Chris Green on Fri Aug 5 01:13:13 2005 
       icon2.gif   Re: Email subject garbaged when set?, posted by Heiko Scheit on Fri Aug 5 11:18:08 2005 
          icon2.gif   Re: Email subject garbaged when set?, posted by Stefan Ritt on Fri Aug 5 12:37:42 2005 
Message ID: 1384     Entry time: Fri Aug 5 11:18:08 2005     In reply to: 1375     Reply to this: 1386
Icon: Reply  Author: Heiko Scheit  Author Email: h.scheit@mpi-hd.mpg.de 
Category: Question  OS: Linux  ELOG Version: 2.6.0b3 
Subject: Re: Email subject garbaged when set? 

Stefan Ritt wrote:

Chris Green wrote:
The email I get has:

Subject:
=?ISO-8859-1?B?W0Jvb05FLUVMT0ddIE5ldyBzdWJtaXNzaW9uIHRvIENoYXJnZWQgQ3Vyc
mVudCBQaSBQbHVzIGZyb20gQ2hyaXMgR3JlZW4=?=

... which isn't particularly illuminating.


This is the BASE64 encoding of the subject. It was discussed here and I implemented it according to RFC2047.


Well not quite. According to the RFC the encoded word must not be longer than 75 characters! Indeed
shorter subjects are displayed by pine, but not longer ones as they do not follow RFC2047.
Below is the quote from the RFC.


Stefan Ritt wrote:

All subjects I receive look fine in Outlook and Thunderbird, but not under Pine, which apparently does not implement the RFC correctly.


Actually pine implements it correctly but not elogd Smile

The relevant text from the RFC
   An 'encoded-word' may not be more than 75 characters long, including
   'charset', 'encoding', 'encoded-text', and delimiters.  If it is
   desirable to encode more text than will fit in an 'encoded-word' of
   75 characters, multiple 'encoded-word's (separated by CRLF SPACE) may
   be used.
ELOG V3.1.5-fe60aaf