]> git.notmuchmail.org Git - notmuch/commitdiff
Merge branch 'release'
authorDavid Bremner <bremner@debian.org>
Sat, 3 Mar 2012 15:56:36 +0000 (11:56 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 3 Mar 2012 15:56:36 +0000 (11:56 -0400)
NEWS
debian/.gitignore
debian/changelog
debian/control
debian/libnotmuch2.symbols
emacs/notmuch-crypto.el
lib/database.cc
man/man1/notmuch-config.1
notmuch-config.c
notmuch-setup.c

diff --git a/NEWS b/NEWS
index 8fb2f2480bd58813523655956b691da88e129fa6..4152e7c9e1b8cab87317cda565d44b13105f3f7e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,24 +11,6 @@ Reply to sender
   to all. The feature is available through the new command line option
   --reply-to=(all|sender).
 
-Tag exclusion
-
-  Tags can be automatically excluded from search results by adding them
-  to the new 'search.exclude_tags' option in the Notmuch config file.
-
-  This behaviour can be overridden by explicitly including an excluded
-  tag in your query, for example:
-
-    notmuch search $your_query and tag:$excluded_tag
-
-  Existing users will probably want to run "notmuch setup" again to add
-  the new well-commented [search] section to the configuration file.
-
-  For new configurations, accepting the default setting will cause the
-  tags "deleted" and "spam" to be excluded, equivalent to running:
-
-    notmuch config set search.exclude_tags deleted spam
-
 Mail store folder/file ignore
 
    A new configuration option, `new.ignore`, lets users specify a
@@ -80,6 +62,12 @@ Attachment buttons can be used to view or save attachments.
   button 1 saves the attachment but this is customisable (option
   Notmuch Show Part Button Default Action).
 
+New functions
+
+  `notmuch-show-stash-mlarchive-link{,-and-go}' allow stashing and
+  optionally visiting a URI to the current message at one of a number
+  of Mailing List Archives.
+
 Library changes
 ---------------
 
index 801ca02d7977f07328ce32c04536b86dbdd6f251..9f09f22d21c3fc91b6df4097f44b834314c48a85 100644 (file)
@@ -1,3 +1,10 @@
+tmp/
+libnotmuch-dev/
+libnotmuch2/
+notmuch-emacs/
+notmuch-vim/
+notmuch/
+python-notmuch/
 *.debhelper
 *.debhelper.log
 *.substvars
index e820f892f6a887d91693348e7f27fcfaf6fb7757..147ae36809c13a61650cd72791e9049120641572 100644 (file)
@@ -1,6 +1,7 @@
 notmuch (0.12~rc1-1) experimental; urgency=low
 
   * Upstream pre-release.
+  * Bump standards version to 3.9.3; no changes.
 
  -- David Bremner <bremner@debian.org>  Thu, 01 Mar 2012 07:51:45 -0400
 
index b60790e2722930b216cce22016c78300f7b5d430..e1ac1a7022d7b8c3a61d21ec18ecd36b37330f97 100644 (file)
@@ -17,7 +17,7 @@ Build-Depends:
  emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~),
  gdb,
  dtach (>= 0.8)
-Standards-Version: 3.9.2
+Standards-Version: 3.9.3
 Homepage: http://notmuchmail.org/
 Vcs-Git: git://notmuchmail.org/git/notmuch
 Vcs-Browser: http://git.notmuchmail.org/git/notmuch
index 507600c8ad57730a3d28adeb3ed2510f7fa67ed4..272467a3639bc1b2ff80988c17ea1d69eba4eda1 100644 (file)
@@ -46,6 +46,7 @@ libnotmuch.so.2 libnotmuch2 #MINVER#
  notmuch_messages_get@Base 0.3
  notmuch_messages_move_to_next@Base 0.3
  notmuch_messages_valid@Base 0.3
+ notmuch_query_add_tag_exclude@Base 0.12~rc1
  notmuch_query_count_messages@Base 0.3
  notmuch_query_count_threads@Base 0.10~rc1
  notmuch_query_create@Base 0.3
index 94da325d8a72177735d399ce8db4a4aef2348484..83e5d37aa4a939fbe366076f8d7b16c3b698685a 100644 (file)
@@ -101,7 +101,7 @@ mode."
       (let ((keyid (concat "0x" (plist-get sigstatus :keyid))))
        (setq label (concat "Unknown key ID " keyid " or unsupported algorithm"))
        (setq button-action 'notmuch-crypto-sigstatus-error-callback)
-       (setq help-msg (concat "Click to retreive key ID " keyid " from keyserver and redisplay."))))
+       (setq help-msg (concat "Click to retrieve key ID " keyid " from keyserver and redisplay."))))
      ((string= status "bad")
       (let ((keyid (concat "0x" (plist-get sigstatus :keyid))))
        (setq label (concat "Bad signature (claimed key ID " keyid ")"))
@@ -145,7 +145,7 @@ mode."
        (insert "\n")
        (call-process "gpg" nil t t "--list-keys" keyid))
       (recenter -1))
-    (notmuch-show-refresh-view t)))
+    (notmuch-show-refresh-view)))
 
 (defun notmuch-crypto-insert-encstatus-button (encstatus)
   (let* ((status (plist-get encstatus :status))
index 5efa85eb162ab47085f4105ebd5b0a0a86f84ddd..8f8df1a1434ed604ca2fe1a7bdf5f87b7084a28d 100644 (file)
@@ -726,6 +726,17 @@ notmuch_database_close (notmuch_database_t *notmuch)
        }
     }
 
+    /* Many Xapian objects (and thus notmuch objects) hold references to
+     * the database, so merely deleting the database may not suffice to
+     * close it.  Thus, we explicitly close it here. */
+    if (notmuch->xapian_db != NULL) {
+       try {
+           notmuch->xapian_db->close();
+       } catch (const Xapian::Error &error) {
+           /* do nothing */
+       }
+    }
+
     delete notmuch->term_gen;
     delete notmuch->query_parser;
     delete notmuch->xapian_db;
index e62577cc323c32470e7677ce16761c39c1991855..57eee93b680b46cf044ac4fc5ec9aa7f3c710d29 100644 (file)
@@ -83,14 +83,6 @@ will be ignored, regardless of the location in the mail store
 directory hierarchy.
 .RE
 
-.RS 4
-.TP 4
-.B search.exclude_tags
-A list of tags that will be excluded from search results by
-default. Using an excluded tag in a query will override that
-exclusion.
-.RE
-
 .RS 4
 .TP 4
 .B maildir.synchronize_flags
index e9b275096acb999103db4b5a68a74f27f0a5dcf1..61fda3ea4bafd49ef14d075c2cef70c8d5f2a20c 100644 (file)
@@ -377,8 +377,7 @@ notmuch_config_open (void *ctx,
 
     if (notmuch_config_get_search_exclude_tags (config, &tmp) == NULL) {
        if (is_new) {
-           const char *tags[] = { "deleted", "spam" };
-           notmuch_config_set_search_exclude_tags (config, tags, 2);
+           /* We do not set default search_exclude_tags for 0.12 */
        } else {
            notmuch_config_set_search_exclude_tags (config, NULL, 0);
        }
index 94d0aa7bace6e96a8eb417ace7a71a8a8ed800d5..307231d51b55f8ea13c7358839db86cc3f7df4dd 100644 (file)
@@ -133,8 +133,6 @@ notmuch_setup_command (unused (void *ctx),
     int is_new;
     const char **new_tags;
     size_t new_tags_len;
-    const char **search_exclude_tags;
-    size_t search_exclude_tags_len;
 
 #define prompt(format, ...)                                    \
     do {                                                       \
@@ -211,22 +209,7 @@ notmuch_setup_command (unused (void *ctx),
     }
 
 
-    search_exclude_tags = notmuch_config_get_search_exclude_tags (config, &search_exclude_tags_len);
-
-    printf ("Tags to exclude when searching messages (separated by spaces) [");
-    print_tag_list (search_exclude_tags, search_exclude_tags_len);
-    prompt ("]: ");
-
-    if (strlen (response)) {
-       GPtrArray *tags = parse_tag_list (ctx, response);
-
-       notmuch_config_set_search_exclude_tags (config,
-                                               (const char **) tags->pdata,
-                                               tags->len);
-
-       g_ptr_array_free (tags, TRUE);
-    }
-
+    /* Temporarily remove exclude tag support for 0.12 */
 
     if (! notmuch_config_save (config)) {
        if (is_new)