0

Bug: GetMessageRawHeader contains incorrect data

Via the documentation example (and actual returned API data), the GetMessageRawHeader returns an XML document with a <rawheaders> element containing extra data.

All retrieved message headers have a line incorrectly added at the beginning which looks like "From USERNAME DATE", e.g. "From Dylan Greene Fri Dec 9 06:27:58 2005"

While this line technically conforms to the RFC specs, this data is not found in the actual email message headers, therefore the <rawheaders> element is incorrectly labeled (it is not truly raw) and there is no way to retrieve truly raw headers using the API.

What returns from the API (example from documentation):

<?xml version="1.0" encoding="UTF-8"?>  
<SOAP-<ENV:Envelope> <xmlns:SOAP-ENV=>"<http://schemas.xmlsoap.org/soap/envelope/>">  
  <SOAP-ENV:Body>  
    <GetMessageRawHeaderResponse total="1">  
      <rawheaders>From Dylan Greene Fri Dec 9 06:27:58 2005  
Return-Path: <&lt;esc1101152609431_1101151674506_1699@in.roving.com&gt;>  
Authentication-Results: mta203.mail.scd.yahoo.com  
from=teacherreviews.com; domainkeys=neutral (no sig)  
Received: from 63.251.135.109 (EHLO ccm08.roving.com) (63.251.135.109)  
by mta203.mail.scd.yahoo.com with SMTP; Fri, 09 Dec 2005 06:34:23 -0800  
Received: from ws11 (unknown [10.200.200.61])  
by ccm08.roving.com (Postfix) with ESMTP id 8C1323C2915  
for <&lt;smith@yahoo.com&gt;;> Fri, 9 Dec 2005 09:27:58 -0500 (EST)  
Message-ID: &lt;1101152609431.1101151674506.1699.5.<50931@scheduler&gt;>  
From: Dylan Greene <&lt;dylan@teacherreviews.com&gt;>  
Reply-To: <dylan@teacherreviews.com>  
To: <smith@yahoo.com>  
Subject: TeacherReviews is back!  
MIME-Version: 1.0  
Content-type: text/plain; charset=iso-8859-1  
Content-Transfer-Encoding: 7bit  
Date: Fri, 9 Dec 2005 09:27:58 -0500 (EST)  
Content-Length: 582  
      </rawheaders>  
    </GetMessageRawHeaderResponse>  
  </SOAP-ENV:Body>  
</SOAP-ENV:Envelope>

What I expect to return from the API:

<?xml version="1.0" encoding="UTF-8"?>  
<SOAP-<ENV:Envelope> <xmlns:SOAP-ENV=>"<http://schemas.xmlsoap.org/soap/envelope/>">  
  <SOAP-ENV:Body>  
    <GetMessageRawHeaderResponse total="1">  
      <rawheaders>Return-Path: <&lt;esc1101152609431_1101151674506_1699@in.roving.com&gt;>  
Authentication-Results: mta203.mail.scd.yahoo.com  
from=teacherreviews.com; domainkeys=neutral (no sig)  
Received: from 63.251.135.109 (EHLO ccm08.roving.com) (63.251.135.109)  
by mta203.mail.scd.yahoo.com with SMTP; Fri, 09 Dec 2005 06:34:23 -0800  
Received: from ws11 (unknown [10.200.200.61])  
by ccm08.roving.com (Postfix) with ESMTP id 8C1323C2915  
for <&lt;smith@yahoo.com&gt;;> Fri, 9 Dec 2005 09:27:58 -0500 (EST)  
Message-ID: &lt;1101152609431.1101151674506.1699.5.<50931@scheduler&gt;>  
From: Dylan Greene <&lt;dylan@teacherreviews.com&gt;>  
Reply-To: <dylan@teacherreviews.com>  
To: <smith@yahoo.com>  
Subject: TeacherReviews is back!  
MIME-Version: 1.0  
Content-type: text/plain; charset=iso-8859-1  
Content-Transfer-Encoding: 7bit  
Date: Fri, 9 Dec 2005 09:27:58 -0500 (EST)  
Content-Length: 582  
      </rawheaders>  
    </GetMessageRawHeaderResponse>  
  </SOAP-ENV:Body>  
</SOAP-ENV:Envelope>

by
0 Replies

Recent Posts

in General Discussion at YDN