> Is it possible to get SquirrelMail v1.5.1 to sort by Subject and ignore > the Re: in the subject. > > Actually I would like to sort by thread (sort by subject in reverse > order) if possible.
As SquirrelMail is today: no, it's not possible to ignore the "Re:" in the subject. There are two major obstacles: position and language; and one minor: case. First of all you don't know where in the subject the "Re:" is inserted. Take a quick look at the SquirrelMail mailing lists. Most of the time it's "Re: [SM-USERS]" but every now and then you'll find a "[SM-USERS] Re:". This and case might be solved by using regular expressions (reg exp), which is done in some e-mail related applications. (Take a look at <http://news.gmane.org/gmane.mail.squirrelmail.user> for instance.) The reg exp needs to be a clever one so you don't filter out wanted occurences of "Re:". It's unusual to use "Re:" in other contexts, but nevertheless... Use your own subject as an example. I assume that you want to remove the first "Re:" in the subject from my reply to you, but not the second. Which leads us to languages. Some languages are written from left to right. Can you be sure that it's the leftmost "Re:" that needs to be removed? (Well, the colon is a strong indicator of that.) And the "Re:" isn't a standard, but a convention. Some clients translates this to other languages. I've seen "SV:" and "Sv:" in e-mails originating from Sweden. Do you intend to collect all possible tranlations to be sure that you remove the right part? Now your reg exp gets even more complicated. If you don't strip the "Re:" out of the subject, you need to keep two strings internally: one for displaying with the "Re:" intact, and one used for sorting. This isn't much of a problem though. Threading is supported by some IMAP servers. Get one that supports it and configure SquirrelMail to use threading. Sincerely, Fredrik. -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users