<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Spam Filter ISP Forums : Exception occurred during RECEIVEMESSAGE</title>
  <link>https://www.logsat.com/spamfilter/forums/</link>
  <description><![CDATA[This is an XML content feed of; Spam Filter ISP Forums : Spam Filter ISP Support : Exception occurred during RECEIVEMESSAGE]]></description>
  <pubDate>Sun, 08 Mar 2026 15:20:34 +0000</pubDate>
  <lastBuildDate>Thu, 05 Mar 2009 12:51:59 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.logsat.com/spamfilter/forums/RSS_post_feed.asp?TID=6561</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Spam Filter ISP Forums]]></title>
   <url>https://www.logsat.com/spamfilter/forums/forum_images/web_wiz_forums.png</url>
   <link>https://www.logsat.com/spamfilter/forums/</link>
  </image>
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : The header now looks like thisSubject:...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12685&amp;title=exception-occurred-during-receivemessage#12685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=239">atifghaffar</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 05 March 2009 at 12:51pm<br /><br />The header now looks like this<br><br><pre id="line1">Subject: =?iso-8859-1?Q?Insider-Geheimnis=20f=FCr=20die=20Verdoppelung=20?= =?iso-8859-1?Q?oder=20Verdreifachung=20Ihres=20Umsatzes!?=</pre><br>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 12:51:59 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12685&amp;title=exception-occurred-during-receivemessage#12685</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : Roberto, I have upgraded ZendFramework...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12684&amp;title=exception-occurred-during-receivemessage#12684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=239">atifghaffar</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 05 March 2009 at 12:51pm<br /><br />Roberto, <br>I have upgraded ZendFramework to version 1.7.6 and this problem now seems to be fixed.<br>Thanks a lot for debugging this with us.<br><br>best regards<br><br>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 12:51:11 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12684&amp;title=exception-occurred-during-receivemessage#12684</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE :   Atif,The problem is indeed...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12644&amp;title=exception-occurred-during-receivemessage#12644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=8">LogSat</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 18 February 2009 at 12:23am<br /><br /><font size="1">Atif,<br><br>The problem is indeed with the folding. in an SMTP header, the lines below: <br><b><br>Subject: Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres Umsatze=<br>s!</b></font><br><font size="1"><br>would actually be interpreted as a line indicating the header with the subject:<br></font><font size="1"><b>Subject: Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres Umsatze=<br></b></font><br><font size="1">and another line containing a separate (invalid) header:<br></font><font size="1"><b>s!</b></font><br><font size="1"><br>The "folding" in SMTP headers is obtained by ending a line with an CRLF and starting the following line with one or more spaces before the folded text. For example, the line above can be folded as:<br></font><font size="1"><b>Subject: Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres <br>&nbsp;&nbsp; Umsatzes!</b></font><br><font size="1"><br></font><font size="1">or<br><br></font><font size="1"><b>Subject: Insider-Geheimnis f=FCr die<br>&nbsp;&nbsp;&nbsp; Verdoppelung oder Verdreifachung Ihres Umsatzes!</b></font><br><font size="1"><br></font><br><font size="1">etc.. (the complete RFC for headers - I oversimplified it a bit - is rfc822).<br><br>Thus if you have a MIME-encoded subject, and end the line with a "=" to fold, that is&nbsp; not correct (the folding sequence is a CRLF + whitespace), and thus the "=" is interpreted as part of the MIME-encoded text, which "messes up" the encoding. So your encoded line should not look like (2 lines):<br><br><b>Subject: =?ISO-8859-1?Q?Insider-Geheimnis=20f=FCr=20die=20Verdoppelung=20oder=20Verdreifachung=20Ihres=20Umsatze=<br>s!?=<br></b><br>but rather something like (2 lines):<br><br><b>Subject: =?ISO-8859-1?Q?Insider-Geheimnis=20f=FCr=20die=20<br>&nbsp; Verdoppelung=20oder=20Verdreifachung=20Ihres=20Umsatzes!?=<br></b><br>also as a side-note, you don't really need to worry about the spaces for the quote-printable stuff, you could simply have something like:<br><br><b>Subject: =?ISO-8859-1?Q?Insider-Geheimnis f=C3=BCr die Verdoppelung oder<br>&nbsp;&nbsp; Verdreifachung Ihres Umsatzes!?=<br></b><br></font><span style="font-size:10px"><br /><br />Edited by LogSat - 18 February 2009 at 12:25am</span>]]>
   </description>
   <pubDate>Wed, 18 Feb 2009 00:23:44 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12644&amp;title=exception-occurred-during-receivemessage#12644</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : Here is the function that does...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12642&amp;title=exception-occurred-during-receivemessage#12642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=239">atifghaffar</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 16 February 2009 at 4:24am<br /><br />Here is the function that does the Quoted_Printable thing. which some print commands from me to show the result.<br>/**<br>* Encode a given string with the QUOTED_PRINTABLE mechanism<br>*<br>* @param string $str<br>* @param int $lineLength Defaults to {@link LINELENGTH}<br>* @param int $lineEnd Defaults to {@link LINEEND}<br>* @return string<br>*/<br>public static function encodeQuotedPrintable($str,<br>$lineLength = self::LINELENGTH,<br>$lineEnd = self::LINEEND){<br>$out = '';<br>print __LINE__ .":$str\n";<br><br><b>129:Insider-Geheimnis für die Verdoppelung oder Verdreifachung Ihres Umsatzes!<br></b><br><br>$str = str_replace('=', '=3D', $str);<br>print __LINE__ .":$str\n";<br><br><b>131:Insider-Geheimnis für die Verdoppelung oder Verdreifachung Ihres Umsatzes!<br></b><br><br>$str = str_replace(self::$qpKeys, self::$qpReplaceValues, $str);<br>print __LINE__ .":$str\n";<br><br><b>133:Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres Umsatzes!<br></b><br><br>$str = rtrim($str);<br>print __LINE__ .":$str\n";<br><br><b>135:Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres Umsatzes!<br></b><br><br><br>// Split encoded text into separate lines<br>while ($str) {<br>&nbsp;&nbsp;&nbsp; $ptr = strlen($str);<br>&nbsp;&nbsp;&nbsp; if ($ptr &gt; $lineLength) {<br>&nbsp;&nbsp;&nbsp; $ptr = $lineLength;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Ensure we are not splitting across an encoded character<br>&nbsp;&nbsp;&nbsp; $pos = strrpos(substr($str, 0, $ptr), '=');<br>&nbsp;&nbsp;&nbsp; if ($pos !== false &amp;&amp; $pos &gt;= $ptr - 2) {<br>&nbsp;&nbsp;&nbsp; $ptr = $pos;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Check if there is a space at the end of the line and rewind<br>&nbsp;&nbsp;&nbsp; if ($ptr &gt; 0 &amp;&amp; $str&#091;$ptr - 1&#093; == ' ') {<br>&nbsp;&nbsp;&nbsp; --$ptr;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Add string and continue<br><b>&nbsp;&nbsp;&nbsp; $out .= substr($str, 0, $ptr) . '=' . $lineEnd;</b><br>&nbsp;&nbsp;&nbsp; $str = substr($str, $ptr);<br>}<br><br>$out = rtrim($out, $lineEnd);<br>$out = rtrim($out, '=');<br>print __LINE__ .":$out\n";<br><br><b>162:Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres Umsatze=<br>s!<br></b><br><br>return $out;<br>}<br><br><br>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 04:24:04 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12642&amp;title=exception-occurred-during-receivemessage#12642</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : Roberto. Thanks.We are using ZendFramework...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12641&amp;title=exception-occurred-during-receivemessage#12641</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=239">atifghaffar</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 16 February 2009 at 4:06am<br /><br />Roberto. Thanks.<br><br>We are using ZendFramework for the mail and this is the library that encodes the subject.<br>So Zend_Mail encodes the header, which uses Zend_Mime to do some stuff.<br><br>It seems that Zend_Mime, breaks the subject line at 74 characters for folding.<br><br>So here is the breakdown.<br>Normal Text:<br><pre id="line1"><b>Insider-Geheimnis für die Verdoppelung oder Verdreifachung Ihres Umsatzes!</b><br><br>Text after Zend_Mime does the splitting (note on two lines)<br><b>Insider-Geheimnis f=FCr die Verdoppelung oder Verdreifachung Ihres Umsatze=<br>s!<br></b><br></pre><br><pre id="line1">Text after Zend_Mime does the quote-pritable stuff (note on two lines)<br><b>Insider-Geheimnis=20f=FCr=20die=20Verdoppelung=20oder=20Verdreifachung=20Ihres=20Umsatze=<br>s!<br></b><br>Text after Zend_Mail encodeHeader stuff (note, still on two lines)<br><b>=??Q?Insider-Geheimnis=20f=FCr=20die=20Verdoppelung=20oder=20Verdreifachung=20Ihres=20Umsatze=<br>s!?=<br></b><br>Does any of this give any more clue? Is this a valid format?<br><br>best regards<br><br></pre>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 04:06:16 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12641&amp;title=exception-occurred-during-receivemessage#12641</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE :  Atif,I&amp;#039;m afraid the problem...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12640&amp;title=exception-occurred-during-receivemessage#12640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=8">LogSat</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 14 February 2009 at 12:28am<br /><br />Atif,<br><br>I'm afraid the problem looks like the subject has an incorrect ISO encoding. The source you posted to the thread is:<br><br>Subject: =?iso-8859-1?Q?Insider-Geheimnis=20f=FCr=20die=20Verdoppelung=20oder=20Verdreifachung=20Ihres=20Umsatze<b><font color="#ff0000">=?s</font></b>!?=<br><br>However the text after the "=" sign must be two hexadecimal characters (0-9, a-f). In the sample above, it's ?s, which is invalid, and causes SpamFilter to reject the email due to an exception.<br><br>If in the Subject line above you replace the <br><br>Umsatze<b><font color="#ff0000">=?s</font></b>!?=<br><br>with<br><br>Umsatze<font color="#ff0000"><b>s</b></font>!?=<br><br>then everything should be fine (the ?= indicates the end of the encoding).<br><br>So far this seems unrelated to the umlaut that appears at the beginning of the email. <br><br>Please however do let me know if you believe this is incorrect, or if the copy/paste operation in the forum does not result in the same email's source that is having the problem. Encodings are tricky, and it is possible I may be missing something here.<br>]]>
   </description>
   <pubDate>Sat, 14 Feb 2009 00:28:29 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12640&amp;title=exception-occurred-during-receivemessage#12640</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : oh its great I will try it.  ]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12639&amp;title=exception-occurred-during-receivemessage#12639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=1110">Gary Winnick</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 13 February 2009 at 1:09am<br /><br />oh its great I will try it.]]>
   </description>
   <pubDate>Fri, 13 Feb 2009 01:09:10 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12639&amp;title=exception-occurred-during-receivemessage#12639</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : Atif,  We&amp;#039;re able to replicate...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12638&amp;title=exception-occurred-during-receivemessage#12638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=8">LogSat</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 12 February 2009 at 6:31pm<br /><br />Atif,<br /><br />We're able to replicate this, and is obviously related to the encoding. Please allow us a short time to pinpoint the issue, I'll update this post as soon as we have a solution/fix.]]>
   </description>
   <pubDate>Thu, 12 Feb 2009 18:31:53 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12638&amp;title=exception-occurred-during-receivemessage#12638</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : Also this one works too.Subject:...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12637&amp;title=exception-occurred-during-receivemessage#12637</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=239">atifghaffar</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 12 February 2009 at 5:55am<br /><br />Also this one works too.<br>Subject: Insider-Geheimnis für Vervielfachung Ihres Internet-Umsatzes!<br>Encoded:<br>&nbsp;=?iso-8859-1?Q?Insider-Geheimnis=20f=FCr=20Vervielfachung=20Ihres=20Internet-Umsatzes!?=]]>
   </description>
   <pubDate>Thu, 12 Feb 2009 05:55:24 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12637&amp;title=exception-occurred-during-receivemessage#12637</guid>
  </item> 
  <item>
   <title><![CDATA[Exception occurred during RECEIVEMESSAGE : Hi Roberto,I sent the same mail...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12636&amp;title=exception-occurred-during-receivemessage#12636</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=239">atifghaffar</a><br /><strong>Subject:</strong> 6561<br /><strong>Posted:</strong> 12 February 2009 at 5:53am<br /><br />Hi Roberto,<br>I sent the same mail that hassan is talking about to a gmail address and it arrives there.<br><br>Here are the headers<br><pre>From: "XYZ" &lt;info@xyzde&gt;<br>To: "Atif Ghaffar" &lt;atif.ghaffar@abccom&gt;<br>Subject: =?iso-8859-1?Q?Insider-Geheimnis=20f=FCr=20die=20Verdoppelung=20oder=20Verdreifachung=20Ihres=20Umsatze=?s!?=<br></pre><br>The subject without encoding is :<br>Insider-Geheimnis f<b>ü</b>r die Verdoppelung oder Verdreifachung Ihres Umsatzes!<br><br>If I replace the ü with u then the message goes though.<br><br>If I keep the umlaut character and shorten the subject then the message goes through too.<br>For example:<br>Subject: Insider-Geheimnis für<br>Encoded: Subject: =?iso-8859-1?Q?Insider-Geheimnis=20f=FCr?=<br><br>Thanks for looking into it. We have many customers from different countries who use different umlauts which must be encoded.<br><br>best regards<br>--<br>Atif<br><br>]]>
   </description>
   <pubDate>Thu, 12 Feb 2009 05:53:12 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6561&amp;PID=12636&amp;title=exception-occurred-during-receivemessage#12636</guid>
  </item> 
 </channel>
</rss>