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 |
correctly filling the form.
source, it is set by javascript on page load.
and correct that bug. If there is another solution let me know where
to have a look
source, it is set by javascript on page load.
New Attachment: sentmailselect.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
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
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',
),
);
<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..
the correct behavior, how you have set up your server, etc.
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
State ⇒ Feedback
the correct behavior, how you have set up your server, etc.
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
State ⇒ Not A Bug
New Attachment: hordeoptionssent.jpg
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');
State ⇒ Feedback
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
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ identities prefs sent_mail_folder appears always as default
Type ⇒ Bug
Queue ⇒ IMP
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