<?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>mail-filter.php not work</title> 
  <pubDate>Fri, 10 Apr 2026 15:00:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/2195</link> 
  <atom:link rel="self" type="application/rss+xml" title="mail-filter.php not work" href="https://bugs.horde.org/ticket/2195/rss" /> 
  <description>mail-filter.php not work</description> 
 
   
   
  <item> 
   <title>Since a few days ago,the mail-filter.php didn&#039;t work anymore</title> 
   <description>Since a few days ago,the mail-filter.php didn&#039;t work anymore, if use non-ascii string in paramater list .eg, queue ,prioriy or state in my /etc/mail/aliases



Here is my /etc/mail/aliases:

track_comment: &quot;| /usr/local/apache/horde.beta/whups/scripts/mail-filter.php   --queue &#039;????&#039; --type &#039;??&#039; --priority &#039;1. ?&#039; --state &#039;???&#039;&quot;



Change all non-ascII string to ascII in aliases above and mail again then it was added to whups track system successfully,however there are so many question mark in that  ticket&#039;s content ,if use Chinese in the mail. 



David



</description> 
   <pubDate>Wed, 29 Jun 2005 08:50:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t9429</link> 
  </item> 
   
  <item> 
   <title>How should that work? I don&#039;t see any reliable way to determ</title> 
   <description>How should that work? I don&#039;t see any reliable way to determine the charset that was used for the cli parameters.</description> 
   <pubDate>Wed, 29 Jun 2005 12:30:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t9434</link> 
  </item> 
   
  <item> 
   <title>&gt; How should that work? I don&#039;t see any reliable way to dete</title> 
   <description>&gt; How should that work? I don&#039;t see any reliable way to determine the 

&gt; charset that was used for the cli parameters.

Thanks for your quick reply, jan.



My another whups (Nightly Snapshots 4/17) base on Horde3.0.4  works great on this issue and i didn&#039;t provide any charset information to cli as paramaters before. so i am curious why  current mail-filter.php need to determine charset ? Perhaps use charset info in mail&#039;s header is a good solution.



FYI,attached these file for your reference.

1.mail.eml ,what i send to mail-filter.

2.ticket_view.gif, the screenshot explain that mail&#039;s header was not decoded correctly in whups view .



P.S : From Jul 1 to 19 ,i will have my vacation in India ,so please don&#039;t close this ticket if any feedback required .



Best Regards.

David

</description> 
   <pubDate>Thu, 30 Jun 2005 02:31:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t9445</link> 
  </item> 
   
  <item> 
   <title>Alright, we were talking about something different. I though</title> 
   <description>Alright, we were talking about something different. I thought the queue, state etc. name that you specify as parameters for mail-filter.php don&#039;t work.



Encoded message headers work fine for me here, and I committed a fix yesterday that made encoded bodies work too.</description> 
   <pubDate>Thu, 30 Jun 2005 07:21:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t9448</link> 
  </item> 
   
  <item> 
   <title>&gt; Alright, we were talking about something different. I thou</title> 
   <description>&gt; Alright, we were talking about something different. I thought the 

&gt; queue, state etc. name that you specify as parameters for 

&gt; mail-filter.php don&#039;t work.

Yes,it realy don&#039;t work.

I have to use queue,state and priority name in ascii format  if i want to add ticket successfully by mail-filter.php. It didn&#039;t accept queue,state and priority name in non-asc format. and this is my first problem.



&gt;

&gt; Encoded message headers work fine for me here, and I committed a fix 

&gt; yesterday that made encoded bodies work too.

This is another problem,message&#039;s header not encoded correctly for me here.

</description> 
   <pubDate>Thu, 30 Jun 2005 07:49:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t9451</link> 
  </item> 
   
  <item> 
   <title>For debug mail-filter.php ,i just add var_dump($queues); to </title> 
   <description>For debug mail-filter.php ,i just add var_dump($queues); to line 94

and run it with paramaters ,see screenshot  http://210.241.49.67/~txg16/usage.gif



The result, see http://210.241.49.67/~txg16/result.gif

All the queues(some of name in chinese) display in whups UI,see http://210.241.49.67/~txg16/all-queues.gif



compare between result.gif &amp; all-queues.gif,i think that is why mail-filter.php not work,but i could not find how/where to hack it.



David









</description> 
   <pubDate>Wed, 27 Jul 2005 07:06:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t10054</link> 
  </item> 
   
  <item> 
   <title>This won&#039;t change, we simply don&#039;t know the charset used if </title> 
   <description>This won&#039;t change, we simply don&#039;t know the charset used if running a CLI, so we can&#039;t translate non-ascii queues correctly.



It might make more sense to use queue/state/etc IDs instead.</description> 
   <pubDate>Wed, 27 Jul 2005 12:15:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t10063</link> 
  </item> 
   
  <item> 
   <title>&gt; This won&#039;t change, we simply don&#039;t know the charset used i</title> 
   <description>&gt; This won&#039;t change, we simply don&#039;t know the charset used if running a 

&gt; CLI, so we can&#039;t translate non-ascii queues correctly.

&gt;

&gt; It might make more sense to use queue/state/etc IDs instead.

Hi,Jan

Are you means using such usage below instead ?

# ./mail-filter.php --queue 1 --type 2 --priority 3 --state 1 



If true,that seems not worked for me, or can you make an example here ? thank you.



David





</description> 
   <pubDate>Thu, 28 Jul 2005 00:47:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t10090</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This won&#039;t change, we simply don&#039;t know the charset used </title> 
   <description>&gt;&gt; This won&#039;t change, we simply don&#039;t know the charset used if running a

&gt;&gt; CLI, so we can&#039;t translate non-ascii queues correctly.

&gt;&gt;

&gt;&gt; It might make more sense to use queue/state/etc IDs instead.

&gt; Hi,Jan

&gt; Are you means using such usage below instead ?

&gt; # ./mail-filter.php --queue 1 --type 2 --priority 3 --state 1



Yes.



&gt; If true,that seems not worked for me, or can you make an example here 

&gt; ? thank you.



Of course it doesn&#039;t work, because the script expects the queue *names* at the moment. The script should be changed to expect IDs instead.</description> 
   <pubDate>Thu, 28 Jul 2005 07:46:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t10093</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; This won&#039;t change, we simply don&#039;t know the charset used</title> 
   <description>&gt;&gt;&gt; This won&#039;t change, we simply don&#039;t know the charset used if running a

&gt;&gt;&gt; CLI, so we can&#039;t translate non-ascii queues correctly.

&gt;&gt;&gt;

&gt;&gt;&gt; It might make more sense to use queue/state/etc IDs instead.

&gt;&gt; Hi,Jan

&gt;&gt; Are you means using such usage below instead ?

&gt;&gt; # ./mail-filter.php --queue 1 --type 2 --priority 3 --state 1

&gt;

&gt; Yes.

&gt;

&gt;&gt; If true,that seems not worked for me, or can you make an example here

&gt;&gt; ? thank you.

&gt;

&gt; Of course it doesn&#039;t work, because the script expects the queue 

&gt; *names* at the moment. The script should be changed to expect IDs 

&gt; instead.

Will horde term patch it recently ? because this ticket mark to resolved.



David

</description> 
   <pubDate>Thu, 28 Jul 2005 08:51:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t10098</link> 
  </item> 
   
  <item> 
   <title>No. But this doesn&#039;t belong anymore to this ticket.

You can</title> 
   <description>No. But this doesn&#039;t belong anymore to this ticket.

You can create a new enhancement ticket to change mail-filter.php&#039;s parameters, if you want.</description> 
   <pubDate>Thu, 28 Jul 2005 09:44:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2195#t10099</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
