[notmuch] [PATCH v3] Add the beginnings of a test suite.

2009-11-28 Thread Jeffrey C. Ollie
hecks. [1] http://check.sourceforge.net/ Signed-off-by: Jeffrey C. Ollie --- .gitignore |1 + Makefile|1 + Makefile.local |3 ++ checks/Makefile.local | 14 +++ checks/notmuch-check-sha

[notmuch] [PATCH] Add the beginnings of a test suite.

2009-11-28 Thread Jeffrey C. Ollie
[1] http://check.sourceforge.net/ Signed-off-by: Jeffrey C. Ollie --- .gitignore|1 + Makefile |1 + Makefile.local|3 ++ checks/Makefile.local | 12 ++ checks/check.c| 90 + configure |

[notmuch] [PATCH] Add the beginnings of a test suite.

2009-11-28 Thread Jeffrey C. Ollie
[1] http://check.sourceforge.net/ Signed-off-by: Jeffrey C. Ollie --- .gitignore|1 + Makefile |1 + Makefile.local|3 ++ checks/Makefile.local | 12 + checks/check.c| 61 + configure

[notmuch] [PATCH] Add some text to configure on how to install dependencies with yum.

2009-11-28 Thread Jeffrey C. Ollie
-by: Jeffrey C. Ollie --- configure |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/configure b/configure index e55f067..4377167 100755 --- a/configure +++ b/configure @@ -89,6 +89,10 @@ line: sudo apt-get install libxapian-dev libgmime-2.4-dev libtalloc-dev

[notmuch] [PATCH v3] Add the beginnings of a test suite.

2009-11-28 Thread Jeffrey C. Ollie
://check.sourceforge.net/ Signed-off-by: Jeffrey C. Ollie j...@ocjtech.us --- .gitignore |1 + Makefile|1 + Makefile.local |3 ++ checks/Makefile.local | 14 +++ checks/notmuch-check-sha1.c | 76

[notmuch] [PATCH] Use libgcrypt for hashing.

2009-11-27 Thread Jeffrey C. Ollie
and gnupg2), and it's licensed under the LGPL. Signed-off-by: Jeffrey C. Ollie --- Makefile |6 +- configure | 15 +++- lib/Makefile.local |1 - lib/libsha1.c | 242 lib/libsha1.h | 67 -- lib

[notmuch] [PATCH] Silence compiler warning by initializing a variable.

2009-11-25 Thread Jeffrey C. Ollie
If Xapian threw an exception on notmuch_query_count_messages the count variable could be used uninitialized. Initialize count to solve the problem. Signed-off-by: Jeffrey C. Ollie --- lib/query.cc |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/query.cc b/lib

[notmuch] [PATCH] Add tests to configure script to detect strndup and getline

2009-11-23 Thread Jeffrey C. Ollie
Add some simple tests to the configure script to detect strndup and getline. It's not important that the tests run, just that they compile and link without any errors. Signed-off-by: Jeffrey C. Ollie --- configure | 20 +++- getlinetest.c | 13

[notmuch] [PATCH] Add private implementations of strndup and getline.

2009-11-23 Thread Jeffrey C. Ollie
Add private implementations of strndup and getline for those platforms that don't have them (notably Mac OS X) no matter what preprocessor symbols you define. Signed-off-by: Jeffrey C. Ollie --- lib/xutil.c | 99 +++ lib/xutil.h |6

[notmuch] [PATCH] Mac OS X compatibility fixes

2009-11-23 Thread Jeffrey C. Ollie
Here's a patch that adds private implementations of strndup and getline. They are unconditionally compiled so that compiler errors in these functions can be detected on any platform, even those that provide strndup and getline in the standard library. I'll have a patch that handles the

[notmuch] [PATCH] Add install target for desktop files.

2009-11-22 Thread Jeffrey C. Ollie
Add an install target that uses desktop-file-install to install the desktop file in the appropriate location. The location of the install can be modified by changing the desktop_dir variable. Signed-off-by: Jeffrey C. Ollie --- Makefile.local |4 configure |1 + 2 files

[notmuch] [PATCH] Add SCons build files.

2009-11-22 Thread Jeffrey C. Ollie
: sudo scons install DESTDIR=/tmp/buildroot prefix=/opt/notmuch See the output of 'scons -h' for a complete list of the variables that can be modified. Signed-off-by: Jeffrey C. Ollie --- .gitignore |3 + SConstruct | 226 lib

[notmuch] [PATCH 2/2] Add a .desktop file entry.

2009-11-19 Thread Jeffrey C. Ollie
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 --- notmuch.desktop |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 notmuch.desktop diff --git a/notmuch.desktop

[notmuch] [PATCH 1/2] Improve installation of emacs mode.

2009-11-19 Thread Jeffrey C. Ollie
t; in your .emacs to load it automatically. 5) Ignore byte-compiled emacs files. Signed-off-by: Jeffrey C. Ollie --- .gitignore |2 +- Makefile |6 ++ Makefile.local | 15 --- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitig

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Jeffrey C. Ollie
automatically. 5) Ignore byte-compiled emacs files. Signed-off-by: Jeffrey C. Ollie --- .gitignore |2 +- Makefile |6 ++ Makefile.local | 15 --- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8417d60..7d3c543 100644

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Jeffrey C. Ollie
. Signed-off-by: Jeffrey C. Ollie --- Makefile |6 ++ Makefile.local | 13 ++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 023b2ec..17fa4a2 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ CFLAGS=-O2 extra_cflags

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Jeffrey C. Ollie
1) Don't hardcode the installation directory, instead use emacs' pkg-config module. 2) Install a byte compiled version of the emacs mode. 3) Install the emacs mode in emacs' site-start directory so that it gets loaded automatically. --- Makefile |6 ++ Makefile.local |9

[notmuch] [PATCH] notmuch build: add a RPM spec file

2009-11-18 Thread Jeffrey C. Ollie
Add a spec file for building RPM packages. Signed-off-by: Jeffrey C. Ollie --- notmuch.spec | 110 ++ 1 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 notmuch.spec diff --git a/notmuch.spec b/notmuch.spec new file

[notmuch] RPM spec file

2009-11-18 Thread Jeffrey C. Ollie
I prefere managing all of the software on my system with RPM, so I came up with a quick spec file for building RPMS. Once notmuch settles down and I continue using it I may submit notmuch to Fedora as an official package. If you'd like your own RPMS build your own, I don't plan on offering a