program/lib/imap.inc | ●●●●● patch | view | raw | blame | history | |
program/steps/mail/compose.inc | ●●●●● patch | view | raw | blame | history | |
program/steps/mail/sendmail.inc | ●●●●● patch | view | raw | blame | history |
program/lib/imap.inc
@@ -147,6 +147,7 @@ var $deleted = false; var $recent = false; var $answered = false; var $forwarded = false; var $junk = false; } @@ -1741,11 +1742,6 @@ // process flags $flags_str = eregi_replace('[\\\"]', '', $flags_str); $flags_a = explode(' ', $flags_str); /* trigger_error("<!-- ID: $id FLAGS: ".implode(",", $flags_a)." //-->\n", E_USER_WARNING); */ if (is_array($flags_a)) { reset($flags_a); @@ -1758,9 +1754,11 @@ $result[$id]->recent = true; } else if (strcasecmp($val, 'Answered') == 0) { $result[$id]->answered = true; } else if (strcasecmp($val, "\$MDNSent") == 0) { } else if (strcasecmp($val, '$Forwarded') == 0) { $result[$id]->forwarded = true; } else if (strcasecmp($val, '$MDNSent') == 0) { $result[$id]->mdn_sent = true; } } } $result[$id]->flags = $flags_a; } @@ -1915,7 +1913,8 @@ 'ANSWERED' => '\\Answered', 'DRAFT' => '\\Draft', 'FLAGGED' => '\\Flagged', 'MDNSENT' => "\$MDNSent"); 'FORWARDED' => '$Forwarded', 'MDNSENT' => '$MDNSent'); $flag = strtoupper($flag); $flag = $flags[$flag]; program/steps/mail/compose.inc
@@ -105,10 +105,6 @@ { $_SESSION['compose']['forward_uid'] = $msg_uid; } else if ($compose_mode == RCUBE_COMPOSE_DRAFT) { $_SESSION['compose']['draft_uid'] = $msg_uid; } } /****** compose mode functions ********/ program/steps/mail/sendmail.inc
@@ -348,11 +348,13 @@ return; } // set repliead flag // set replied/forwarded flag if ($_SESSION['compose']['reply_uid']) $IMAP->set_flag($_SESSION['compose']['reply_uid'], 'ANSWERED'); else if ($_SESSION['compose']['forward_uid']) $IMAP->set_flag($_SESSION['compose']['forward_uid'], 'FORWARDED'); } // End of SMTP Delivery Block } // End of SMTP Delivery Block