6.0.0-beta1
7/5/25

[#7545] Translation and Pseudo default folders
Summary Translation and Pseudo default folders
Queue IMP
Queue Version Git master
Type Enhancement
State No Feedback
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester benoit.poulet (at) businessdecision (dot) com
Created 10/23/2008 (6099 days ago)
Due
Updated 01/12/2010 (5653 days ago)
Assigned
Resolved 06/28/2009 (5851 days ago)
Milestone
Patch No

History
06/28/2009 04:24:49 PM Chuck Hagenbuch State ⇒ No Feedback
 
05/12/2009 02:12:01 PM Jan Schneider Version ⇒ Git master
 
05/12/2009 02:11:45 PM Jan Schneider Version ⇒ HEAD
 
05/12/2009 02:11:21 PM Jan Schneider Comment #10
State ⇒ Feedback
Reply to this comment
Please create your patch against a current checkout. Your patch also 
contains the changes that have been applied in Git already.
05/06/2009 12:42:10 PM clement (dot) hermann (at) businessdecision (dot) com Comment #9
New Attachment: trad_special_folders_IMP4.3.4.diff Download
Reply to this comment
We have an updated patch (attached)  that adds a prefs.php object
(should the pseudo default folders be translated or not).
There is no attachment.
My bad. Here it is.
05/06/2009 12:15:18 PM Jan Schneider Comment #8 Reply to this comment
We have an updated patch (attached)  that adds a prefs.php object
(should the pseudo default folders be translated or not).
There is no attachment.
05/06/2009 12:09:38 PM clement (dot) hermann (at) businessdecision (dot) com Comment #7 Reply to this comment
Added to IMP 5.
We have an updated patch (attached)  that adds a prefs.php object 
(should the pseudo default folders be translated or not).



That way, people wanting the old behavior could have it.



Regards,



Clément Hermann




12/29/2008 09:06:40 PM Michael Slusarz Comment #6
State ⇒ Resolved
Assigned to Michael Slusarz
Reply to this comment
Added to IMP 5.
12/08/2008 01:01:45 PM thomas (at) gelf (dot) net Comment #5 Reply to this comment
I would have been quite happy if stumbled earlier over this ticket! 
Thanks for the patch, this is the correct way of solving this issue.



For Horde devs: before committing (I really hope you're doing so ;-)) 
please have a look at translation files - there is an 
IMAP_UTF7-encoded string at least in German translation (Drafts). As a 
quick grep told me German seems to be the only translation handling 
current default preference "correctly", Slovak, French and Turkish 
also contain special chars in folder translations, but are not using 
IMAP_UTF7 encoding. This is probably also true for Traditional Chinese 
and Japanese - but I'm not so used to this languages / encodings to 
give a competent statement ;-)



Cheers,

Thomas


11/28/2008 09:26:35 AM benoit (dot) poulet (at) businessdecision (dot) com Comment #4 Reply to this comment
Patch tested and it's working very well.



Thank you Massimiliano.

[Show Quoted Text - 51 lines]
11/16/2008 03:44:17 PM m (dot) ferrero (at) midhgard (dot) it Comment #3
New Attachment: imp_lib_IMAP_Tree.php.patch Download
Reply to this comment
Here is a patch that solves the isuue:



You also have to set in imp prefs.php



// sent mail folder

$_prefs['sent_mail_folder'] = array(

     // The mailbox value must be encoded in the UTF7-IMAP charset (see RFC

     // 3501 [5.1.3]). For Exchange, uncomment the entry below and remove the

     // default value entry.

     // 'value' => 'Sent Items',

     'value' => "Sent",

//    'value' => _("Sent"),

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');



// drafts folder

$_prefs['drafts_folder'] = array(

     // The mailbox value must be encoded in the UTF7-IMAP charset (see RFC

     // 3501 [5.1.3]).

     'value' => "Drafts",

//    'value' => _("Drafts"),

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');



// trash folder

$_prefs['trash_folder'] = array(

     // The mailbox value must be encoded in the UTF7-IMAP charset (see RFC

     // 3501 [5.1.3]). For Exchange, uncomment the entry below and remove the

     // default value entry.

     // 'value' => 'Deleted Items',

     'value' => "Trash",

//    'value' => _("Trash"),

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');



// spam folder

$_prefs['spam_folder'] = array(

     // The mailbox value must be encoded in the UTF7-IMAP charset (see RFC

     // 3501 [5.1.3]).

     'value' => "Spam",

//    'value' => _("Spam"),

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');





Best regards

Massimiliano Ferrero
10/24/2008 10:38:56 AM Jan Schneider Comment #2
State ⇒ Accepted
Reply to this comment
Accepted, due to popular request. See the mailing list archives.
10/23/2008 02:58:39 PM benoit (dot) poulet (at) businessdecision (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Translation and Pseudo default folders
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
Hello,



In many webmails, mail clients, we can define a translated name for 
pseudo-standard IMAP folders like

"Inbox", "Sent", "Draft", "Junk", and "Trash"



In result, we got the same defaults folders for all theses things into 
the webmail and with our mail client (like Thunderbird for example).



But it's not possible with IMP.

In IMP we got only 2 choices :



Choice 1 => Use the translated name

With this setting, the folder's names in the UI are well translated 
but translated names are used too by the IMAP backend.

So if you use the UI one time in french and one time in german, IMP 
will create 2 IMAP folders : "Envoyés" and "Gesendet"

And when you switch with an e-mail client you will see 3 IMAP folders 
:"Sent", "Envoyés" and "Gesendet".

A bit confusing.



Choice 2 => Force the folder's name in the "pref.php"

Now all users will get the same folder for the webmail and the e-mail 
client but IMP will display them with their english name whatever the 
language you are using for the UI in IMP.



Can we just add, for all theses "pseudo-standard" forders, an option 
to map translated names to real imap folders ?



Regards,

Benoit Poulet.




Saved Queries