[Tickets #10098] Re: save_sent_mail pref gets corrupted
bugs at horde.org
bugs at horde.org
Fri May 20 07:30:14 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10098
------------------------------------------------------------------------------
Ticket | 10098
Updated By | rsalmon at mbpgroup.com
Summary | save_sent_mail pref gets corrupted
Queue | IMP
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
rsalmon at mbpgroup.com (2011-05-20 07:30) wrote:
> I have no idea, and there doesn't seem to be any place where this
> could realistically happen.
:-)
In function /imp/lib/Prefs/Identity.php: function getValue
I've added the following code just before the return call :
if ($key == 'sent_mail_folder') {Horde::debug($val);}
And this is what I get :
2011-05-20T09:12:10+02:00 DEBUG: Variable information:
object(IMP_Mailbox)#213 (3) {
["cache"]=>
array(2) {
["n"]=>
array(3) {
[0]=>
string(1) "."
[2]=>
string(6) "INBOX."
[4]=>
int(1)
}
["d"]=>
string(7) "Envoyé"
}
["changed"]=>
int(0)
["_mbox":protected]=>
string(10) "INBOX.Sent"
}
Backtrace:
1. IMP_Views_Compose::showCompose()
/var/www/html/hordetest/imp/compose-dimp.php:247
2. Imp_Prefs_Identity->getValue()
/var/www/html/hordetest/imp/lib/Views/Compose.php:91
3. Horde::debug() /var/www/html/hordetest/imp/lib/Prefs/Identity.php:520
it seams that $val is an object, not a string. So the strlen call
should fail in the return, no ?
and IMP_Mailbox::get(IMP_Mailbox::prefFrom($val)) seams to be
returning an object(IMP_Mailbox)
> However, there was some problems with the sent mail prefs UI that
> may have caused bad data to be stored in the save_sent_mail
> preference - try resaving the correct values through the UI again.
I didn't use the UI to set pref, and pref save_sent_mail wasn't set in
horde_prefs. I used the default value (whatever is set in prefs.php).
but just to make sure, I delete all prefs in DB (mysql> delete from
horde_prefs;) and will test again...
More information about the bugs
mailing list