[#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 Michael Slusarz <slusarz (at) horde (dot) org>
Requester benoit (dot) poulet (at) businessdecision (dot) com
Created 10/23/2008 (254 days ago)
Due
Updated 06/28/2009 (6 days ago)
Assigned
Resolved 06/28/2009 (6 days ago)
Attachments imp_lib_IMAP_Tree.php.patch Download
trad_special_folders_IMP4.3.4.diff Download
Milestone
Patch No

History
06/28/2009 Chuck Hagenbuch State ⇒ No Feedback
 
05/12/2009 Jan Schneider Version ⇒ Git master
 
05/12/2009 Jan Schneider Version ⇒ HEAD
 
05/12/2009 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 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 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 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 Michael Slusarz Comment #6
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Added to IMP 5.
12/08/2008 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 benoit (dot) poulet (at) businessdecision (dot) com Comment #4 Reply to this comment
Patch tested and it's working very well.

Thank you Massimiliano.

[Hide Quoted Text]
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
11/16/2008 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 Jan Schneider Comment #2
State ⇒ Accepted
Reply to this comment
Accepted, due to popular request. See the mailing list archives.
10/23/2008 benoit (dot) poulet (at) businessdecision (dot) com Comment #1
Patch ⇒
Milestone ⇒
Summary ⇒ Translation and Pseudo default folders
Type ⇒ Enhancement
Priority ⇒ 1. Low
State ⇒ New
Queue ⇒ IMP
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.