Mr. B. Vrieling wrote:
> I am using Roundcube RC1 on Linux using PHP 5.1.6.
> 
> Problem: When I perform a search in the SENT folder, the search never
> queries against the TO: field of the email. It only does the FROM: and
> SUBJECT: fields. This is not right.
>
> [...]
> 
> This makes perfect sense when the folder is *not* the SENT folder, but
> hampers searching within the SENT folder itself.

Yes, you're right. This could be improved.
> 
> I am not familiar enough with the Roundcube code, but I would think a fix
> would be to add an additional conditional such that if the folder being
> search is the SENT folder, change the default search criteria to search the
> TO: and not the FROM:.

Something like
if ($mbox == $CONFIG['sent_mbox'])
  $subject = array("HEADER SUBJECT", "HEADER TO");
else
 ...

> 
> Someone want to validate my analysis? Comment on my theory? Provide a
> patch? A snippet of code, per chance?

However, you can explicitly search for FROM and TO headers by entering
from:searchterm or to:searchterm

~Thomas


Reply via email to