From 2966f172d47d790d7dffc56d00d1fa6875621378 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 3 Apr 2000 12:51:30 +0000 Subject: [PATCH] removed debugging git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@382 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 24570bec..2436c824 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -438,15 +438,14 @@ } $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(); - } - ?> -- 2.25.1