summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-19 10:11:03 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-19 10:11:03 +0000
commitb4f03cb6cd164a0d17edc6a9fde96eb001552878 (patch)
tree4fbd17b712c9494358e5bd96994ab829c18b9e3f /roundcubemail/program
parent2db16977096421d3aa19b6393876e802aeb3c521 (diff)
- Followup to r5097, fix: match From with full address spec.
git-svn-id: https://svn.roundcube.net/trunk@5098 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 3a3847a58..4449ea0b2 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -274,16 +274,17 @@ else if (count($MESSAGE->identities)) {
// use From header
if (in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT))) {
- if ($MESSAGE->headers->from == $ident['email_ascii']) {
+ if ($MESSAGE->headers->from == $ident['ident']) {
$from_idx = $idx;
break;
}
}
- else if ($compose_mode == RCUBE_COMPOSE_REPLY && $MESSAGE->headers->from == $ident['email_ascii']) {
+ // reply to yourself
+ else if ($compose_mode == RCUBE_COMPOSE_REPLY && $MESSAGE->headers->from == $ident['ident']) {
$from_idx = $idx;
break;
}
- // use reply-message recipients
+ // use replied message recipients
else if (in_array($ident['email_ascii'], $a_recipients)) {
$from_idx = $idx;
}