[Commits] [SCM] claws branch, master, updated. 3.9.1-23-g6ae1c2d

claws at claws-mail.org claws at claws-mail.org
Thu Jun 6 15:10:29 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  6ae1c2d29624155d085ea213d1a8431981008c76 (commit)
      from  7f3695d49fba24f50fcb58e2fc7f5991cc9009ea (commit)


- Log -----------------------------------------------------------------
commit 6ae1c2d29624155d085ea213d1a8431981008c76
Author: Paul <paul at claws-mail.org>
Date:   Thu Jun 6 14:10:21 2013 +0100

    fix detection of account in --compose and --compose-from-file where the From value contains a name + email. Patch by Colin.

diff --git a/src/compose.c b/src/compose.c
index 6ddbc78..c88d9b2 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -984,8 +984,15 @@ Compose *compose_generic_new(PrefsAccount *account, const gchar *mailto, FolderI
 		/* mailto defines a from, check if we can get account prefs from it,
 		   if not, the account prefs will be guessed using other ways, but we'll keep
 		   the from anyway */
-		if (mailto_from)
+		if (mailto_from) {
 			mailto_account = account_find_from_address(mailto_from, TRUE);
+			if (mailto_account == NULL) {
+				gchar *tmp_from;
+				Xstrdup_a(tmp_from, mailto_from, return NULL);
+				extract_address(tmp_from);
+				mailto_account = account_find_from_address(tmp_from, TRUE);
+			}
+		}
 		if (mailto_account)
 			account = mailto_account;
 	}

-----------------------------------------------------------------------

Summary of changes:
 src/compose.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list