[imp] bug in imp/compose.php

Jon Parise jon@horde.org
Sun, 25 Nov 2001 18:00:16 -0500


On Sun, Nov 25, 2001 at 11:05:57PM +0100, Steeman Philip wrote:

> there is a problem with the sentmail folder selection box in compose.
> (it is always the alphabetic first one which is displayed)
> 
> The problem (I looked in the source)
> 
> around line 973, there is a check between 
> $folder['val'] and $identity->getValue[sent_mail_folder ...
> 
> BUT:
> when you have e.g. 'mail/' as your mailpath
> 
> $folders['val'] == 'mail/sent-mail'
>   and
> $identity->getValue[sent_mail_folder...] == 'sent-mail'
> 
> So, THEY NEVER MATCH.
 
It sounds like you're referring to this comparison:

if ($folder['val'] == IMP::preambleString() . $identity->getValue('sent_mail_folder', $ident))

The call to IMP::preambleString() should be providing the folder
prefix (e.g. 'mail/').  Is that not happening on your system?

-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member