aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib
Commit message (Collapse)AuthorAge
* notmuch-mutt: improve robustness of mutt macrosGravatar Kevin J. McCarthy2013-02-16
| | | | | | | | | Details: - $pipe_decode is turned off, to prevent message-id from being filtered out by "ignore" settings in the muttrc. - Original values for $pipe_decode and $wait_key are saved and restored. - The macros, being much longer now, are line wrapped for improved readability.
* notmuch-mutt: Use of uninitialized value.Gravatar Stefano Zacchiroli2013-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Thu, Feb 14, 2013 at 12:36:58AM +0100, Profpatsch wrote: > On 13-02-13 02:35pm, Kevin J. McCarthy wrote: > > A more likely idea is to check whether you have $pipe_decode set. > > BRILLIANT! > So much for copying a basic rc from someone else. > Of course, that was it and I’m officially an idiot. Neat, thanks Kevin for debugging the issue down to $pipe_decode (which I've never used, mutt never stops to amaze me :-)). > And apparently Mail::Internet errors out if there is no Message-ID. > (Which mentioned in the docs at CPAN…) > > Mystery solved. Right, but still a more graceful failure model would be nice. Please find attached a patch that in such cases should 1) give a supposedly nice error message explaining what's going on and 2) empty the results dir to avoid showing you unrelated results. It works for me. But extra checking never hurts, in particular for the tag action, which I don't personally use. I guess it would also be nice to actually disable $pipe_decode in the relevant Mutt macros, but I'm not sure about to do that without interfering with user desired configuration. Kevin: do you know if there is a common Mutt trick to store the value of a variable before changing it, and restoring it a posteriori? More isolation for this kind of things in Mutt would definitely be welcome... Cheers. -- Stefano Zacchiroli . . . . . . . zack@upsilon.cc . . . . o . . . o . o Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o Debian Project Leader . . . . . . @zack on identi.ca . . o o o . . . o . « the first rule of tautology club is the first rule of tautology club » From b67ab95855ce7d279d8c0b3ddcbc20e679afc70b Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli <zack@upsilon.cc> Date: Thu, 14 Feb 2013 09:31:37 +0100 Subject: [PATCH] notmuch-mutt: more graceful handling of missing Message-Id errors in particular: - the "thread" action would print an error and empty results dir - the "tag action would print an error
* notmuch-vim: deprecate, move to contribGravatar David Bremner2013-02-16
| | | | | | As discussed in id:871udhcmks.fsf@zancas.localnet, notmuch-vim doesn't really meet the standards of the CLI, emacs interface, or python bindings in terms of being well maintained.
* nmbug: move from contrib to develGravatar David Bremner2013-02-16
| | | | | | | There seems to be consensus to use presence in contrib as documentation of limited support by the notmuch developers; in fact nmbug is pretty integrated into our current development process, so devel seems more appropriate.
* nmbug: only push master branch on nmbug pushGravatar Jani Nikula2013-02-14
| | | | | | | | | | | | | | | | | | | nmbug pull only merges upstream master, but nmbug push tries to push all local branches. The asymmetry results in conflicts whenever there have been changes in the config branch in the origin: $ nmbug push To nmbug@nmbug.tethera.net:nmbug-tags ! [rejected] config -> config (non-fast-forward) error: failed to push some refs to 'nmbug@nmbug.tethera.net:nmbug-tags' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. If you did not intend to push that branch, you may want to hint: specify branches to push or set the 'push.default' configuration hint: variable to 'current' or 'upstream' to push only the current branch. 'git push origin' exited with nonzero value To fix this, only push the master branch on nmbug push. Any config changes need to be done manually via git anyway.
* contrib: pick: close message pane when quitting from show in the message paneGravatar Mark Walters2012-12-25
| | | | | | | We add a hook to the show buffer in the message window to close the message window when that buffer quits. It checks that the message-window is still displaying the show-message buffer and then closes it.
* contrib: pick: slightly tweak running search and pick from pick bufferGravatar Mark Walters2012-12-24
| | | | | | | | | Previously running search or pick from the pick buffer did not close the message pane (if open). This meant that then new search ends up in a very small window. Fix this so that the message pane is shut. However, make it so that the pane is shut after the search string is entered in case the user is basing the search on something in the current message.
* contrib: pick: Do not indent messages in the message paneGravatar Mark Walters2012-12-18
| | | | | | | Currently pick just uses notmuch-show to display messages in the message pane: this means that they get indented just as show would. However, since pick is only displaying one message at a time there is no need to indent so override the indentation.
* contrib: pick: archive message updatedGravatar Mark Walters2012-12-15
| | | | | | | Update pick's archive message to respect notmuch-archive-tags. Also split archive message into an archiving part and a separate "then-next" part, to move more inline with show. Update the keybinding so default behaviour is unchanged.
* contrib: pick: bugfix for pick splitting the window excessivelyGravatar Mark Walters2012-12-11
| | | | | | | | | | Previously if you carried on past the last message in a pick view pick would get confused and `forget' about the split pane and would try and re-split when moving up again. This was due to faulty logic in notmuch-pick-show-message: something that should have been in the (when message) clause was not. Thanks to jrollins for the bug report.
* contrib: pick: use notmuch-clean-addressGravatar Mark Walters2012-12-03
| | | | | Now notmuch-clean-address is split out in show pick can use that (with a small wrapper).
* contrib: pick: use async parser from libGravatar Mark Walters2012-12-01
| | | | | This moves notmuch-pick to use the newly split out async json parser from notmuch-lib.el.
* contrib: pick: remove some debug timing messagesGravatar markwalters10092012-12-01
| | | | | When I submitted notmuch-pick I deleted most of the debug messages but I missed two cases. Remove them now.
* contrib: notmuch-pick: add testsGravatar Mark Walters2012-11-19
| | | | | | The test should be run using the wrapper run-tests.sh. This links the tests into the normal notmuch TEST_DIRECTORY and runs them from there. After the test is complete then the links are removed.
* contrib: pick: bugfix when trying to show a non-messageGravatar Mark Walters2012-11-16
| | | | | | | | If the user pressed return on the end result status line it gave a blank message. Modify the function notmuch-pick-get-message-id to return nil rather than an empty message-id in this case to fix this. This also fixes a bug in the (lack of) quoting of the id string.
* Update notmuch-mutt requirements in README file.Gravatar Kevin J. McCarthy2012-11-16
| | | | | | | This updates the notmuch-mutt README file with requirements for the recently added duplicate removal patch. -Kevin
* contrib: add pick TODO fileGravatar Mark Walters2012-10-28
|
* contrib: add pick README.Gravatar Mark Walters2012-10-28
|
* contrib: add notmuch-pick.el file itselfGravatar Mark Walters2012-10-28
| | | | This adds the main notmuch-pick.el file.
* contrib/nmbug/nmbug-status: combine thread messagesGravatar Tomi Ollila2012-10-24
| | | | | | | | | | | Newer patch email containing In-Reply-To: to an email sent some time ago (i.e. to a "thread") was not visible in that "thread" in patch view when another patch "thread" was submitted in between. This change collects all messages in every (notmuch-created) thread together before printing all these threads out in a patch view. Thanks to Ethan Glasser-Camp for initial review and suggestions with code examples.
* contrib/nmbug/nmbug-status: added table of viewsGravatar Tomi Ollila2012-10-24
| | | | | | | In latest configuration quite a few long views were added to the Notmuch Patches page. To ease navigating to the views a 'Views' section was added to the beginning of page containing hyperlink to every view.
* contrib/nmbug/nmbug-status: if realname empty, use part of mailaddrGravatar Tomi Ollila2012-09-01
| | | | | | | When the From: field in patch email does not contain 'realname' field, the patch listing does not show anything as patch sender. In this case use the part before '@' in mail address as the sender identification in patch listing.
* Add duplicate message removal for notmuch-mutt.Gravatar Kevin McCarthy2012-08-02
| | | | | | | | Add a --remove-dups flag which removes duplicate files from search and thread results. Uses fdupes if installed. Otherwise it runs a size and Digest::SHA scan on each file to detect duplicates. Signed-off-by: Stefano Zacchiroli <zack@upsilon.cc>
* contib/nmbug/nmbug-status: leftover whitespaces, indentation & quotingGravatar Tomi Ollila2012-07-12
| | | | | | | | | | | | The initial nmbug-status was pretty consistent in it's whitespacing but a few lines had some leftover slips. Those are now "corrected". Also, most of the code used ' as quoting char. As in Python one can use ' and " interchangeably some code used " instead of '. However the usage of those were inconsistent. Now all quotes that python parses are ':s (only quoted content uses ":s). No functional changes.
* contrib/nmbug/ nmbug-status: restored out['subject']... block levelGravatar Tomi Ollila2012-07-12
| | | | | | | In reformatting the line 111 accidentally indented to one indentation level too much (happens easily when interactively indenting python code using emacs). The line now has 4 spacess less indentation, thus restoring it to the block level it belongs.
* contrib/nmbug: add nmbug-status scriptGravatar David Bremner2012-07-10
| | | | | | | | | | This is (almost) the same script as has been used for http://nmbug.tethera.net/status for a while now. The only change is that the configuration is not hardcoded anymore. By default the config is fetched from a special branch in the nmbug repo that contains only config info. The idea is that push access to this branch can be restricted a bit more than the tags, since it will change the appearence of the web pages.
* contrib/nmbug: make nmbug a subdirectoryGravatar David Bremner2012-07-09
| | | | | I want to ship the status tool here as well, along with a sample config file.
* notmuch-mutt: fix helper invocation for the tag actionGravatar Stefano Zacchiroli2012-07-04
| | | | | | | As it was before, "-inbox" was interpreted as a getopt option, rather than as a tag manipulation request. Making the action unusable. Closes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678012
* nmbug: check whether every forked process exit with (non)zero valueGravatar Tomi Ollila2012-06-03
| | | | | | If any of the forked process exits with nonzero value, terminate current operation -- nonzero exit value indicates failure and then there is no point continuing.
* Merge tag '0.13.2'Gravatar David Bremner2012-06-03
|\ | | | | | | notmuch 0.13.2 release
| * notmuch-deliver: Update to new notmuch_database_open APIGravatar Austin Clements2012-06-01
| | | | | | | | Commit 5fddc07 changed this API, but missed this use of it.
* | notmuch-mutt: lookup notmuch-search-terms(7) when asked for helpGravatar Stefano Zacchiroli2012-05-29
|/ | | | | | | | When asked for interactive help, lookup notmuch-search-terms(7) instead of notmuch(1). Syntax of notmuch queries used to be described in the latter, but has recently been moved to the former. Closes: #675073 (in the Debian BTS)
* Use notmuch_database_destroy instead of notmuch_database_closeGravatar Justus Winter2012-04-28
| | | | | | Adapt notmuch-deliver to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* notmuch-mutt: fix typo in manpageGravatar Stefano Zacchiroli2012-03-31
|
* contrib: new mutt-notmuch utility for Mutt integrationGravatar Stefano Zacchiroli2012-03-30
|
* contrib/.gitattributes: removeGravatar David Bremner2011-12-06
| | | | | Now that licensing of notmuch-deliver has been harmonized with notmuch, there is no reason not to export it.
* notmuch-deliver: GPL-3+Gravatar Ali Polatel2011-12-06
|
* notmuch-deliver: Import from maildrop-2.5.5Gravatar Ali Polatel2011-12-06
| | | | | maildrop-2.5.5 is GPL-3. No change in functionality, just a precaution before relicensing.
* contrib/notmuch-deliver: don't export from gitGravatar David Bremner2011-11-23
| | | | | | This prevents it from being part of the release tarballs. Hopefully this is only temporary while we sort out the GPL2 versus GPL3 question.
* contrib/nmbug: new script for sharing tags with a given prefix.Gravatar David Bremner2011-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main idea is consider the notmuch database as analogous to the work-tree. A bare git repo is maintained in the users home directory, with a tree of the form tags/$message-id/$tag Like notmuch and git, we have a set of subcommnds, mainly modelled on git. Implementation wise, the heavy lifting is in the following functions. commit xapian -> git checkout git -> xapian merge fetched git + git -> xapian status find differences between xapian, git, and remote git. The central implementation trick, from an idea I think due to tomprince on IRC is manipulate the git index directly from the xapian tag information. The merge routine is still done using a temporary checkout as I wasn't able to get it working with the index only. There are also some convenience wrappers around git commands, like "fetch" that essential just set GIT_DIR in the environment. In order to encode tags (viewed as octet sequences) into filenames, we whitelist a smallish set of characters and %hex escape anything outside. The prefix is omitted in git, which lets one save and restore to different prefixes (although this is only lightly tested). Thanks to Tomi Ollila for a huge amount of feedback and patches while putting this together.
* notmuch-deliver: update gitignoreGravatar Ali Polatel2011-11-05
|
* notmuch-deliver: Don't read errno inappropriately.Gravatar Thomas Schwinge2011-11-05
| | | | Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
* notmuch-deliver: Won't deliver to more than one folder.Gravatar Thomas Schwinge2011-11-05
| | | | Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
* notmuch-deliver: Advance imported files to maildrop-2.5.2 release.Gravatar Thomas Schwinge2011-11-05
|
* notmuch-deliver: Import said files from maildrop-2.2.0 release.Gravatar Thomas Schwinge2011-11-05
| | | | | | | We won't use all of the included build infrastructure files, but adding them nevertheless helps to track changes that are applied to them upstream. Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
* Move files copied from maildrop to a separate hierarchy.Gravatar Thomas Schwinge2011-11-05
| | | | Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
* Make it build in a separate build directory.Gravatar Thomas Schwinge2011-11-05
| | | | Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
* notmuch-deliver: Add mailmapGravatar Ali Polatel2011-11-05
|
* notmuch-deliver: Fix utter failureGravatar alip2011-11-05
|
* notmuch-deliver: Use splice() if it's availableGravatar Ali Polatel2011-11-05
| | | | | NOTMUCH_DELIVER_NO_SPLICE environment variable may be set to fallback to the read/write method.