| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
In my script containing a series of queries to be run on new mail for
setting up tags, it's nice to see which query I typed wrong.
Signed-off-by: Eric Anholt <eric@anholt.net>
|
|
|
|
|
| |
Some systems install completion scripts in /usr/share/bash-completion, make the
location configurable from Makefile.config.
|
|
|
|
|
|
|
|
|
|
|
| |
More fallout from _get_header now returning "" for missing headers.
The bug here is that we would no longer detect that a file is not an
email message and give up on it like we should.
And this time, I actually audited all callers to
notmuch_message_get_header, so hopefully we're done fixing this
bug over and over.
|
|
|
|
|
| |
Thanks to Mike Hommey for doing the analysis that led to noticing that
this was missing.
|
|
|
|
|
|
|
|
| |
There's been a fair amount of fallout from when we changed
message_file_get_header from returning NULL to returning "" for
missing headers. This is yet more fallout from that, (where we were
accepting an empty message-ID rather than generating one like we want
to).
|
|
|
|
|
| |
Modified-by Carl Worth <cworth@cworth.org>: Just moved the file down
into contrib where the other completion scripts are.
|
|
|
|
| |
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
|
|
|
|
| |
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
|
|
|
|
| |
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
|
|
|
|
|
| |
I'm throwing away a half-finished fix of this now, and just want to
ensure I don't forget about it.
|
|
|
|
|
|
|
| |
All objects need to be recompiled when any of the Makefiles changes, so
we make them all depend on all the Makefiles.
Signed-off-by: Jan Janak <jan@ryngle.com>
|
|
|
|
| |
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
|
|
|
|
|
|
|
| |
Avoding these is nicer to users, text editors, and our poor little
notmuch.el code itself that would get confused when seeing a copy of
itself in email. (Of course, we should still fix that bug, but this
workaround is good nonetheless.)
|
|
|
|
|
| |
Using pkg-config to find this variable is nice if it works. Go back to
the previously used value if it doesn't.
|
|
|
|
|
|
| |
This was added in a prelimnary version of a previous commit that would
automatically load notmuch.el for anyone running emacs. It's not used
at all in the current Makefile.
|
|
|
|
|
|
|
| |
This eliminates a crash when a message (either corrupted or a non-mail
file that wasn't properly detected as not being mail) has no In-Reply-To
header, (and so few terms that trying to skip to the prefix of the
In-Reply-To terms actually brings us to the end of the termlist).
|
|
|
|
|
|
|
|
|
| |
This was accidentally included with commit:
ddac17343a30976cae82c9f57419c063e1585cc0
(It was a dirty chunk in my directory that I accidentally amended into
the submitted patch.)
|
|
|
|
|
|
| |
Add a spec file for building RPM packages.
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
|
|
|
|
|
|
|
| |
This will add an entry in your window manager's menus that will create
up a new emacs process and start notmuch.
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Add a separate targets to build and install emacs mode.
2) Don't hardcode the installation directory, instead use emacs'
pkg-config module.
3) Install a byte compiled version of the emacs mode.
4) Install the emacs mode in emacs' site-lisp directory. Put
"(require 'notmuch)" in your .emacs to load it automatically.
5) Ignore byte-compiled emacs files.
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
Reviewed-by: Ingmar Vanhassel <ingmar@exherbo.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
|
| |
|
|
|
|
|
|
| |
Some linkers on some systems are particularly picky about the order of
arguments in order to properly linkt. So this fixes failures on some
systems.
|
|
|
|
|
|
|
|
| |
This patch add notmuch-search-hook that gets run when we
after displaying search results
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc:Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
When doing a DESTDIR install, this directory likely won't exist, and
installing notmuch.el will fail.
See 0d4b5292
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
|
|
|
|
| |
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As suggested by Keith in FLAG_PURE_NOT allows for expressions like:
notmuch search NOT tag:inbox
Note that this way a search like:
notmuch search foobar NOT tag:inbox
should not be written instead:
notmuch search foobar AND NOT tag:inbox
In my opinion, the latter feels more natural and is somewhat more explicit.
It gives a better clue of what the search is about instead of assuming that
an implicit AND operator is there.
|
| |
|
|
|
|
| |
This was more fallout from the recent re-shuffling of this code.
|
|
|
|
|
| |
A recent shuffling of this code accidentally disabled the timer,
(making the time spent counting the files totally useless).
|
|
|
|
| |
Should have been doing this a long time ago.
|
|
|
|
|
|
| |
This is basically right, (I get a message buffer with all the mails
quoted), but somehow notmuch reply is reversing the messages. That's a
nuisance.
|
|
|
|
| |
Apparently typeof (size_t) != unsigned int on my x86-64.
|
|
|
|
|
| |
Currently the same `pkg-config ...` is executed for every target, so
just store the results in a variable.
|
|
|
|
|
|
|
|
| |
In particular, notmuch tag -inbox "" tended to take a long time to
run, happened if you hit 'a' on a blank line in the search view and
probably didn't have the desired effect.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
|
|
|
|
|
| |
Thanks, windows mail clients.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This makes things like the goto-address system bring up the right
message composition window.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
I created the notmuch-show-hook precisely so I could add these two
options, but I suspect most people will want them, so I just made them
the default. If you don't want them, you can use remove-hook to get
rid of this.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This keeps them from wrapping.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
I wanted to enable got-address-mode and visual-line-mode in my show
windows to make messages easier to read and URLs easier to
follow. This hook allows the user to run arbitrary code each time a
message is shown.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Carl says: This has similar performance benefits as the previous
patch, and I fixed similar style issues here as well, (including
missing more of a commit message than the one-line summary).
|
|
|
|
|
| |
Use consistent whitespace, a slightly less abbreviated identifier, and
avoid a C99 declaration after statement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This gives a rather decent reduction in number of seeks required when
reading a Maildir that isn't in pagecache.
Most filesystems give some locality on disk based on inode numbers.
In ext[234] this is the inode tables, in XFS groups of sequential inode
numbers are together on disk and the most significant bits indicate
allocation group (i.e inode 1,000,000 is always after inode 1,000).
With this patch, we read in the whole directory, sort by inode number
before stat()ing the contents.
Ideally, directory is sequential and then we make one scan through the
file system stat()ing.
Since the universe is not ideal, we'll probably seek during reading the
directory and a fair bit while reading the inodes themselves.
However... with readahead, and stat()ing in inode order, we should be
in the best place possible to hit the cache.
In a (not very good) benchmark of "how long does it take to find the first
15,000 messages in my Maildir after 'echo 3 > /proc/sys/vm/drop_caches'",
this patch consistently cut at least 8 seconds off the scan time.
Without patch: 50 seconds
With patch: 38-42 seconds.
(I did this in a previous maildir reading project and saw large improvements too)
|
|
|
|
|
| |
Just using describe-mode for now, (though something more specialized
would be better).
|
|
|
|
|
|
|
|
| |
Previously, Ubuntu 9.10, gcc 4.4.1 was getting:
/usr/bin/ld: lib/notmuch.a(database.o): in function global
constructors keyed to BOOLEAN_PREFIX_INTERNAL:database.cc(.text+0x3a):
error: undefined reference to 'std::ios_base::Init::Init()'
|
|
|
|
| |
The code this comment was referring to has since been deleted.
|
|
|
|
|
|
| |
Let usage() take a FILE * argument so that you can output to stderr in
response to usage errors, and stdout in response to an explicit
request.
|