## Notmuch Email Corpus
-A corpus of about 108k messages is available for performance testing of
+A corpus of about 108k messages is available for performance testing of
notmuch (or other uses).
The contents are as follows
- `Mail/enron`: selected data from the EDRM v2 enron data set
- CC Attribution: "ZL Technologies, Inc. (http://www.zlti.com)"
-
+
- Downloaded via bittorrent
http://www.searchdaimon.com/community/dataset/
-
+
- massaged with scripts/unpack-enron.sh (in the corpus tarball)
The corpus is gpg signed by David Bremner with key fingerprint:
- [notmuchmail.org](http:///notmuchmail.org/releases/notmuch-email-corpus-0.3.tar.xz) [signature](http:///notmuchmail.org/releases/notmuch-email-corpus-0.3.tar.xz.asc)
- [UNB](http://tesseract.cs.unb.ca/notmuch/notmuch-email-corpus-0.3.tar.xz) [signature](http://tesseract.cs.unb.ca/notmuch/notmuch-email-corpus-0.3.tar.xz.asc)
-
-
If notmuch-show-mode behaves badly for you in emacs 24.x try adding one of
- (setq gnus-inhibit-images nil)
+ (setq gnus-inhibit-images nil)
or
- (require 'gnus-art)
+ (require 'gnus-art)
to your .emacs file.
lines. Add this to your `.emacs` to replace tabs with spaces in subject
lines:
- (defun notmuch-show-subject-tabs-to-spaces ()
- "Replace tabs with spaces in subject line."
- (goto-char (point-min))
- (when (re-search-forward "^Subject:" nil t)
- (while (re-search-forward "\t" (line-end-position) t)
- (replace-match " " nil nil))))
+ (defun notmuch-show-subject-tabs-to-spaces ()
+ "Replace tabs with spaces in subject line."
+ (goto-char (point-min))
+ (when (re-search-forward "^Subject:" nil t)
+ (while (re-search-forward "\t" (line-end-position) t)
+ (replace-match " " nil nil))))
- (add-hook 'notmuch-show-markup-headers-hook 'notmuch-show-subject-tabs-to-spaces)
+ (add-hook 'notmuch-show-markup-headers-hook 'notmuch-show-subject-tabs-to-spaces)
And in header lines (this will only work with the yet to be released
notmuch version 0.15):
- (defun notmuch-show-header-tabs-to-spaces ()
- "Replace tabs with spaces in header line."
- (setq header-line-format
- (notmuch-show-strip-re
- (replace-regexp-in-string "\t" " " (notmuch-show-get-subject)))))
+ (defun notmuch-show-header-tabs-to-spaces ()
+ "Replace tabs with spaces in header line."
+ (setq header-line-format
+ (notmuch-show-strip-re
+ (replace-regexp-in-string "\t" " " (notmuch-show-get-subject)))))
- (add-hook 'notmuch-show-hook 'notmuch-show-header-tabs-to-spaces)
+ (add-hook 'notmuch-show-hook 'notmuch-show-header-tabs-to-spaces)
## Hiding unread messages in notmuch-show
It is still possible to find messages with excluded tags, though, by
manually including the excluded tag in your search:
- $ notmuch search from:foo and tag:spam
+ $ notmuch search from:foo and tag:spam
This will find messages from "foo" with the tag "spam", even though
"spam" is an excluded tag.
of notmuch search. To find all message files associated with the tag
"foo" rung:
- $ notmuch search --output=files tag:foo
+ $ notmuch search --output=files tag:foo
This will output the paths to all message files with "tag:foo", one
per line.
This is useful in a number of different ways. For instance, it could
be used to train a spam filter:
- $ notmuch search --output=files tag:spam | sa-learn -f -
+ $ notmuch search --output=files tag:spam | sa-learn -f -
It can also be used to purge mail files from disk:
- $ notmuch search --output=files tag:deleted | xargs -l rm
+ $ notmuch search --output=files tag:deleted | xargs -l rm
Make sure you run "notmuch new" after the last command so the database
becomes aware that the files have been removed and can remove the
* Add exclusion for messages with the "deleted" tag:
- $ notmuch config set search.exclude_tags deleted
+ $ notmuch config set search.exclude_tags deleted
* Add a key binding to your favorite ui to add a "deleted" tag to
messages that you want to delete. In [[emacs|emacstips]] that might
Now you can run "remote-notmuch.sh new". You can call the script
anything you like. I actually have $HOME/bin/notmuch linked to that
script, so I can have transparent
-usage.
+usage.
##Configure your emacs client##
Using a template works like this:
- \[[!template id=note text="""Here is the text to insert into my note."""]]
+ \[[!template id=note text="""Here is the text to insert into my note."""]]
This fills out the [[note]] template, filling in the `text` field with
the specified value, and inserts the result into the page.