<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Cannot filter spam if from address has illegal apostrophe (&#039;)</title> 
  <pubDate>Fri, 10 Apr 2026 17:52:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4854</link> 
  <atom:link rel="self" type="application/rss+xml" title="Cannot filter spam if from address has illegal apostrophe (&#039;)" href="https://bugs.horde.org/ticket/4854/rss" /> 
  <description>Cannot filter spam if from address has illegal apostrophe (&#039;)</description> 
 
   
   
  <item> 
   <title>Spam is coming in with illegal from addresses that have an a</title> 
   <description>Spam is coming in with illegal from addresses that have an apostrophe in it and cannot be filtered by Horde.

The address is added to the banned list, but it never gets filtered.



Example addresses from my horde blacklist:

verve&#039;sdistributors@aaconline.com

terrapin&#039;sshepherd@aandacht.com

latexbaha&#039;i@aardse.nl



Horde info:

Horde Version



    * Horde: 3.1.3



Horde Applications



    * Horde: 3.1.3

    * Imp: H3 (4.1.3) (run Imp tests)

    * Ingo: H3 (1.1.1) (run Ingo tests)

    * Jonah: 0.1-cvs (run Jonah tests)

    * Kronolith: H3 (2.1.2)

    * Mnemo: H3 (2.1)

    * Nag: H3 (2.1.1)

    * Turba: H3 (2.1.2) (run Turba tests)



PHP Version



    * View phpinfo() screen

    * View loaded extensions

    * PHP Version: 4.4.2

    * PHP Major Version: 4.4

    * PHP Minor Version: 2

    * PHP Version Classification: release

    * You are running a supported version of PHP.

</description> 
   <pubDate>Tue, 09 Jan 2007 00:14:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28140</link> 
  </item> 
   
  <item> 
   <title>What filtering backend/method are you using?</title> 
   <description>What filtering backend/method are you using?</description> 
   <pubDate>Tue, 09 Jan 2007 02:56:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28143</link> 
  </item> 
   
  <item> 
   <title>&gt; What filtering backend/method are you using?

Horde.:Mail:</title> 
   <description>&gt; What filtering backend/method are you using?

Horde.:Mail:Filters:Existing Rules:Blacklist



Blacklist

The blacklist is a list of email addresses known to send email that you do not wish to see in your INBOX.



Horde Version



    * Horde: 3.1.3



Horde Applications



    * Horde: 3.1.3

    * Imp: H3 (4.1.3) (run Imp tests)

    * Ingo: H3 (1.1.1) (run Ingo tests)

    * Jonah: 0.1-cvs (run Jonah tests)

    * Kronolith: H3 (2.1.2)

    * Mnemo: H3 (2.1)

    * Nag: H3 (2.1.1)

    * Turba: H3 (2.1.2) (run Turba tests)



PHP Version



    * View phpinfo() screen

    * View loaded extensions

    * PHP Version: 4.4.2

    * PHP Major Version: 4.4

    * PHP Minor Version: 2

    * PHP Version Classification: release

    * You are running a supported version of PHP.



PHP Module Capabilities



    * Ctype Support: Yes

    * DOM XML Support: Yes

    * FTP Support: Yes

    * GD Support: Yes

    * Gettext Support: Yes

    * Iconv Support: Yes

    * IMAP Support: Yes

    * LDAP Support: No

    * Mbstring Support: Yes

    * Mcrypt Support: No

      Mcrypt is a general-purpose cryptography library which is broader and significantly more efficient (FASTER!) than PHP&#039;s own cryptographic code and will provider faster logins.

    * MIME Magic Support (fileinfo): No

      The fileinfo PECL module or the mime_magic PHP extension (see below) will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.

    * memcached Support (memcache): No

      The memcache PECL module is needed only if you are using the memcached SessionHandler. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.

    * MIME Magic Support (mime_magic): No

      The fileinfo PECL module (see above) or the mime_magic PHP extension will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.

    * MySQL Support: Yes

    * OpenSSL Support: No

    * PostgreSQL Support: Yes

    * Session Support: Yes

    * XML Support: Yes

    * Zlib Support: Yes



Miscellaneous PHP Settings



    * magic_quotes_runtime disabled: Yes

    * memory_limit disabled: Yes

    * safe_mode disabled: Yes

    * session.use_trans_sid disabled: No

      Horde will work with session.use_trans_sid turned on, but you may see double session-ids in your URLs, and if the session name in php.ini differs from the session name configured in Horde, you may get two session ids and see other odd behavior. The URL-rewriting that use_trans_sid does also tends to break XHTML compliance. In short, you should really disable this.

    * session.auto_start disabled: Yes



File Uploads



    * file_uploads enabled: Yes

    * upload_max_filesize: 50M

    * post_max_size: 55M



Required Horde Configuration Files



    * config/conf.php: Yes

    * config/mime_drivers.php: Yes

    * config/nls.php: Yes

    * config/prefs.php: Yes

    * config/registry.php: Yes



PHP Sessions



    * Session counter: 1

    * To unregister the session: click here



PEAR



    * PEAR Search Path (PHP&#039;s include_path):  /usr/local/cpanel/base/horde/lib:/usr/local/cpanel/3rdparty/lib/php/:.

    * PEAR: Yes

    * Recent PEAR: Yes

    * Mail: Yes

    * Mail_Mime: Yes

    * Log: Yes

    * DB: Yes

    * Net_Socket: Yes

    * Date: Yes

    * Auth_SASL: Yes

    * HTTP_Request: Yes

    * File: Yes

    * Net_SMTP: Yes

    * Services_Weather: No

      Services_Weather is used by the weather applet/block on the portal page.

    * Cache: Yes

    * XML_Serializer: No

      XML_Serializer is used by the Services_Weather module on the weather applet/block on the portal page.

</description> 
   <pubDate>Tue, 09 Jan 2007 07:26:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28159</link> 
  </item> 
   
  <item> 
   <title>This is not the answer to the question. Chuck was asking abo</title> 
   <description>This is not the answer to the question. Chuck was asking about Ingo&#039;s backend configured in config/backends.php.</description> 
   <pubDate>Tue, 09 Jan 2007 12:53:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28164</link> 
  </item> 
   
  <item> 
   <title>I cannot get to the config/backends.php since my ISP does no</title> 
   <description>I cannot get to the config/backends.php since my ISP does not make it visible to me.  I have asked them to submit the information directly to you.



Is there anything from http://biro.net:2095/horde/test.php that would be useful to you?

</description> 
   <pubDate>Tue, 09 Jan 2007 17:50:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28175</link> 
  </item> 
   
  <item> 
   <title>No. And if you don&#039;t have access to configure Ingo, you real</title> 
   <description>No. And if you don&#039;t have access to configure Ingo, you really need to be talking to your ISP, not us. I can&#039;t see how you&#039;d be able to do any debugging, information gathering, or testing of fixes if you can&#039;t get to the config files. If the ISP has a problem, they&#039;re the ones that can work usefully with us, the developers.</description> 
   <pubDate>Tue, 09 Jan 2007 17:55:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28178</link> 
  </item> 
   
  <item> 
   <title>...cpanel/base/horde/ingo/config/backends.php

/* IMAP Examp</title> 
   <description>...cpanel/base/horde/ingo/config/backends.php

/* IMAP Example */

$backends[&#039;imap&#039;] = array(

    &#039;driver&#039; =&gt; &#039;null&#039;,

    &#039;preferred&#039; =&gt; &#039;example.com&#039;,

    &#039;hordeauth&#039; =&gt; true,

    &#039;params&#039; =&gt; array(),

    &#039;script&#039; =&gt; &#039;imap&#039;,

    &#039;scriptparams&#039; =&gt; array()

);



The horde setup on our servers is part of cpanel&#039;s prepackaged horde installation.



&gt; No. And if you don&#039;t have access to configure Ingo, you really need 

&gt; to be talking to your ISP, not us. I can&#039;t see how you&#039;d be able to 

&gt; do any debugging, information gathering, or testing of fixes if you 

&gt; can&#039;t get to the config files. If the ISP has a problem, they&#039;re the 

&gt; ones that can work usefully with us, the developers.

</description> 
   <pubDate>Tue, 09 Jan 2007 18:53:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28180</link> 
  </item> 
   
  <item> 
   <title>The problem is in lib/Horde/IMAP/Search.php line 539. The ad</title> 
   <description>The problem is in lib/Horde/IMAP/Search.php line 539. The addslashes function is used to escape characters in the email address, which means the email address in this instance no longer matches what is on the IMAP server.



The attached patch &#039;fixes&#039; this by removing the addslashes function and using str_replace to only escape double quotes (since a double quoted string is being built).</description> 
   <pubDate>Thu, 18 Jan 2007 20:21:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28675</link> 
  </item> 
   
  <item> 
   <title>There is no addslashes() call in Search.php of any current I</title> 
   <description>There is no addslashes() call in Search.php of any current IMP version.</description> 
   <pubDate>Sat, 20 Jan 2007 15:29:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28748</link> 
  </item> 
   
  <item> 
   <title>My apologies, I forgot to clarify that the problem exists in</title> 
   <description>My apologies, I forgot to clarify that the problem exists in the Horde Framework, not IMP.



1. Download Horde-3.1.3

2. Untar

3. cd horde-3.1.3/lib/Horde/IMAP

4. Open Search.php

5. Goto line 539

6. Notice: $this-&gt;_query = String::upper($header) . &#039; &quot;&#039; . addslashes($query) . &#039;&quot;&#039;;



IMAP and Email RFCs in general are not my forte, thus the patch I supplied might not be the best or correct way to resolve the issue.</description> 
   <pubDate>Sat, 20 Jan 2007 19:37:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t28767</link> 
  </item> 
   
  <item> 
   <title>Fixed in CVS.</title> 
   <description>Fixed in CVS.</description> 
   <pubDate>Wed, 25 Apr 2007 17:40:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4854#t32265</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
