aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-24notmuch-report: Rename from nmbug-statusW. Trevor King
This script generates reports based on notmuch queries, and doesn't really have anything to do with nmbug, except for sharing the NMBGIT environment variable.
2016-03-24status-config.json: Remove parens from query entryW. Trevor King
These are now added by nmbug-status.
2016-03-24nmbug-status: Wrap query phrases in parentheses when and-ing togetherW. Trevor King
For example: "query": ["tag:a", "tag:b or tag:c"] is now converted to: ( tag:a ) and ( tag:b or tag:c ) instead of the old: tag:a and tag:b or tag:c This helps us avoid confusion due to Xapian's higher-precedence AND [1], where the old query would be interpreted as: ( tag:a and tag:b ) or tag:c [1]: http://xapian.org/docs/queryparser.html
2016-03-24nmbug-status: Add meta.message-url config settingW. Trevor King
So you can link to archives other than Gmane. For example, I'm doing this in [1]. [1]: https://github.com/wking/nmbug-oci
2016-03-19emacs: Change the default notmuch-mua-reply-insert-header-p-functionNicolas Petton
Set notmuch-show-reply-insert-header-p-never as the default value for notmuch-mua-reply-insert-header-p-function.
2016-03-14doc/reply: Clarify how reply-to header is handledMichal Sojka
Current documentation and comments in the code do not correspond to the actual code and tests in the test suite ("Un-munging Reply-To" in T230-reply-to-sender.sh). Fix it.
2016-03-14test: canonicalize quotes in xapian error messagesDavid Bremner
These differ between 1.2 and 1.3, so we transform the 1.2 backquote to a single quote for compatibility
2016-03-14test: replace single giant term with large phraseDavid Bremner
We only need a long string, not a single long term to trigger batch mode. The giant term triggers a bug/incompatibility in Xapian 1.3.4 that throws an exception because it is longer than the Xapian term size limit.
2016-03-14lib: NOTMUCH_DEPRECATED macro also for older compilersTomi Ollila
Some compilers (older than gcc 4.5 and clang 2.9) do support __attribute__ ((deprecated)) but not __attribute__ ((deprecated("message"))). Check if clang version is at least 3.0, or gcc version is at least 4.5 to define NOTMUCH_DEPRECATED as the latter variant above. Otherwise define NOTMUCH_DEPRECATED as the former variant above. For a bit simpler implementation clang 2.9 is not included to use the newer variant. It is just one release, and the older one works fine. Clang 3.0 was released around 2011-11 and gcc 5.1 2015-04-22 (therefore newer macro for gcc 4.5+)
2016-03-14emacs: hello: promote '?' as the universal help keyJani Nikula
Move the brief help text at the bottom of the hello screen to the notmuch-hello-mode help, and promote '?' as the universal help key across Notmuch. This unclutters the hello screen, and allows for a more verbose description in the mode help. Hopefully, this change is useful for both experienced and new users alike. While at it, improve the links to Notmuch and hello screen customization.
2016-03-14python: update the READMEJustus Winter
Signed-off-by: Justus Winter <justus@gnupg.org>
2016-03-04test/README: have matching test script file namesTomi Ollila
A while ago test script names were changed to format Tddd-basename.sh. Update README to reflect that. While at it, included some small requirements updates.
2016-03-04STYLE: suggest long namesDavid Bremner
Hopefully the exceptions are common sense.
2016-03-04STYLE: document some rules about variable declarationsDavid Bremner
No-one seemed opposed to C99 style loop variable declarations. The requirement to declare variables at the top of blocks is maybe a little more contested, but I believe it reflects the status quo.
2016-03-04NEWS: updates for reply changesMark Walters
Also include NEWS for the filter/limit keybinding change.
2016-02-21emacs/mua: Let user specify which parts get a header in citations.David Edmondson
Add a customizable function specifying which parts get a header when replying, and give some sensible possiblities. These are, 1) all parts except multipart/*. (Subparts of a multipart part do receive a header button.) 2) only included text/* parts. 3) Exactly as in the show buffer. 4) None at all. This means the reply contains a mish-mash of all the original message's parts. In the test suite we set the choice to option 4 to match the previous behaviour.
2016-02-21emacs/show: Remove the 'no-buttons option of `notmuch-show-insert-bodypart'David Edmondson
No code uses the 'no-buttons argument to `notmuch-show-insert-bodypart', so remove it.
2016-02-21emacs/mua: Generate improved cited text for repliesDavid Edmondson
Use the message display code to generate message text to cite in replies. For now we set insert-headers-p function to notmuch-show-reply-insert-header-p-never so that, as before, we don't insert part buttons. With that choice of insert-headers-p function there is only one failing test: this test has a text part (an email message) listed as application/octet-stream. Notmuch show displays this part, but the reply code omitted it as it had type application/octet-stream. The new code correctly includes it. Thus update the expected output to match.
2016-02-21emacs/show: Accommodate the lack of part header buttonsDavid Edmondson
Various pieces of code assumed (reasonably) that part header buttons are present. Modify them to avoid problems if no part headers were inserted.
2016-02-21emacs/show: Make the insertion of part headers overridable.David Edmondson
This allows callers of notmuch-show-insert-bodypart to use a `let' binding to override the default function for specifying when part headers should be inserted. We also add an option to never show part buttons which will be used by the test suites for the reply tests.
2016-02-21emacs/show: Re-arrange determination if a part header is necessaryDavid Edmondson
Move the determination of whether a part header is required to a distinct function.
2016-02-20emacs: Report a lack of matches when calling `notmuch-show'.David Edmondson
If the basic query passed to `notmuch-show' generates no results, ring the bell and inform the user that no messages matched the query rather than displaying an empty buffer and showing an obscure error. Similarly when refreshing a `notmuch-show' buffer and no messages match.
2016-02-13emacs: Bind filter in search to 'l'Mark Walters
Change the key binding for filter (or "limit") in search-mode. This gives consistency with the new filter in show-mode, and frees 'f' for forward-thread in the future.
2016-02-13configure: pass HAVE_TIMEGM to buildTomi Ollila
Checking the existence of timegm() function and setting configure internal variable ${have_timegm} was done, but actually defining HAVE_TIMEGM in build was not done -- meaning that compat timegm() was always part of final notmuch binaries.
2016-02-13test: fix typo in informational messageDavid Bremner
Thanks to Olly Betts for noticing
2016-02-13emacs: Fix compiler warnings.David Edmondson
notmuch-mua.el should declare functions that it uses from notmuch-maildir-fcc.el.
2016-02-11notmuch.Database.remove_message should raise exception on failureDaniel Kahn Gillmor
The notmuch python bindings document that database.remove_message should raise an exception when the message removal fails, but they don't actually do it.
2016-01-29debian: add gpgsm as build dependencyDavid Bremner
It's not needed for the actual build, but it is needed to run the SMIME tests; <!nocheck> means it can be omitted if the tests are not going to be run.
2016-01-29debian: Recommend gpgsm for S/MIME supportJameson Graef Rollins
2016-01-29cli: crypto: S/MIME verification supportJani Nikula
notmuch-show --verify will now also process S/MIME multiparts if encountered. Requires gmime-2.6 and gpgsm. Based on work by Jameson Graef Rollins <jrollins@finestructure.net>.
2016-01-29test: add broken S/MIME signature verification test for notmuch CLIDavid Bremner
The test is pretty much cut and paste from the PGP/MIME version, with obvious updates taken from notmuch output. This also requires setting up gpgsm infrastucture.
2016-01-29test: initial tests for S/MIME and notmuch-emacsDavid Bremner
Test the ability of notmuch-mua-mail to send S/MIME signed (and encrypted) messages; this really relies on existing functionality in message-mode. The generated keys and messages will later be useful for testing the notmuch CLI.
2016-01-26test: refactor directory name sanitizationDavid Bremner
test_C and notmuch_search_files_sanitize were giving different output on the same path, which is not technically wrong, but slightly confusing.
2016-01-16clean up stray apostrophe in commentDaniel Kahn Gillmor
This is a nit-picky orthographical fix for an nit-picky ontological comment.
2016-01-16correct comment referring to notmuch_database_remove_messageDaniel Kahn Gillmor
notmuch_database_remove_message has no leading underscore in its name.
2016-01-13devel/emacs: add devel/try-emacs-muaTomi Ollila
devel/try-emacs-mua provides an easy way to try and experiment with the notmuch emacs client distributed in emacs subdirectory of the notmuch source tree. try-emacs-mua starts a new emacs process and if initial checks pass *scratch* buffer is filled with information of how to begin. Normal emacs command line arguments can be used, like -q or -Q. These arguments are appended verbatim to the starting emacs process. If the emacs version in use is smaller than 24.4, special care is taken to ensure that notmuch*.elc files older than corresponding .el files are not loaded. Since emacs 24.4, setting `load-prefer-newer' variable takes care of this.
2016-01-13nmbug-status: Fix unbalanced <p> tags in default header/footerW. Trevor King
These were broken by b70386a4 (Move the generated date from the top of the page to the footer, 2014-05-31), which moved 'Generated ...' to the footer with the opening tag, but didn't replace the blurb opening tag or add a closing tag after 'Generated ...'.
2016-01-13nmbug-status: Style headers with smaller fontsW. Trevor King
We only use h1 through h3, and David prefers smaller headers [1], so shift over to the font sizes usually used for h2 through h4 [2,3,4]. I haven't bothered with the W3C's default margins, since a bit of extra whitespace doesn't seem like a big deal. [1]: id:87k2nl8r0k.fsf@zancas.localnet http://article.gmane.org/gmane.mail.notmuch.general/21595 [2]: http://www.w3.org/TR/html-markup/h2.html [3]: http://www.w3.org/TR/html-markup/h3.html [4]: http://www.w3.org/TR/html-markup/h4.html
2016-01-13nmbug-status: Adjust headers to start with h1W. Trevor King
We've been leading off with h2s since 3e5fb88f (contrib/nmbug: add nmbug-status script, 2012-07-07), but the semantically-correct headers are: <h1>{title}</h1> ... <h2>Views</h2> ... <h3>View 1</h3> ... <h3>View 2</h3> ... We can always add additional CSS if the default h1 formatting is too intense.
2016-01-08python: cleanup importsJustus Winter
Drop unused imports, and avoid warning about unused imports when we import something on behalf of another module. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2016-01-08python: Remove {Filenames,Threads}.__len__Justus Winter
Remove the __len__ functions, as they exhaust the iterator, breaking 'list(x)'. This is a follow-up to 8866a89e. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2016-01-08python: update bindings for the new query search APIJustus Winter
Use 'notmuch_query_search_{threads,messages}_st' instead of their deprecated counterpart. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2016-01-08python: add new errorsJustus Winter
Add support for the new notmuch status codes UNSUPPORTED_OPERATION, UPGRADE_REQUIRED, and PATH_ERROR. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2016-01-08python: add missing importJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2016-01-08emacs: Don't use nconc on quoted listMichal Sojka
As pointed out by David Bremner, Elisp manual says "A common pitfall is to use a quoted constant list as a non-last argument to ‘nconc’." Since this was the case in recently added code, we fix it here.
2016-01-08emacs: Handle switch-function argument of notmuch-mua-mailMichal Sojka
notmuch-mua-mail ignored the switch-function argument and always used the function returned by notmuch-mua-get-switch-function instead. In order to support standard emacs interfaces (compose-mail in this case), this commit changes notmuch-mua-mail to use the switch-function argument if it is non-nil and notmuch-mua-get-switch-function otherwise.
2016-01-08emacs: Refactor notmuch-mua-mailMichal Sojka
This should be more readable.
2016-01-08emacs: Fix mail composition under Emacs 23Michal Sojka
Commit 570c0aeb40bd0c3af8174624a55e968f62c44f09 reworked notmuch-mua-mail function in a way that worked only under Emacs 24. The reason was that message-setup-1 took one argument less in Emacs 23. We fix this by only supplying the return-action argument when it is actually set by the caller.
2016-01-08python: fix argument for filenames_destroyDaniel Kahn Gillmor
2016-01-07NEWS: Remove trailing comma from an old nmbug-status configW. Trevor King
That closing brace is the end of the config JSON; there won't be anything coming after it.