aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-24contrib: pick: Link in notmuch-show-pipe-messageMark Walters
Since we can now use show functions directly in pick we can drop pick-pipe-message.
2013-08-24contrib: pick: override notmuch-show-get-propMark Walters
We override notmuch-show-get-prop so that many of the show functions can be used in notmuch-pick without modification. The main use is that it means notmuch-show-get-message-id `works' in pick. Thus we get all the stash functions and several other `for free' in pick.
2013-08-23timegm: add portable implementation (Solaris support)Blake Jones
The timegm(3) function is a non-standard extension to libc which is available in GNU libc and on some BSDs. Although SunOS had this function in its libc, Solaris (unfortunately) removed it. This patch implements a very simple version of timegm() which is good enough for parse-time-string.c. Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
2013-08-23strsep: check for availability (Solaris support)Blake Jones
Solaris does not ship a version of the strsep() function. This change adds a check to "configure" to see whether notmuch needs to provide its own implementation, and if so, it uses the new version in "compat/strsep.c" (which was copied from Mutt, and apparently before that from glibc). Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
2013-08-23asctime: check for standards compliance (Solaris support)Vladimir Marek
Add checks to "configure" to see whether _POSIX_PTHREAD_SEMANTICS needs to be defined to get the right number of arguments in the prototypes for asctime_r(). Solaris' default implementation conforms to POSIX.1c Draft 6, rather than the final POSIX.1c spec. The standards-compliant version can be used by defining _POSIX_PTHREAD_SEMANTICS. This change also adds the file "compat/check_asctime.c", which configure uses to perform its check, and modifies compat/compat.h to define _POSIX_PTHREAD_SEMANTICS if configure detected it was needed. Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
2013-08-23getpwuid: check for standards compliance (Solaris support)Blake Jones
Add checks to "configure" to see whether _POSIX_PTHREAD_SEMANTICS needs to be defined to get the right number of arguments in the prototypes for getpwuid_r(). Solaris' default implementation conforms to POSIX.1c Draft 6, rather than the final POSIX.1c spec. The standards-compliant version can be used by defining _POSIX_PTHREAD_SEMANTICS. This change also adds the file "compat/check_getpwuid.c", which configure uses to perform its check, and modifies compat/compat.h to define _POSIX_PTHREAD_SEMANTICS if configure detected it was needed. Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
2013-08-20test: Canonicalize RFC 2047 encoding and charsetAustin Clements
RFC 2047 states that the encoding and charset in an encoded word are case-insensitive, so force them to lower case in the reply test. This fixes an issue caused by GMime versions (somewhere between 2.6.10 and 2.6.16), which changed the capitalization of the encoding.
2013-08-17reply: Use RFC 2822/MIME wholly for text format templateAustin Clements
Previously, reply's default text format used an odd mix of RFC 2045 MIME encoding for the reply template's body and some made-up RFC 2822-like UTF-8 format for the headers. The intent was to present the headers to the user in a nice, un-encoded format, but this assumed that whatever ultimately sent the email would RFC 2047-encode the headers, while at the same time the body was already RFC 2045 encoded, so it assumed that whatever sent the email would *not* re-encode the body. This can be fixed by either producing a fully decoded UTF-8 reply template, or a fully encoded MIME-compliant RFC 2822 message. This patch does the latter because it is a) Well-defined by RFC 2822 and MIME (while any UTF-8 format would be ad hoc). b) Ready to be piped to sendmail. The point of the text format is to be minimal, so a user should be able to pop up the template in whatever editor they want, edit it, and push it to sendmail. c) Consistent with frontend capabilities. If a frontend has the smarts to RFC 2047 encode the headers before sending the mail, it probably has the smarts to RFC 2047 decode them before presenting the template to a user for editing. Also, as far as I know, nothing automated consumes the reply text format, so changing this should not cause serious problems. (And if anything does still consume this format, it probably gets these encoding issues wrong anyway.)
2013-08-17reply: Remove extraneous space from generated ReferencesAustin Clements
Previously, the References header code seemed to assume notmuch_message_get_header would return NULL if the header was not present, but it actually returns "". As a result of this, it was inserting an unnecessary space when concatenating an empty or missing original references header with the new reference. This shows up in only two tests because the text reply format later passes the whole reply template through g_mime_filter_headers, which has the side effect of stripping out this extra space.
2013-08-17reply: Test replying to messages with RFC 2047-encoded headersAustin Clements
2013-08-15test: Make symbol-test depend on libnotmuch.soAustin Clements
Without this $ make -j test intermittently fails and $ make clean; make test/symbol-test always fails (not that anybody would do the latter).
2013-08-13reply: Document the reason for g_mime_filter_headersAustin Clements
Given how long it took me to figure out why we pass the reply headers through g_mime_filter_headers, it's worth a comment.
2013-08-13lib: Document which strings are returned in UTF-8Austin Clements
Any string that ultimately comes from notmuch_message_file_get_header is in UTF-8.
2013-08-13lib: Correct out-of-date doc commentAustin Clements
notmuch_message_get_header started returning some headers straight from the database in 567bcbc, but this comment explicitly claimed all headers were read from the message file.
2013-08-03release: synchronize dates0.16David Bremner
man pages, NEWS, and debian changelog all hardcode date. Make them hardcode the same date.
2013-07-31emacs: bugfix attachment content-type as mime-type handling0.16_rc2Mark Walters
Notmuch puts attachments in as declared content-type except when the content-type is application/octet-stream it tries to guess the type from the filename/extension. This means that viewing a pdf (for example) which is sent as application/octet-strem invokes the pdf viewer rather than just offering to save the part. Recent changes to the attachment handling (commit 1546387d) changed (broke) this. This patch stores the calculated mime-type with the part and changes the attachment part handlers can use it instead.
2013-07-28debian: rename notmuch-ruby to ruby-notmuch0.16_rc1David Bremner
This seems more in line with http://wiki.debian.org/Teams/Ruby/Packaging#Guidelines_for_Ruby_packaging
2013-07-28debian: build notmuch-vim againDavid Bremner
Based on id:1370220299-14722-1-git-send-email-felipe.contreras@gmail.com Hacked rather extensively by db. The most important changes: - bring back notmuch.yaml for the (debian specific?) vim-addons tool. - depend on vim-ruby, so we get a version of vim with ruby installed.
2013-07-28debian: update symbols for libnotmuchDavid Bremner
Adding a new symbol should require an SONAME bump.
2013-07-28debian: add alot to recommendsDavid Bremner
Since this is in a disjunction, this should not force new packages to be installed, but rather let people with auto-install-recommends (the default) on install notmuch without emacs.
2013-07-28debian: note that we now provide a notmuch-dbg packageDavid Bremner
This is already in upstream for a bit, but we lacked a changelog entry closing the bug.
2013-07-28debian: close bug requesting packaging of notmuch-deliverDavid Bremner
notmuch insert is pretty much equivalent, so no need to support both.
2013-07-28debian: start new changelog entryDavid Bremner
Since Debian uses the changelog as metadata, we need an empty stanza to build the new version.
2013-07-28version: set new version and release dateDavid Bremner
These are manually set in version and NEWS, and propagate to the other files via "make update-versions"
2013-07-28Put 0.16 NEWS in a reasonable orderAustin Clements
The 0.16 NEWS grew chronologically during development, and as a result wound up in a particularly odd order. This rearranges it to put the most user-visible news first. Roughly: new features, modified behavior, bug fixes, then deprecation, with related items grouped. This does not modify the text of any of the news.
2013-07-27emacs: hello: make --batch error gracefullyMark Walters
Recently notmuch-hello was converted to use batch count. However, it seems that several people run different versions of notmuch-emacs and notmuch-cli so this batch makes emacs fail with an error message if --batch is not available in the CLI. Amended by: db
2013-07-22emacs: News for S-expressions everywhereAustin Clements
Update the news about search using S-expression support to also say that show is also now faster.
2013-07-20contrib: pick: use notmuch-start-notmuchMark Walters
This uses the new notmuch-start-notmuch function which should give better handling of stderr and errors generally.
2013-07-20crypto: return NULL cryptoctx if protocol string is empty.Jameson Graef Rollins
Badly formed messages that don't specify a protocol in signed/encrypted parts, end up with a protocol of NULL. strcasecmp in notmuch_crypto_get_context then segfaults when trying to check it against known protocols. If the protocol is NULL, just return an empty context immediately (with appropriate message.)
2013-07-20NEWS: Python bindings: Fix loading of libnotmuch on OS X (Darwin)Tomi Ollila
2013-07-20emacs: dropped rest of now-unused JSON functionalityTomi Ollila
Notmuch cli provides all structured data previously provided in json format now in s-expression format, rendering all current json functionality obsolete.
2013-07-20NEWS: announce insert commandPeter Wang
2013-07-20debian: Add package for debugging symbols (Closes: #717339)Daniel Kahn Gillmor
2013-07-09Python bindings: CDLL("libnotmuch.3.dylib") on DarwinTomi Ollila
Use os.uname() to check for 'Darwin' and load "libnotmuch.3.dylib" instead of "libnotmuch.so.3" if that is the case.
2013-07-04contrib: pick: document several of the tree/forest insertion functions.Mark Walters
2013-07-04pick: contrib: document notmuch-pick-message-window-kill-hookMark Walters
2013-07-04pick: contrib: document notmuch-pick-refresh-resultMark Walters
2013-07-04pick: contrib: document notmuch-pick-show-outMark Walters
2013-07-04contrib: pick: remove unused functionMark Walters
The function notmuch-pick-show-error was used before Austin's improved error handling. It is now redundant so remove.
2013-07-04contrib: pick: remove unused variableMark Walters
This variable was needed at one point for the async parser but is not needed anymore.
2013-07-04contrib: pick: bugfix: make the right variable buffer-localMark Walters
The variable notmuch-pick-message-buffer should be buffer local but instead notmuch-pick-message-buffer-name (a non-existent variable) was made buffer local.
2013-07-04contrib: pick: add docstrings to all defvarsMark Walters
2013-07-04contrib: pick: add a docstring for the main notmuch-pick functionMark Walters
2013-07-04contrib: pick: fix refresh resultMark Walters
The function notmuch-pick-refresh-result (used to update tag changes) was not quite correct: sometimes it got the choice between the subject and " ..." wrong. This was always true but the new code often calls this (when opening a message in the message pane to remove the unread tag) while the async pick process is still running and this caused mistakes which made the tests fail. Thus we store the previous subject with the message.
2013-07-04contrib: pick: remove hack notmuch-pick-show-match-message-with-waitMark Walters
This function was a horrible hack (sleeping while waiting for the correct message). The new target code can just open the message in the message window when it arrives.
2013-07-04contrib: pick: if no target specified go to first matching messageMark Walters
2013-07-04test: test insert --create-folder optionPeter Wang
Add tests for notmuch insert --create-folder option.
2013-07-04man: document insert --create-folderPeter Wang
Add documentation for notmuch insert --create-folder option.
2013-07-04insert: add --create-folder optionPeter Wang
Allow the insert command to create the maildir folder into which the new message should be delivered.
2013-07-01test: test insert --folder optionPeter Wang
Add tests for notmuch insert --folder option.