[Tickets #3687] Re: imap_append in Message.php fails with no errors

bugs at horde.org bugs at horde.org
Fri Apr 23 17:04:03 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/3687
------------------------------------------------------------------------------
  Ticket             | 3687
  Updated By         | juan.casseus at gmail.com
  Summary            | imap_append in Message.php fails with no errors
  Queue              | IMP
  Version            | 4.1
  Type               | Bug
  State              | Resolved
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
+New Attachment     | script
------------------------------------------------------------------------------


juan.casseus at gmail.com (2010-04-23 13:04) wrote:

> On line 218 of Message.php (v 1.164.8.34), the call to imap_append()  
> was returning false with no errors. I was finally able to resolve  
> the problem by changing the imap_append() call to use  
> IMP::serverString() (much like the imap_append() call on line 539).
>
>
>
> Here is the original version:
>
>
>
> /* Save messages in Trash folder. */
>
> foreach ($msg_text as $val) {
>
> if (!@imap_append($imp['stream'], $trash, $val)) {
>
>
>
> Here it is after the fix:
>
>
>
> $folderstring = IMP::serverString($trash);
>
> /* Save messages in Trash folder. */
>
> foreach ($msg_text as $val) {
>
> if (!@imap_append($imp['stream'], $folderstring, $val)) {







More information about the bugs mailing list