6.0.0-alpha12
6/12/25

[#8072] identities prefs sent_mail_folder appears always as default
Summary identities prefs sent_mail_folder appears always as default
Queue IMP
Queue Version 4.3.3
Type Bug
State No Feedback
Priority 1. Low
Owners
Requester dom.lalot (at) gmail (dot) com
Created 03/11/2009 (5937 days ago)
Due
Updated 04/20/2009 (5897 days ago)
Assigned 03/17/2009 (5931 days ago)
Resolved 04/20/2009 (5897 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/20/2009 08:30:10 AM Jan Schneider State ⇒ No Feedback
 
03/30/2009 01:01:17 PM Jan Schneider Comment #15 Reply to this comment
The correct solution is to try to find out why the javascript is *not* 
correctly filling the form.
03/26/2009 09:53:55 AM dom (dot) lalot (at) gmail (dot) com Comment #14 Reply to this comment
The correct select option is not supposed to be set in the page
source, it is set by javascript on page load.
Oups, difficult to see that and to debug. Anyway my patch is OK for me 
and correct that bug. If there is another solution let me know where 
to have a look


03/25/2009 10:18:05 PM Jan Schneider Comment #13 Reply to this comment
The correct select option is not supposed to be set in the page 
source, it is set by javascript on page load.
03/18/2009 02:22:46 PM dom (dot) lalot (at) gmail (dot) com Comment #12
New Attachment: sentmailselect.patch Download
Reply to this comment
I've added a patch.



I'm not sure that the patch is good. Perhaps should we add some tests 
to see if identities is locked. For several identities, I'm not sure. 
For me, it's working anyway



Dom
03/18/2009 01:38:04 PM dom (dot) lalot (at) gmail (dot) com Comment #11 Reply to this comment
Just a little add,



In "Server and Folder Information", everything is fine, but it seems 
that ingo anti-spam rule has the same selected folder problem



I'm trying to debug now.



Dom

[Show Quoted Text - 37 lines]
03/18/2009 11:21:23 AM dom (dot) lalot (at) gmail (dot) com Comment #10 Reply to this comment
That's me again.



There is something wrong with my setup:

This time, I just modify my signature, and the folder INBOX/ade has 
been created!



If you look at the screen shot, you will see that I have already an 
INBOX/ade. So this one is now INBOX/INBOX/ade



Is there a bug sometimes with the imap separator which is / instead of . ?



That should be imap related but I don't see the mistake, as almost 
everything is working:



$servers['Cyrus Imap Server'] = array(

     'name' => 'IMAP Server',

     'server' => 'imap.univmed.fr',

     'hordeauth' => true,

     'protocol' => 'imap/notls',

     'port' => 143,

     'quota' => array(

         'driver' => 'imap',

         'params' => array(

             'userhierarchy' => 'user/',

         )

     ),

     'login_tries' => 1,

     'maildomain' => 'univmed.fr',

     'smtphost' => 'smtp.univmed.fr',

     'smtpport' => 25,

     'realm' => '',

     'preferred' => '',

     'acl' => array(

         'driver' => 'rfc2086',

     ),

);


03/18/2009 11:07:30 AM dom (dot) lalot (at) gmail (dot) com Comment #9 Reply to this comment

[Show Quoted Text - 13 lines]
in imp/templates/prefs/sentmailselect.inc



<select name="sent_mail_folder" id="sent_mail_folder" 
onchange="newFolderName();">

   <option value=""><?php echo _("None") ?></option>

   <option value="-1" selected="selected"><?php echo _("Use Default 
Value") ?></option>

   <?php echo IMP::flistSelect(_("Create a new sent mail folder"), 
true, array('INBOX')) ?>

</select><br />



That's the problem I was speaking about, the selected options is 
allways default and should be the previous choosen user folder



get old value and make it appears as selected..
03/18/2009 07:58:20 AM dom (dot) lalot (at) gmail (dot) com Comment #8 Reply to this comment
Sorry, I lost you completely. I have no idea what you think should be
the correct behavior, how you have set up your server, etc.
No problem.



I believe that the value in identities is used to compare to the list 
of folders.

The folder list contains INBOX/ade (can see the drop down list html code)

But the sent_mail_folder in identities does not contain INBOX/



I suppose (not sure) that could be the cause of the bad selected value



Dom
03/17/2009 10:36:55 AM Jan Schneider Comment #7
State ⇒ Feedback
Reply to this comment
Sorry, I lost you completely. I have no idea what you think should be 
the correct behavior, how you have set up your server, etc.
03/16/2009 02:43:34 PM dom (dot) lalot (at) gmail (dot) com Comment #6 Reply to this comment
It's a configuration file. If this default value works for you, then use it.
Did you see the screenshot?

You can notice that ade is not the default value, and I gave you the 
prefs in my conf and also the dumped values of the database.



Dom


03/16/2009 01:24:45 PM Jan Schneider Comment #5
State ⇒ Not A Bug
Reply to this comment
It's a configuration file. If this default value works for you, then use it.
03/16/2009 07:54:11 AM dom (dot) lalot (at) gmail (dot) com Comment #4
New Attachment: hordeoptionssent.jpg Download
Reply to this comment
Works fine here, and I don't understand what exactly your problem is.
Jan,



You can see how my selected folder is seen

(Use default value instead of INBOX/ade)

When saved, the INBOX/ part is stripped. The default value should be 
INBOX/Sent as you can see at the bottom



lalot   horde   identities       
a:1:{i:0;a:12:{s:2:"id";s:15:"Dominique 
LALOT";s:8:"fullname";s:15:"Dominique 
LALOT";s:9:"from_addr";s:26:"dominique.lalot@univxxx.fr";s:12:"replyto_addr";s:0:"";s:10:"alias_addr";\nhttp://annuaire.univmed.fr/showuser.php?uid=lalot";s:9:"sig_first";i:0;s:10:"sig_dashes";i:1;s:14:"save_sent_mail";i:1;s:16:"sent_mail_folder";s:3:"ade";}}



lalot   imp     save_sent_mail  1

lalot   imp     sent_mail_folder        INBOX/ade



// 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' => 'INBOX/Sent',

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');


03/14/2009 04:09:22 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
Works fine here, and I don't understand what exactly your problem is.
03/13/2009 08:20:53 AM dom (dot) lalot (at) gmail (dot) com Comment #2 Reply to this comment

[Show Quoted Text - 13 lines]
Well,



I've done some other tests. Sent mail is rather tricky as it's bound 
to identities (that we locked)



First: There is two prefs that I don't understand



One in a value of horde identities and that one is saved as "folder", 
not INBOX/folder which explains why it's not selected after.



I deleted sent_mail_folder, then change in identities and discovered 
that sent_mail_folder gets the previous value of identities



identites:ade

sent_mail_folder: INBOX/Sent



removed sent_mail_folder

changed:

identities:amis

sent_mail_folder: INBOX/ade



Anyway, compose is relying on identities value and it's working. But 
for my point of view, there is a display bug and something that I 
don't understand about that prefs



I wanted to write a perl script to select the right sent mail folder, 
and discovered, that imap clients are awful, and that the prefs is not 
easy to catch (embedded in a php serialize value..)



Dom
03/11/2009 02:25:27 PM dom (dot) lalot (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ identities prefs sent_mail_folder appears always as default
Type ⇒ Bug
Queue ⇒ IMP
Reply to this comment
Hello,



When, I select a sent_mail_folder, it's selected, and I can see that 
the folder is used in compose. But when I come back to the options, 
it's written  "default value" instead of the right value. The current 
selected folder does not appear. There is no selected options in the 
drop down box.



My imap namespace is empty, and we are using shared folders.



Dom




Saved Queries