1 Return-Path: <prvs=jrosenthal=72618203d@jhu.edu>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 88C574196F0
\r
6 for <notmuch@notmuchmail.org>; Tue, 27 Apr 2010 09:34:00 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id qp3aayTHRDTT for <notmuch@notmuchmail.org>;
\r
16 Tue, 27 Apr 2010 09:34:00 -0700 (PDT)
\r
17 Received: from ipex3.johnshopkins.edu (ipex3.johnshopkins.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id D801B431FC1
\r
20 for <notmuch@notmuchmail.org>; Tue, 27 Apr 2010 09:33:59 -0700 (PDT)
\r
21 X-IronPort-AV: E=Sophos;i="4.52,280,1270440000"; d="scan'208";a="380295455"
\r
22 Received: from c-69-255-36-229.hsd1.md.comcast.net (HELO lucky)
\r
24 by ipex3.johnshopkins.edu with ESMTP/TLS/AES256-SHA;
\r
25 27 Apr 2010 12:33:58 -0400
\r
26 Received: from jkr by lucky with local (Exim 4.69)
\r
27 (envelope-from <jrosenthal@jhu.edu>)
\r
28 id 1O6njR-0002Rq-3p; Tue, 27 Apr 2010 12:33:57 -0400
\r
29 From: Jesse Rosenthal <jrosenthal@jhu.edu>
\r
30 To: Notmuch developer list <notmuch@notmuchmail.org>
\r
31 Subject: [PATCH] emacs: Remove conditional from notmuch-fcc-initialization.
\r
32 User-Agent: Notmuch/0.3 (http://notmuchmail.org) Emacs/23.1.1
\r
34 Date: Tue, 27 Apr 2010 12:33:57 -0400
\r
35 Message-ID: <87k4rskg7e.fsf@jhu.edu>
\r
37 Content-Type: text/plain; charset=us-ascii
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Tue, 27 Apr 2010 16:34:00 -0000
\r
52 The fcc code would only initialize if notmuch-fcc-dirs was set. This was
\r
53 a problem if you reset the variable, or added the variable later during
\r
54 initialization. Now we always add the fcc hook, but it doesn't do
\r
55 anything unless notmuch-fcc-dirs are set.
\r
57 emacs/notmuch-maildir-fcc.el | 3 +--
\r
58 1 files changed, 1 insertions(+), 2 deletions(-)
\r
60 diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
\r
61 index 8af6f00..d9a8f9b 100644
\r
62 --- a/emacs/notmuch-maildir-fcc.el
\r
63 +++ b/emacs/notmuch-maildir-fcc.el
\r
65 (defun notmuch-fcc-initialization ()
\r
66 "If notmuch-fcc-directories is set,
\r
67 hook them into the message-fcc-handler-function"
\r
68 -(if (not (eq notmuch-fcc-dirs nil)) (progn
\r
69 ;Set up the message-fcc-handler to move mails to the maildir in Fcc
\r
70 ;The parameter is hardcoded to mark messages as "seen"
\r
71 (setq message-fcc-handler-function
\r
73 ;(preferrably we would use message-header-setup-up, but notmuch-reply
\r
74 ; munges headers after that is run, so it won't work for replies within
\r
76 - (add-hook 'message-send-hook 'notmuch-fcc-header-setup))))
\r
77 + (add-hook 'message-send-hook 'notmuch-fcc-header-setup))
\r
79 (defun notmuch-fcc-header-setup ()
\r
80 "Can be added to message-send-hook and will set the FCC header
\r