information.
- Support for LIST-SUBSCRIBED extension. This speeds up the retrieval of
the subscribed mailbox-list.
+ - Properly clean up temporary attachment files when saving as Draft
+ (#1358407)
Version 1.5.0 - 2 February 2004
-------------------------------
sqsession_register($compose_messages , 'compose_messages');
}
+/**
+ * Given a composeMessage, recursively delete all temporary files in the
+ * attachment dir for each body part of that message.
+ */
function ClearAttachments($composeMessage) {
if ($composeMessage->att_local_name) {
$attached_file = $composeMessage->att_local_name;
sqimap_append_done ($imap_stream, $draft_folder);
sqimap_logout($imap_stream);
unset ($imap_deliver);
+ ClearAttachments($composeMessage);
return $length;
} else {
$msg = '<br />'.sprintf(_("Error: Draft folder %s does not exist."), $draft_folder);