[dev] lib/MIME/Headers.php : unneeded NLS conversion of mail header in listHeaders() ?

Etienne Goyer etienne.goyer at linuxquebec.com
Mon Dec 15 08:34:27 PST 2003


On Mon, Dec 15, 2003 at 05:19:46PM +0100, Jan Schneider wrote:
> This is not an error. You translate other headers like "Subject:" and
> "From:" too, no?

 Subject: and From: headers are special case; Return-Path and Received:
headers (for example) do not and _should_ not be translated (they are
not shown to the user anyway).

If I am wrong, then ingo/lib/Script/sieve.php have to be fixed.  Around
line 300, it grab headers name that correspond to list.  Since these are
translated, I end up with sieve script that look like : 

---
# sieve filter generated by Ingo (December 15, 2003, 11:33 am)

require "vacation";

# Message d'absence
if allof ( not exists ["Aide de la liste", "Désabonnement de la liste", "Abonnement à la liste", "Propriétaire de la liste", "Envoi à la liste", "Archives de la liste", "Id. de la liste"], not header :comparator "i;ascii-casemap" :is "Precedence" "list,bulk" ) {
    vacation :days 1 :addresses "some.address at example.com" :subject "test" "test";
}
---

The sieve script have to match List-Help or List-Subscribe, not "Aide de la liste" or 
"Désabonnement de la liste".

See ?

-- 
Etienne Goyer                    Linux Québec Technologies Inc.
http://www.LinuxQuebec.com       etienne.goyer at linuxquebec.com


More information about the dev mailing list