6.0.0-beta1
9/18/25

[#3210] sent-mail folder preference
Summary sent-mail folder preference
Queue IMP
Queue Version HEAD
Type Bug
State Duplicate
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester adrieder (at) sbox (dot) tugraz (dot) at
Created 12/30/2005 (7202 days ago)
Due
Updated 01/05/2006 (7196 days ago)
Assigned 01/02/2006 (7199 days ago)
Resolved 01/05/2006 (7196 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/05/2006 07:20:30 AM Michael Slusarz Comment #8
State ⇒ Duplicate
Priority ⇒ 1. Low
Reply to this comment
Duplicate of Bug 2802.
01/04/2006 01:49:53 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #7
New Attachment: Folder.php.patch Download
Reply to this comment
maybe try this patch :-)

Any thoughts, comments, screams, laughing ?
01/04/2006 01:49:28 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #6 Reply to this comment
maybe try this patch :-)

Any thoughts, comments, screams, laughing ?
01/04/2006 12:26:14 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #5 Reply to this comment
A var_dump of $list after line 191 in horde/imp/lib/Folder.php gives:



array(1) {

   ["INBOX"]=>

   array(3) {

     ["val"]=>

     string(0) ""

     ["label"]=>

     string(5) "INBOX"

     ["abbrev"]=>

     string(5) "INBOX"

   }

}



This entry gets added in line 184 and leads to the described problem.

Unfortunately I don't really understand the while() code block arround 
that line.

But I think it doesn't care about the $filter parameter.
01/02/2006 05:51:17 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
01/02/2006 05:33:11 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #4
New Attachment: compose.php[1].patch Download
Reply to this comment
This patch would deal with the problem, and is probably a bit better 
then my previous one
01/02/2006 05:27:31 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #3 Reply to this comment
I think I found the source of the problem:

The flist() function form Folder.php returns an array with the users 
folders. In my case the first element of this array is empty, this 
causes a shift in the index used to select the right folder.

flist() is used in compose.php on lin 799: $folders = 
$imp_folder->flist_IMP(array('INBOX'));



BTW: the imap server in use is a cyrus-imapd 2.2.12
01/02/2006 09:41:54 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #2
New Attachment: compose.php.patch Download
Reply to this comment
The attached patch, seems to fix the problem for me.

Can someone check if this makes sense?



Didi



p.s.:

This does not fix the display of the correct "sent-mail" folder on the 
preferences page.
12/30/2005 04:56:41 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ sent-mail folder preference
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
When creating additional identities and using "sent-mail" folders 
other than the default one for these new identities, sent messages 
will not be saved in the specified folder but in the folder below it 
in the folder tree. Additionally the prefecence screen for the 
identities does not show the specified folder for a given identitie, 
but it shows just "Use Default Value".



eg:

Default Identitiy -> use sent-mail (== default) (everything works ok)

Test1 Identity -> use folder test1.sub.sent-mail (not ok, will use 
test2 to save)

Test2 Identity -> use folder test2.sub.sent-mail (not ok, will use 
Trash to save)



Folder structure:

Inbox

   drafts

   sent-mail

   spam

   test1

     sub

        sent-mail

   test2

     sub

       sent-mail

   Trash

announce


Saved Queries