- Fix MDNSent flag checking, use arbitrary keywords (asterisk) flag (#1485706)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2009/01/28 (alec) |
| | | ---------- |
| | | - Fix MDNSent flag checking, use arbitrary keywords (asterisk) flag (#1485706) |
| | | |
| | | 2009/01/23 (alec) |
| | | ---------- |
| | | - Fix creation of folders with '&' sign in name |
| | |
| | | */ |
| | | function check_permflag($flag) |
| | | { |
| | | $flagsmap = $GLOBALS['IMAP_FLAGS']; |
| | | return (($imap_flag = $flagsmap[strtoupper($flag)]) && in_array_nocase($imap_flag, $this->conn->permanentflags)); |
| | | $flag = strtoupper($flag); |
| | | $imap_flag = $GLOBALS['IMAP_FLAGS'][$flag]; |
| | | return (in_array_nocase($imap_flag, $this->conn->permanentflags)); |
| | | } |
| | | |
| | | |
| | |
| | | - support multiquota result |
| | | - include BODYSTRUCTURE in iil_C_FetchHeaders() |
| | | - added iil_C_FetchMIMEHeaders() function |
| | | - added \* flag support |
| | | |
| | | ********************************************************/ |
| | | |
| | |
| | | 'DRAFT' => '\\Draft', |
| | | 'FLAGGED' => '\\Flagged', |
| | | 'FORWARDED' => '$Forwarded', |
| | | 'MDNSENT' => '$MDNSent'); |
| | | 'MDNSENT' => '$MDNSent', |
| | | '*' => '\\*', |
| | | ); |
| | | |
| | | $iil_error; |
| | | $iil_errornum; |
| | |
| | | |
| | | $message = new rcube_message($uid); |
| | | |
| | | if ($message->headers->mdn_to && !$message->headers->mdn_sent && $IMAP->check_permflag('MDNSENT')) |
| | | if ($message->headers->mdn_to && !$message->headers->mdn_sent && |
| | | ($IMAP->check_permflag('MDNSENT') || $IMAP->check_permflag('*'))) |
| | | { |
| | | $identity = $RCMAIL->user->get_identity(); |
| | | $sender = format_email_recipient($identity['email'], $identity['name']); |
| | |
| | | // check for unset disposition notification |
| | | if ($MESSAGE->headers->mdn_to && |
| | | !$MESSAGE->headers->mdn_sent && !$MESSAGE->headers->seen && |
| | | $IMAP->check_permflag('MDNSENT') && |
| | | ($IMAP->check_permflag('MDNSENT') || $IMAP->check_permflag('*')) && |
| | | $mbox_name != $CONFIG['drafts_mbox'] && |
| | | $mbox_name != $CONFIG['sent_mbox']) |
| | | { |