Re: Error message on reply
Jonathan Angliss <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 28 Oct 2009 11:37:56 +0100, "Sebastian Voitzsch" <[email protected]> wrote: >Hi, > >I think I discovered a bug in squirrelmail. I´m using it with dovecot, >and most features work ok. > >However, I encounter an error message everytime I reply to a mail. The >short error is: "Could not append message to Sent. Server responded: >RED)". > >This doesn´t happen when creating a new mail, only in responding. I changed >functions/imap_general.php to get the full response from server, what is: > >* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent KMAILFORWARDED >KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED) > >Obviously, the "NO" from "IGNORED" / "KMAILIGNORED" makes the term ><preg_match("/(.*)(BAD|NO)(.*)$/"> to fail. > >Think there should be a \b before and after the (BAD|NO): > >"/(.*)\b(BAD|NO)\b(.*)$/" > >This way it only fails when "NO"/"BAD" is on a word boundary, not within >other words. Good catch, I'll run through some tests, and fix. Interestingly enough, the regex would be wrong anyway, it really shouldn't be looking for the word NO anywhere in the string, except right after a * (if my fuzzy memory serves me correctly). I'll poke around, and see about fixing. -- Jonathan Angliss <[email protected]> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel