From bd2e33f5f9b1bbade6106a89314273ea74e2b805 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 14 Oct 2010 13:33:11 -0400
Subject: [PATCH] - Don't try to match identity on reply when user has only one

---
 program/steps/mail/compose.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 80cc7d1..69d1192 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -460,7 +460,7 @@
       $from_id = get_input_value('_from', RCUBE_INPUT_POST);
     else if (!empty($_SESSION['compose']['param']['from']))
       $from_id = $_SESSION['compose']['param']['from'];
-    else {
+    else if (count($user_identities) > 1) {
       $return_path = $MESSAGE->headers->others['return-path'];
 
       // Set identity

--
Gitblit v1.9.1