|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Error message on replyHi,
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. Thanks, Sebastian ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-devel@... List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel |
|
|
Re: Error message on replyOn Wed, 28 Oct 2009 11:37:56 +0100, "Sebastian Voitzsch"
<sebastian@...> 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 <jon@...> ------------------------------------------------------------------------------ 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: squirrelmail-devel@... List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel |
| Free embeddable forum powered by Nabble | Forum Help |