git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@382
7612ce4b-ef26-0410-bec9-
ea0150e637f0
}
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
}
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
- sqimap_append ($imap_stream, $sent_folder, $length);
- write822Header ($imap_stream, $t, $c, $b, $subject);
- writeBody ($imap_stream, $body);
- sqimap_append_done ($imap_stream);
-
+ if (sqimap_mailbox_exists ($imap_stream, $sent_folder)) {
+ sqimap_append ($imap_stream, $sent_folder, $length);
+ write822Header ($imap_stream, $t, $c, $b, $subject);
+ writeBody ($imap_stream, $body);
+ sqimap_append_done ($imap_stream);
+ }
// Delete the files uploaded for attaching (if any).
deleteAttachments();
// Delete the files uploaded for attaching (if any).
deleteAttachments();