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

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Mar 24 14:54:25 PST 2006


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

Ticket URL: http://bugs.horde.org/ticket/?id=3687
-----------------------------------------------------------------------
 Ticket             | 3687
 Created By         | david-shafer at uiowa.edu
 Summary            | imap_append in Message.php fails with no errors
 Queue              | IMP
 Version            | 4.1
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


david-shafer at uiowa.edu (2006-03-24 14:54) 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