Skip to content

Commit c9b215b

Browse files
authored
core(backend): output the sent message uid and its imap server id when it has successfully saved (#1521)
1 parent 4a74c28 commit c9b215b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/imap/handler_modules.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,13 @@ public function process() {
333333
$mailbox = Hm_IMAP_List::get_connected_mailbox($imap_id, $this->cache);
334334
if ($mailbox && $mailbox->authed()) {
335335
$uid = save_sent_msg($this, $imap_id, $mailbox, $imap_details, $msg, $mime->get_headers()['Message-Id']);
336-
if ($uid && $this->user_config->get('review_sent_email_setting', false)) {
337-
$this->out('redirect_url', '?page=message&uid='.$uid.'&list_path=imap_'.$imap_id.'_'.bin2hex($sent_folder));
336+
if ($uid) {
337+
$this->out('sent_msg_uid', $uid);
338+
$this->out('sent_imap_id', $imap_id);
339+
340+
if ($this->user_config->get('review_sent_email_setting', false)) {
341+
$this->out('redirect_url', '?page=message&uid='.$uid.'&list_path=imap_'.$imap_id.'_'.bin2hex($sent_folder));
342+
}
338343
}
339344
}
340345
}

0 commit comments

Comments
 (0)