[Commits] [SCM] claws branch, master, updated. 3.12.0-74-g71b8625
claws at claws-mail.org
claws at claws-mail.org
Fri Sep 4 19:09:23 CEST 2015
The branch, master has been updated
via 71b8625f5daf4ea32b4b1beff6fb044d48a7b31b (commit)
from 9654c62175c382b2502850ca8ba64f3e855fdb5d (commit)
Summary of changes:
src/account.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 71b8625f5daf4ea32b4b1beff6fb044d48a7b31b
Author: Paul <paul at claws-mail.org>
Date: Fri Sep 4 18:09:19 2015 +0100
when replying to our own msg, select the account that sent it
diff --git a/src/account.c b/src/account.c
index 2d79c41..7114979 100644
--- a/src/account.c
+++ b/src/account.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1391,7 +1391,17 @@ PrefsAccount *account_get_reply_account(MsgInfo *msginfo, gboolean reply_autosel
/* select the account set in folderitem's property (if enabled) */
if (msginfo->folder->prefs && msginfo->folder->prefs->enable_default_account)
account = account_find_from_id(msginfo->folder->prefs->default_account);
-
+ else if (folder_has_parent_of_type(msginfo->folder, F_QUEUE) ||
+ folder_has_parent_of_type(msginfo->folder, F_OUTBOX) ||
+ folder_has_parent_of_type(msginfo->folder, F_DRAFT)) {
+ gchar from[BUFFSIZE];
+ if (!procheader_get_header_from_msginfo
+ (msginfo, from, sizeof from, "From:")) {
+ gchar *buf = from + strlen("From:");
+ extract_address(buf);
+ account = account_find_from_address(buf, FALSE);
+ }
+ }
/* select account by to: and cc: header if enabled */
if (reply_autosel) {
gchar * field = NULL;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list