summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* debian/changelog: Fix email address to avoid lintian complaint.0.3Carl Worth2010-04-27
| | | | | | Otherwise lintian thinks this is an NMU. I definitely need to figure out how to get the emacs mode for debian/changelog to write the correct address into this file in the first place.
* debian/changelog: Add notes for the 0.3 releaseCarl Worth2010-04-27
| | | | Again, just taking the one-line entries from the NEWS entry for 0.3.
* Increment package version to 0.3.Carl Worth2010-04-27
| | | | For the 0.3 release, of course.
* lib: Increment library version to 1.1.0Carl Worth2010-04-27
| | | | For the addition of the new NOTMUCH_SORT_UNSORTED value.
* emacs: Fix column alignment in `notmuch-hello-insert-tags'David Edmondson2010-04-27
| | | | | | | Re-working the saved search/tag insertion to buttonize only the name of the saved search/tag plus one space broke the calculation of how much filler is required to complete the column, resulting in lines wider than the window.
* lib: Re-implement moving of thread authors.Carl Worth2010-04-27
| | | | | | | | | | | | | Just before releasing 0.3 we received reports of crashes that were bisected to the commit adding thread-author moving. Sure enough, valgrind pointed to buffer overruns in _thread_move_matched_author. Rather than trying to make sense of all the by strncpy, strchr, +1, and +2 of that code, I reimplemented thread-author ordering with a pair of hash tables and an array. Valgrind is at least happy now on the test cases it was complaining about previously.
* NEWS: Fix spelling errors.Carl Worth2010-04-27
| | | | | I ran the spell-checker prior to the last commit, but apparently I hadn't actually saved the buffer.
* NEWS: Add notes for the 0.3 release.Carl Worth2010-04-27
| | | | | Summarizing all the major new features and fixes found in the git log since 0.2. A rather nice list, really.
* emacs: Use message-signature-separator rather than hard-coded string.Carl Worth2010-04-26
| | | | | | | | It's possible that the user has instructed message-mode to use some other separator. If so, then that's what we should look for when looking for the signature. Thanks to David Edmondson <dme@dme.org> for pointing this out.
* emacs: Delete some trailing whitespace.Carl Worth2010-04-26
| | | | That managed to sneak in with some recent improvements to the Fcc code.
* emacs: Ensure that message-directory for Fcc has a trailing slashJesse Rosenthal2010-04-26
| | | | | | Use `file-name-as-directory' to ensure that message-directory has a trailing slash so it can be combined with the notmuch-fcc-dirs correctly.
* emacs: add prompt to create maildir for fcc if it does not exist.Jesse Rosenthal2010-04-26
| | | | | | | | If the user specifies a maildir that does not exist, prompt the user to see whether a maildir should be created. This will fail, with the relevant explanation, if the location is not writable, or if a file already exists in that location. If the location is a dir, but not a maildir, this will add /tmp/cur/new to it.
* emacs: fcc should fail at the right time if it doesn't point to a maildirJesse Rosenthal2010-04-26
| | | | | | | | | | | | | Throw an error after the maildir is generated but before the message is sent. This change allows the user to edit the maildir if it fails, so that it will point to a correct place. Note that this changes the previous behavior which always overwrote the existing Fcc line. Now, an Fcc line is only auto-generated if there isn't one already there. The ideal change would be to prompt to create a maildir. This should enable a place for doing that in a future patch.
* emacs: Tweak search-buffer naming to search list in reverse orderCarl Worth2010-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | The complete-string matching of commit f2ebe3ac446afda9ced6507dc391865464ccdcaa defeats the substitution of partial search strings when the user manually types a long search string that just happens to partially match a saved search. For example, typing "tag:inbox and not tag:foo" should result in "[inbox] and not tag:foo" but this has been broken since that commit. As a compromise between this feature and what the commit was trying to achieve, we now reverse the saved-searches list before looking for a match. This happens to work for me, but won't necessarily work in general. What we really want is the longest match, but rassoc-if just gives us the first match. All of this is just about creating slightly nice search-buffer names. So if anyone really cares about making the names *even* nicer, then they could improve this further.
* emacs: Rename search buffers with "saved-search" not "folder"Carl Worth2010-04-26
| | | | | | Since we recently renamed everything from notmuch-folders to notmuch-saved-searches, fix up the generated names in the search buffers to match.
* emacs: Match entire saved-search when computing search-view buffer nameCarl Worth2010-04-26
| | | | | | | | | | I happen to have a lot of saved searches that are variants of the tag:inbox search, (such as "tag:inbox and tag:notmuch"). The logic for these was always matching inbox first, resulting in "[ inbox ] and tag:notmuch" rather than "notmuch" as desired. Anchor the regular expression on both ends to make it look harder for the better match.
* emacs: Rip out all of the notmuch-folder code.Carl Worth2010-04-26
| | | | | | | | | | | | We are asserting that the new notmuch-hello implementation, (available by just calling `notmuch') is just as easy to use as the old notmuch-folder. So let's remove what's now a largely redundant implementation. To make this transition easier, we are still supporting the notmuch-folders variable name, and we still provide `notmuch-folder' as an alias which can be invoked to get the new notmuch-hello functionality.
* emacs: Fix notmuch-hello to use its own function for counting search results.Carl Worth2010-04-26
| | | | | | | Previously, this was calling into a notmuch-folder-count function. Only, everything related to notmuch-folder is about to go away, so lets have notmuch-hello define its own function (notmuch-saved-search-count) for this purpose.
* emacs: Add a notmuch-saved-searches function.Carl Worth2010-04-26
| | | | | | | | | | | | | We use this function to abstract away the common 3-step process for looking for a value for the saved-searches variable: 1. Look at the notmuch-saved-searches variable itself 2. Look at the notmuch-folders vaiable 3. Use a default value We were already using this logic (open-coded) in notmuch-hello, but notmuch.el was accessing notmuch-folders directly for the clever name selection of search buffers.
* emacs: Move declare-function from notmuch-lib.el to notmuch-hello.el.Carl Worth2010-04-26
| | | | | | Apparently the declare-function macro doesn't work in a required file as I might like it too. Put it where it needs to go to avoid the warning.
* notmuch-hello: Add a 'G' keybinding.Carl Worth2010-04-26
| | | | | Just like the G keybinding we've had in notmuch-folder-mode and notmuch-search-mode, (to call `notmuch-poll' to 'G'et new mail).
* notmuch-hello: Make this work with a notmuch-folders variable set in ~/.emacsCarl Worth2010-04-26
| | | | | | | I'm planning to rip out the notmuch-folder-mode completely. So as a token kindness to existing users of notmuch-folders, I'm at least making notmuch-hello support the notmuch-folders variable name as an alternate for the new name of notmuch-saved-searches.
* emacs: Remove "hello" from all variables exported through customize.Carl Worth2010-04-26
| | | | | | | We've recently changed things so that the notmuch-hello screen is the default view one gets by executing `notmuch'. So hide the "hello" name from everything exposed in the customize interface, (leaving "hello" as just an internal name within the implementation).
* notmuch-hello: Fix a sign error when computing number of padding spaces.Carl Worth2010-04-26
| | | | | | | | | | | After the previous commit, toggling the visibility of tags could result in notmuch-hello aborting with: Wrong type argument: wholenump, -1 At least, the error only occurred for me when making tags visible. But that may be because my longest tag name is longer than my longest saved-search name.
* notmuch-hello: Fix ability to isearch to a saved-search and press RETCarl Worth2010-04-26
| | | | | | | | | | | After isearching for an entire saved-search name, the point will be immediately after that name in the buffer. Before commit c9ba61bebef7733c4bf12adf94222e57621fdcf6 the space right after the name was part of the widget so the user could press RET right after the isearch to activate the saved search. The above commit broke that functionality. Restore it by including a single space after each name as part of the widget.
* emacs: notmuch-hello: Make viewing of all tags conditional.Carl Worth2010-04-26
| | | | | | | | | And off by default. There's a notmuch-hello-show-tags option in customize to toggle the default setting, as well as buttons to persistently toggle the visibility for the current session. I have enough tags in my database that it's quite a bit faster for notmuch-hello to come up without showing the tags.
* notmuch-hello: Preserve current position when invoking notmuch-helloCarl Worth2010-04-26
| | | | | | | Previously, we preserved the current position only when returning to the notmuch-hello buffer or when refreshing it. Fix to also preserve the position when directly invoking notmuch-hello, (such as from a global keybinding).
* emacs: notmuch-hello: Move to first saved search item.Carl Worth2010-04-26
| | | | | | | This give us a useful active widget by default, ("inbox"), and otherwise gives the first saved search in the user's customized list. Not having point on the search bar means that the various keybindings are all available.
* emacs: Fix 's' keybinding to go to search bar in notmuch-hello.Carl Worth2010-04-26
| | | | | | | This command was previously written under the fragile assumption that the search bar was always the third widget. That's no longer true with the saved searches now appearing before the search bar, so we save the position of the search bar and go directly to it now.
* emacs: Move saved searches before search bar in notmuch-hello.Carl Worth2010-04-26
| | | | | | Once users start using saved searches regularly, it's expected that these will become the primary access points to mail. So give them a priority position in the buffer.
* emacs: Remove the notmuch-hellow-jump-to-search variable.Carl Worth2010-04-26
| | | | | Instead, make notmuch-hello unconditionally jump to the first widget in the buffer. By default this will be the search bar anyway.
* emacs: Take advantage of position-remembering when returning to notmuch-helloCarl Worth2010-04-26
| | | | | | | When we go into a search, and then later quit and return to the notmuch-hello buffer, we want the point to remain in the same position it was in when we left. So we have to call the position-remembering notmuch-hello-update rather than notmuch-hello from the continuation.
* emacs: Make update of notmuch-hello leave point on the same widget.Carl Worth2010-04-26
| | | | | | | Before refreshing, we check which widget we are currently on, (or look for the next widget), and then we watch for that same widget to go by when constructing the buffer contents. Finally, we jump to the position we saw when the widget went by.
* emacs: notmuch-hello: Don't include extra spaces in widget values.Carl Worth2010-04-26
| | | | | | | | | | Previously, trailing spaces after each saved-search name were included as part of the widget. This is going to be problematic for a future change that will extract the widget's value and compare it to the configured names of saved searches. Instead, just include the name itself in the widget, and then insert the spaces for separation afterwards.
* emacs: Disable automatic jump to search bar for notmuch-hello.Carl Worth2010-04-26
| | | | | We're about to get support for maintaining point on the current saved-search, so we don't want this jump-to-search defeating that.
* Put signatures at the very end of the messageDirk Hohndel2010-04-26
| | | | | | | | | | | The existing code inserts the signature before inserting the message body (which it puts at the very end of the buffer - therefore AFTER the signature). This little snippet makes us search backwards and insert the message body before a signature, if it exists. This also fixes a small indentation issue in David's code. Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Add NEWS updates for my last batch of patchesDirk Hohndel2010-04-26
| | | | | | | in the future I'll include those with my patches. Hope it's ok to do this as one single patch for this series. Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* TODO: Add some ideas for notmuch-hello cleanups.Carl Worth2010-04-26
| | | | | I discussed these on the list while wrapping up the 0.3 release. They may not make it in for that, but I don't want to forget them at least.
* emacs: Fix to generate error if fcc directory is not a maildirCarl Worth2010-04-26
| | | | | | | Previously this was just a message that was almost impossible for the user to see. Now, the user gets to see the error message, and is presented with a buffer that actually contains the Fcc header of interest.
* Rearchitect From: header guessing code for repliesDirk Hohndel2010-04-26
| | | | | | | | | | | | | | | | | | | | | We want to be able to correctly guess the best From: header to use when replying to emails. This is what we are looking at now: 1 is one of the users' mail addresses in the To: or Cc: header 2 check for an Envelope-to: header 3 check for an X-Original-To: header 4 check for a (for <email@add.res>) clause in Received: headers 5 check for the domain part of known email addresses in the 'by' part of Received headers 6 fall back to the primary email address This patch changes the algorithm for steps 2-5 of this process. Prior to this patch we had a first attempt to implement only step 5 - but this broke in many email setups where mail delivery to the local machine added additional Received: lines. Steps 2-4 are new, step 5 now analyzes the concatenated Received: header (this was in the previous patch) to do this analysis. Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Make Received: header special in notmuch_message_file_get_headerDirk Hohndel2010-04-26
| | | | | | | | | | | | With this patch the Received: header becomes special in the way we treat headers - this is the only header for which we concatenate all the instances we find (instead of just returning the first one). This will be used in the From guessing code for replies as we need to be able to walk ALL of the Received: headers in a message to have a good chance to guess which mailbox this email was delivered to. Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Integrate notmuch-fcc mechansimSebastian Spaeth2010-04-26
| | | | | | | | | | | | | | I have gone wild and added a defcustom "notmuch-fcc-dirs". Depending on the value of that variable we will not do any maildir fcc at all (nil, the default), or it is of the format (("defaultsentbox") ("full name <email@address>" . "Work/sentbox") ("full name2 <email2@address2>" . "Work2/sentbox")) The outbox name will be concatenated with the message mode variable "message-directory" which is "~/Mail/" by default. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* notmuch-maildir-fcc: elisp syntax fixesSebastian Spaeth2010-04-26
| | | | | | | | | | | | | | | 1)use insert-buffer-substring Rather than the insert-buffer. Emacs complains that it is for interactive use and not for use within elisp. So use insert-buffer-substring which does the same thing when not handed any 'begin' 'end' parameters. 2)replace caddr with (car (cdr (cdr))) The former requires 'cl to be loaded and during make install emacs complained about not knowing it. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Integrate notmuch-maildir-fcc into notmuchSebastian Spaeth2010-04-26
| | | | | | | Require notmuch-maildir-fcc and also install it. Rename all jkr/* functions to notmuch-maildir-fcc-* Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Add elisp file for FCC to maildir solutionJesse Rosenthal2010-04-26
| | | | | | | File grabbed from http://jkr.acm.jhu.edu/jkr-maildir.el but not integrated yet. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Simple attempt to display author names in a friendlier wayDirk Hohndel2010-04-26
| | | | | | | | | | | | This patch only addresses the typical Outlook/Exchange case where we have "Last, First" <first.last@company.com> or "Last, First MI" <first.mi.last@company.com>. In the future we should be more fexible as to the formats we recognize, but for now we address this one as it is the Exchange default setting and therefore the most common one. Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Add tests for author name reordering in search resultsDirk Hohndel2010-04-26
| | | | | | This should be required for all patches :-) Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Add NEWS section for author reorderingDirk Hohndel2010-04-26
| | | | | | This should be required in all patches Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Reorder displayed names of thread authorsDirk Hohndel2010-04-26
| | | | | | | | | | | | | | | | | | When displaying threads as result of a search it makes sense to list those authors first who match the search. The matching authors are separated from the non-matching ones with a '|' instead of a ',' Imagine the default "+inbox" query. Those mails in the thread that match the query are actually "new" (whatever that means). And some people seem to think that it would be much better to see those author names first. For example, imagine a long and drawn out thread that once was started by me; you have long read the older part of the thread and removed the inbox tag. Whenever a new email comes in on this thread, prior to this patch the author column in the search display will first show "Dirk Hohndel" - I think it should first show the actual author(s) of the new mail(s). Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
* Add authors member to messageDirk Hohndel2010-04-26
| | | | | | | message->authors contains the author's name (as we want to print it) get / set methods are declared in notmuch-private.h Signed-off-by: Dirk Hohndel <hohndel@infradead.org>