diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-13 13:26:34 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-13 13:26:34 +0000 |
| commit | 4f7e351fce84ff0a5e43502cfea7bc4d3b4e382a (patch) | |
| tree | d25fb6d56ebb94f7cf001520373682f5d52c759c /roundcubemail | |
| parent | 872d21d79a3f62e63cea819bfe8471fb32776321 (diff) | |
#1485337: fill recipient on reply to address of yourself (if there's only one address found in message)
git-svn-id: https://svn.roundcube.net/trunk@1782 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 0a5226e66..f32637abe 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -209,9 +209,14 @@ function rcmail_compose_headers($attrib) { $to_addresses = $IMAP->decode_address_list($fvalue); $fvalue = ''; + foreach ($to_addresses as $addr_part) { - if (!empty($addr_part['mailto']) && !in_array($addr_part['mailto'], $sa_recipients) && (!$MESSAGE->compose_from || !in_array($addr_part['mailto'], $MESSAGE->compose_from))) + if (!empty($addr_part['mailto']) + && !in_array($addr_part['mailto'], $sa_recipients) + && (!$MESSAGE->compose_from + || !in_array($addr_part['mailto'], $MESSAGE->compose_from) + || count($to_addresses)==1)) // allow reply to yourself { $fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string']; $sa_recipients[] = $addr_part['mailto']; |
