Re: [notmuch] [RFC/PATCH] Add search-files command

2010-01-13 Thread Ali Polatel
Fernando Carrijo yazmış: Hi Ali, Hey Fernando, On Wed, 13 Jan 2010 12:24:22 +0200, Ali Polatel a...@exherbo.org wrote: snip diff --git a/notmuch-search-files.c b/notmuch-search-files.c new file mode 100644 index 000..b48783a --- /dev/null +++ b/notmuch-search-files.c @@ -0,0

Re: [notmuch] [RFC/PATCH v2] Add search-files command

2010-01-13 Thread Ali Polatel
Jameson Rollins yazmış: On Wed, Jan 13, 2010 at 03:17:41PM +0200, Ali Polatel wrote: This command can be used to integrate notmuch with other MUAs as a searching client. The idea is simple, a simple script could get search-terms as argument and create a virtual maildir which has symbolic

Re: [notmuch] Thoughts on notmuch and Lua

2010-01-15 Thread Ali Polatel
to do it. P.S.: As I stated in the beginning you could have elaborated what you meant by script support and I'm just commenting on what I've understood. ¹: http://alip.github.com/mpdcron/ -Carl -- Regards, Ali Polatel pgp5dmSI14ERl.pgp Description: PGP signature

Notmuch Ruby bindings

2010-05-22 Thread Ali Polatel
hard to make Ruby's GC play nice with notmuch's talloc based memory allocation but I can't be sure if it's bug-free. I haven't written any examples yet but the API documentation should be clear enough for one to understand and dive in. As usual, any comments, patches welcome. -- Regards, Ali

[ANN] notmuch-deliver

2010-05-26 Thread Ali Polatel
/notmuch-deliver.git Readme: http://github.com/alip/notmuch-deliver/blob/master/README.mkd -- Regards, Ali Polatel pgpskbloTxd1p.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[GIT PULL] Ruby bindings

2010-06-06 Thread Ali Polatel
minor style issues in show_part_content function. (2010-06-05 08:47:13 -0700) are available in the git repository at: git://github.com/alip/notmuch.git ruby Ali Polatel (6): Initial ruby bindings ruby: fix documentation of DB.upgrade! ruby: First attempt at fixing gc for ruby

Re: notmuch-haskell

2010-10-02 Thread Ali Polatel
really be more than happy to give you push access to these repositories. ¹: http://github.com/alip/hs-notmuch ²: http://github.com/alip/qoropa Bart Massey b...@cs.pdx.edu -- Regards, Ali Polatel pgppgox5gzUUO.pgp Description: PGP signature

[PATCH 0/4] Update Ruby bindings

2011-01-10 Thread Ali Polatel
Hello all, This patchset updates Ruby bindings to cover all the recent functionality of the notmuch library. Ali Polatel (4): ruby: Add wrappers for query_get_s{ort,tring} ruby: Add wrappers for maildir sync. interface ruby: Add wrapper for message_get_filenames ruby: Add generated files

[PATCH 1/4] ruby: Add wrappers for query_get_s{ort,tring}

2011-01-10 Thread Ali Polatel
New wrappers: notmuch_query_get_sort(): QUERY.sort notmuch_query_get_query_string(): QUERY.to_s --- bindings/ruby/defs.h |6 ++ bindings/ruby/init.c |2 ++ bindings/ruby/query.c | 30 ++ 3 files changed, 38 insertions(+), 0 deletions(-) diff --git

[PATCH 4/4] ruby: Add generated files to gitignore

2011-01-10 Thread Ali Polatel
--- .gitignore |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 217440d..9786d4d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ libnotmuch.so* .*.swp *.elc releases + +bindings/ruby/mkmf.log +bindings/ruby/notmuch.so

[PATCH 2/4] ruby: Add wrappers for maildir sync. interface

2011-01-10 Thread Ali Polatel
New wrappers: notmuch_message_maildir_flags_to_tags(): MESSAGE.maildir_flags_to_tags notmuch_message_tags_to_maildir_flags(): MESSAGE.tags_to_maildir_flags --- bindings/ruby/defs.h|6 ++ bindings/ruby/init.c|2 ++ bindings/ruby/message.c | 38

[PATCH 3/4] ruby: Add wrapper for message_get_filenames

2011-01-10 Thread Ali Polatel
--- bindings/ruby/defs.h|3 +++ bindings/ruby/init.c|1 + bindings/ruby/message.c | 18 ++ 3 files changed, 22 insertions(+), 0 deletions(-) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 1f52988..f00afef 100644 --- a/bindings/ruby/defs.h +++

Re: [PATCH 4/4] ruby: Add generated files to gitignore

2011-02-03 Thread Ali Polatel
On Mon, 31 Jan 2011 23:48:57 +0100, Thomas Schwinge tho...@schwinge.name wrote: Hallo! On Mon, 10 Jan 2011 16:39:28 +0200, Ali Polatel a...@exherbo.org wrote: --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ libnotmuch.so* .*.swp *.elc releases + +bindings/ruby/mkmf.log

About Ruby bindings

2011-07-29 Thread Ali Polatel
Hi everyone, I've updated Ruby documentation which is nearly complete now. The generated documentation is on http://dev.exherbo.org/~alip/notmuch/ruby/ as usual. It seems not many people know about this link though. Maybe we can move this documentation to notmuchmail.org or add a link from the

Re: NEWS for 0.9

2011-09-27 Thread Ali Polatel
On Mon, 26 Sep 2011 20:32:32 -0300, David Bremner da...@tethera.net wrote: On Mon, 26 Sep 2011 18:07:01 -0400, Austin Clements amdra...@mit.edu wrote: In fact, I've been looking forward to writing some NEWS items! Thanks, I have officially (and atomically) stolen your NEWS items. ;).

Concerns regarding some library functions

2011-09-27 Thread Ali Polatel
Hello, Being the maintainer of Ruby bindings, I've been watching the development of API changes closely. Ruby bindings are nearly complete with the exception of two functions which I think are poorly implemented in terms of error handling. The two functions I've mentioned above are

Re: Concerns regarding some library functions

2011-09-30 Thread Ali Polatel
Austin Clements yazmış: Quoth Ali Polatel on Sep 28 at 10:53 am: On Tue, 27 Sep 2011 18:46:22 -0400, Austin Clements amdra...@mit.edu wrote: Quoth David Bremner on Sep 27 at 1:59 pm: On Tue, 27 Sep 2011 16:25:58 +0300, Ali Polatel pola...@gmail.com wrote: The problem with their design

[PATCH] lib: make find_message{,by_filename) report errors

2011-10-01 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org Looks like the patch did not make it correctly the first time. Resending using git-send-email™ You may also find the commit in my notmuch repository: git://github.com/alip/notmuch.git branch: find_message Ali Polatel (1): lib: make find_message{,by_filename

[PATCH] lib: make find_message{,by_filename) report errors

2011-10-01 Thread Ali Polatel
Previously, the functions notmuch_database_find_message() and notmuch_database_find_message_by_filename() functions did not properly report error condition to the library user. For more information, read the thread on the notmuch mailing list starting with my mail id:871uv2unfd@gmail.com

[RFC/PATCH] notmuch link

2011-10-01 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org Hello, I have been working on a new notmuch command namely 'link'. This command aims to help integrating notmuch with different mail agents. Basically it (sym)links messages matching the given search terms to the specified target maildir. You may use

[RFC/PATCH] link: Add new command

2011-10-01 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org 'link' is a new command to create links to specified target maildirs. This is especially useful for integration with other mail agents. --- Makefile.local |2 + maildir.c| 262 + maildir.h| 53

Re: [PATCH v1 1/1] lib: make find_message{, by_filename) report errors

2011-10-04 Thread Ali Polatel
the state of the tree broken between the two patches which is bad for git-bisect. In addition, considering the small size and compactness of the patch, I don't think it's worth the effort. Quoth Ali Polatel on Oct 03 at 7:49 pm: Previously, the functions notmuch_database_find_message

[PATCH v2 0/2] Better error handling

2011-10-04 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org New set of patches addressing the issues in the mail id:20111003174308.gd17...@mit.edu Ali Polatel (2): lib: destroy message object after message removal lib: make find_message{,by_filename) report errors lib/database.cc | 95

[PATCH v2 1/2] lib: destroy message object after message removal

2011-10-04 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal. --- lib/database.cc |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 9299c8d

Re: [PATCH v2 0/2] Better error handling

2011-10-04 Thread Ali Polatel
Ali Polatel yazmış: From: Ali Polatel a...@exherbo.org New set of patches addressing the issues in the mail id:20111003174308.gd17...@mit.edu You may also find the commits in my notmuch repository: git://github.com/alip/notmuch.git branch: find_message-v2 Ali Polatel (2): lib: destroy

Re: [RFC/PATCH] notmuch link

2011-10-04 Thread Ali Polatel
Ali Polatel yazmış: From: Ali Polatel a...@exherbo.org Hello, I have been working on a new notmuch command namely 'link'. This command aims to help integrating notmuch with different mail agents. Basically it (sym)links messages matching the given search terms to the specified target maildir

Re: [PATCH] lib: make find_message{,by_filename) report errors

2011-10-04 Thread Ali Polatel
David Bremner yazmış: On Sat, 1 Oct 2011 11:12:23 +0300, Ali Polatel pola...@gmail.com wrote: From: Ali Polatel a...@exherbo.org Looks like the patch did not make it correctly the first time. Resending using git-send-email™ You may also find the commit in my notmuch repository: git

[PATCH v3 0/2] Better error handling

2011-10-04 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org New set of patches addressing the issues in the mail id:8739f9muhp.fsf@zancas.localnet You may also find the commits in my notmuch repository: git://github.com/alip/notmuch.git branch: find_message-v3 Ali Polatel (2): lib: destroy message object after

[PATCH v3 1/2] lib: destroy message object after message removal

2011-10-04 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal. --- lib/database.cc |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 9299c8d

[PATCH v3 2/2] lib: make find_message{,by_filename) report errors

2011-10-04 Thread Ali Polatel
From: Ali Polatel a...@exherbo.org Previously, the functions notmuch_database_find_message() and notmuch_database_find_message_by_filename() functions did not properly report error condition to the library user. For more information, read the thread on the notmuch mailing list starting with my

[PATCH v1 0/1] lib: make find_message{,by_filename) report errors

2011-10-04 Thread Ali Polatel
Ali Polatel (1): lib: make find_message{,by_filename) report errors lib/database.cc | 90 ++-- lib/message.cc|6 ++-- lib/notmuch.h | 61 +-- notmuch-new.c |4 ++- notmuch-restore.c | 11

Re: [python] set rpath in setup.cfg

2011-10-12 Thread Ali Polatel
On Wed, Oct 12, 2011 at 04:55:30PM +0200, dtk wrote: Hey guys, I installed notmuch locally (~/.local) and now the python bindings fail to find the .so. Anyone happens to know how to set the rpath in the setup.cfg? Putting it in the [build] section doesn't work: ~~~snip~~~ $ python setup.py

Re: [PATCH] contrib/nmbug: new script for sharing tags with prefix notmuch::

2011-10-29 Thread Ali Polatel
On Sat, Oct 29, 2011 at 01:45:07PM -0300, David Bremner wrote: From: David Bremner brem...@debian.org In this initial version, we take care of only the base import and export of the appropriate tags in line oriented format amenable to easy merging. The current plan to use git to share tags and

Re: [PATCH] contrib/nmbug: new script for sharing tags with prefix notmuch::

2011-10-29 Thread Ali Polatel
On Sat, Oct 29, 2011 at 07:12:52PM -0300, David Bremner wrote: On Sun, 30 Oct 2011 00:11:35 +0300, Ali Polatel pola...@gmail.com wrote: ^^ I'd make that: #!/usr/bin/env bash for systems where bash is not the default shell. OK, I'll do that in the next version. I always forget about those

Re: set test prereqs (Emacs, GDB, GPG) v4

2011-11-01 Thread Ali Polatel
On Tue, Nov 01, 2011 at 08:49:10PM +0100, Pieter Praet wrote: Rebased to current master. Previous version: id:1307016220-17509-1-git-send-email-pie...@praet.org Discussion: id:1317660447-27520-1-git-send-email-schno...@schnouki.net Thanks for the nice work! I want to share one thing which

notmuch-deliver under contrib/

2011-11-04 Thread Ali Polatel
Hello, I have just moved the notmuch-deliver repository to main notmuch repository under contrib/notmuch-deliver/. David, please send your github pull requests as patches to the mailing list for discussion. I have a few comments on them before I can apply. Personal Note: Below is the script I

Re: [PATCH 1/2] notmuch-deliver: Retry with readwrite if splice() fails

2011-11-06 Thread Ali Polatel
Hey, David Thanks for resending the patches! On Sun, Nov 06, 2011 at 06:34:27AM +0100, David Riebenbauer wrote: notmuch-deliver should not just fail, when splice() doesn't work. Fall back to the readwrite method even if NOTMUCH_DELIVER_NO_SPLICE is not set. This is a trivial change but I'm

Re: [PATCH 0/3] notmuch-deliver: wait for database to become unlocked and test

2011-11-06 Thread Ali Polatel
On Sun, Nov 06, 2011 at 12:23:01PM +0100, David Riebenbauer wrote: Hi, I noticed that mail would bounce in my setup, if the xapian database was locked while notmuch-deliver tried to run. I recall having this problem sometime ago... My solution was to make it wait for some time adn retry. A

Re: [PATCH] ruby: make sure the database is closed

2012-04-23 Thread Ali Polatel
2012/4/23 Felipe Contreras felipe.contre...@gmail.com: If the Ruby code does not manually close the database, we need to make sure it's closed when garbage collected. In Ruby, users are not _required_ to close, the garbage collector should take care of that. Signed-off-by: Felipe Contreras

Re: [PATCH] ruby: make sure the database is closed

2012-04-23 Thread Ali Polatel
2012/4/23 Felipe Contreras felipe.contre...@gmail.com: On Mon, Apr 23, 2012 at 5:04 PM, Ali Polatel a...@exherbo.org wrote: I'd rather not do this. Please read: http://comments.gmane.org/gmane.comp.lang.ruby.general/320324 OK, I've read this.. So? You are one step close to what I thought

Re: [PATCH] ruby: make sure the database is closed

2012-04-23 Thread Ali Polatel
2012/4/24 Felipe Contreras felipe.contre...@gmail.com: On Mon, Apr 23, 2012 at 11:43 PM, Ali Polatel a...@exherbo.org wrote: 2012/4/23 Felipe Contreras felipe.contre...@gmail.com: On Mon, Apr 23, 2012 at 5:04 PM, Ali Polatel a...@exherbo.org wrote: I'd rather not do this. Please read: http

Re: [PATCH] ruby: make sure the database is closed

2012-04-25 Thread Ali Polatel
2012/4/24 Felipe Contreras felipe.contre...@gmail.com: On Tue, Apr 24, 2012 at 4:15 AM, Austin Clements amdra...@mit.edu wrote: Quoth Felipe Contreras on Apr 24 at  3:45 am: On Tue, Apr 24, 2012 at 2:46 AM, Ali Polatel a...@exherbo.org wrote: 2012/4/24 Felipe Contreras felipe.contre

[PATCH 0/4] ruby: quick update before the freeze!

2012-05-07 Thread Ali Polatel
any quick errors. Otherwise, please commit these before the freeze and make rubyists happy. Ali Polatel (4): ruby: Add wrapper for notmuch_query_count_messages ruby: Add wrapper for notmuch_query_add_tag_exclude ruby: Add workarounds to use in-tree build not the installed one ruby: Add

[PATCH 1/4] ruby: Add wrapper for notmuch_query_count_messages

2012-05-07 Thread Ali Polatel
/bindings/ruby/init.c index 4405f19..7ad0ecf 100644 --- a/bindings/ruby/init.c +++ b/bindings/ruby/init.c @@ -1,6 +1,6 @@ /* The Ruby interface to the notmuch mail library * - * Copyright © 2010, 2011 Ali Polatel + * Copyright © 2010, 2011, 2012 Ali Polatel * * This program is free software

[PATCH 2/4] ruby: Add wrapper for notmuch_query_add_tag_exclude

2012-05-07 Thread Ali Polatel
--- bindings/ruby/defs.h |3 +++ bindings/ruby/init.c |1 + bindings/ruby/query.c | 18 ++ 3 files changed, 22 insertions(+) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 25222a6..a41cf10 100644 --- a/bindings/ruby/defs.h +++ b/bindings/ruby/defs.h @@

[PATCH 3/4] ruby: Add workarounds to use in-tree build not the installed one

2012-05-07 Thread Ali Polatel
/defs.h b/bindings/ruby/defs.h index a41cf10..6fe5787 100644 --- a/bindings/ruby/defs.h +++ b/bindings/ruby/defs.h @@ -1,6 +1,6 @@ /* The Ruby interface to the notmuch mail library * - * Copyright © 2010, 2011 Ali Polatel + * Copyright © 2010, 2011, 2012 Ali Polatel * * This program is free

[PATCH 4/4] ruby: Add wrapper for notmuch_query_set_omit_excluded()

2012-05-07 Thread Ali Polatel
--- bindings/ruby/defs.h |3 +++ bindings/ruby/init.c |7 +++ bindings/ruby/query.c | 18 ++ 3 files changed, 28 insertions(+) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 6fe5787..85d8205 100644 --- a/bindings/ruby/defs.h +++

Re: [PATCH v2] ruby: extern linkage portability improvement

2012-06-24 Thread Ali Polatel
symbols. This is reimplementation of Charlie Allom's patch: id:1336481467-66356-1-git-send-email-char...@mediasp.com, written originally by Ali Polatel. This version has more accurate commit message. ---  bindings/ruby/defs.h |   46 +++---  bindings

Re: [PATCH 04/18] insert: copy stdin to Maildir tmp file

2012-11-26 Thread Ali Polatel
On Wed, Jul 25, 2012 at 11:42:33PM +1000, Peter Wang wrote: Read the new message from standard input into the Maildir tmp file. --- notmuch-insert.c | 51 +-- 1 files changed, 49 insertions(+), 2 deletions(-) diff --git a/notmuch-insert.c

Re: [PATCH 6/6] ruby: Add bindings for notmuch_thread_get_messages

2012-11-26 Thread Ali Polatel
LGTM. Thanks for showing love to the ruby bindings as I was away. On Sat, Nov 24, 2012 at 11:57:07PM -0500, Austin Clements wrote: --- bindings/ruby/defs.h |3 +++ bindings/ruby/init.c |1 + bindings/ruby/thread.c | 20 3 files changed, 24 insertions(+) diff

Re: [PATCH v2] debian: package ruby bindings

2013-05-16 Thread Ali Polatel
2013/5/16 David Bremner brem...@debian.org: Felipe Contreras felipe.contre...@gmail.com writes: Yes. Do you have an old version of notmuch installed? Yes I do. Hmm. It still seems like a bug to me; shouldn't the include paths be ordered to find the right include files first? d Well I

Re: [PATCH 2/2] ruby: fix missing symbol UINT2FIX()

2013-05-21 Thread Ali Polatel
2013/05/21 Tomi Ollila tomi.oll...@iki.fi: On Mon, May 20 2013, Felipe Contreras felipe.contre...@gmail.com wrote: It has never existed in Ruby (maybe JRuby). Fortunately the symbols are loaded lazily, so nobody would notice unless they try 'query::count_messages'. Signed-off-by: Felipe

Re: maintenance of notmuch ruby bindings

2014-05-15 Thread Ali Polatel
2014-05-15 0:59 GMT+03:00 Wael Nasreddine wael.nasredd...@gmail.com: David Bremner da...@tethera.net writes: Dear Ali; Hello David, Looking at the commit history, I noticed you haven't worked very much on the notmuch ruby bindings in the last couple years. That could be because notmuch

[notmuch] Bug with commit 2e96464f9705be4ec772280cad71a6c9d5831e6f

2010-01-12 Thread Ali Polatel
lip at harikalardiyari> notmuch search from:alip at exherbo.org 3077 alip at harikalardiyari> > > I will try to investigate a bit more. > > > Matthieu -- Regards, Ali Polatel -- next part -- A non-text attachment was scrubbed... Name: not available Type: appl

[notmuch] Bug with commit 2e96464f9705be4ec772280cad71a6c9d5831e6f

2010-01-13 Thread Ali Polatel
Ali Polatel yazm??: > racin at free.fr yazm??: > > Hello, > > > > I just updated notmuch and now notmuch new cannot update my mail anymore... > > It tells me that there are > > 700 files found, but tells that there's no new mail. > > > > I did a gi

[notmuch] [RFC/PATCH] Add search-files command

2010-01-13 Thread Ali Polatel
ic License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see http://www.gnu.org/licenses/ . + * + * Author: Ali Polatel + */ + +#include "notmuch-client.h" + +static void +do_search_files (no

[notmuch] [RFC/PATCH] Add search-files command

2010-01-13 Thread Ali Polatel
Fernando Carrijo yazm??: > Hi Ali, Hey Fernando, > On Wed, 13 Jan 2010 12:24:22 +0200, Ali Polatel wrote: > > diff --git a/notmuch-search-files.c b/notmuch-search-files.c > > new file mode 100644 > > index 000..b48783a > > --- /dev/null > > +++ b/notmu

[notmuch] [RFC/PATCH v2] Add search-files command

2010-01-13 Thread Ali Polatel
c new file mode 100644 index 000..7b6d14d --- /dev/null +++ b/notmuch-search-files.c @@ -0,0 +1,109 @@ +/* notmuch - Not much of an email program, (just index and search) + * + * Copyright ?? 2010 Ali Polatel + * + * This program is free software: you can redistribute it and/or modify +

[notmuch] [PATCH] Import CODING_STYLE from cairo

2010-01-13 Thread Ali Polatel
A good way to let new contributors know how to contribute :) --- CODING_STYLE | 291 ++ 1 files changed, 291 insertions(+), 0 deletions(-) create mode 100644 CODING_STYLE diff --git a/CODING_STYLE b/CODING_STYLE new file mode 100644 index

[notmuch] [RFC/PATCH v2] Add search-files command

2010-01-14 Thread Ali Polatel
Jameson Rollins yazm??: > On Wed, Jan 13, 2010 at 03:17:41PM +0200, Ali Polatel wrote: > > This command can be used to integrate notmuch with other MUAs as a > > searching client. The idea is simple, a simple script could get > > search-terms as argument and create a "

[notmuch] Thoughts on notmuch and Lua

2010-01-14 Thread Ali Polatel
on headers etc. Why Lua? Lua has many advantages over other scripting languages when it comes to integration with a C program. It has a very clean and easy C API, the overhead of running Lua scripts is not noticable among other things. -- Regards, Ali Polatel -- next part -

[notmuch] Thoughts on notmuch and Lua

2010-01-15 Thread Ali Polatel
options and is practically slower than having Lua, or another scripting language, support. In my humble opinion the former is just a hack while the latter is the proper way to do it. P.S.: As I stated in the beginning you could have elaborated what you meant by script support and I'm just commenting on

[notmuch] Thoughts on notmuch and Lua

2010-01-16 Thread Ali Polatel
Carl Worth yazm??: > On Fri, 15 Jan 2010 23:09:34 +0200, Ali Polatel wrote: > > Carl Worth yazm??: > > > What do you think, Ali? Would an approach like that satisfy the things > > > you had in mind for hooks? > > > > It might, here are some thoug

Notmuch Ruby bindings

2010-05-22 Thread Ali Polatel
hard to make Ruby's GC play nice with notmuch's talloc based memory allocation but I can't be sure if it's bug-free. I haven't written any examples yet but the API documentation should be clear enough for one to understand and dive in. As usual, any comments, patches welcome. -- Regards, Ali

[ANN] notmuch-deliver

2010-05-26 Thread Ali Polatel
/notmuch-deliver.git Readme: http://github.com/alip/notmuch-deliver/blob/master/README.mkd -- Regards, Ali Polatel -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available URL: <h

[GIT PULL] Ruby bindings

2010-06-06 Thread Ali Polatel
minor style issues in show_part_content function. (2010-06-05 08:47:13 -0700) are available in the git repository at: git://github.com/alip/notmuch.git ruby Ali Polatel (6): Initial ruby bindings ruby: fix documentation of DB.upgrade! ruby: First attempt at fixing gc for ruby

notmuch-haskell

2010-10-02 Thread Ali Polatel
way, I'd really be more than happy to give you push access to these repositories. ?: http://github.com/alip/hs-notmuch ?: http://github.com/alip/qoropa > Bart Massey > bart at cs.pdx.edu > -- Regards, Ali Polatel -- next part -- A non-text attachm

notmuch-haskell

2010-10-10 Thread Ali Polatel
rate in any way that > seems useful to you, time permitting. That's great news! Let's see what the next weeks bring. :) > Thanks much for the note and the work! Feel free to forward this > message to the list. Added notmuch at notmuchmail.org to Cc. > Bart Mass > bart at cs.

[ANN] notmuch-deliver

2010-11-09 Thread Ali Polatel
On Mon, 08 Nov 2010 09:50:46 -0800, Carl Worth wrote: > On Wed, 26 May 2010 17:01:34 +0300, Ali Polatel wrote: > > notmuch-deliver is a maildir delivery tool for notmuch mail indexer. It > > reads from standard input, delivers the mail to the specified maildir > > and a

[PATCH 0/4] Update Ruby bindings

2011-01-10 Thread Ali Polatel
Hello all, This patchset updates Ruby bindings to cover all the recent functionality of the notmuch library. Ali Polatel (4): ruby: Add wrappers for query_get_s{ort,tring} ruby: Add wrappers for maildir sync. interface ruby: Add wrapper for message_get_filenames ruby: Add generated files

[PATCH 1/4] ruby: Add wrappers for query_get_s{ort,tring}

2011-01-10 Thread Ali Polatel
New wrappers: notmuch_query_get_sort(): QUERY.sort notmuch_query_get_query_string(): QUERY.to_s --- bindings/ruby/defs.h |6 ++ bindings/ruby/init.c |2 ++ bindings/ruby/query.c | 30 ++ 3 files changed, 38 insertions(+), 0 deletions(-) diff --git

[PATCH 4/4] ruby: Add generated files to gitignore

2011-01-10 Thread Ali Polatel
--- .gitignore |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 217440d..9786d4d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ libnotmuch.so* .*.swp *.elc releases + +bindings/ruby/mkmf.log +bindings/ruby/notmuch.so

[PATCH 2/4] ruby: Add wrappers for maildir sync. interface

2011-01-10 Thread Ali Polatel
New wrappers: notmuch_message_maildir_flags_to_tags(): MESSAGE.maildir_flags_to_tags notmuch_message_tags_to_maildir_flags(): MESSAGE.tags_to_maildir_flags --- bindings/ruby/defs.h|6 ++ bindings/ruby/init.c|2 ++ bindings/ruby/message.c | 38

[PATCH 3/4] ruby: Add wrapper for message_get_filenames

2011-01-10 Thread Ali Polatel
--- bindings/ruby/defs.h|3 +++ bindings/ruby/init.c|1 + bindings/ruby/message.c | 18 ++ 3 files changed, 22 insertions(+), 0 deletions(-) diff --git a/bindings/ruby/defs.h b/bindings/ruby/defs.h index 1f52988..f00afef 100644 --- a/bindings/ruby/defs.h +++

[PATCH 4/4] ruby: Add generated files to gitignore

2011-02-03 Thread Ali Polatel
On Mon, 31 Jan 2011 23:48:57 +0100, Thomas Schwinge wrote: > Hallo! > > On Mon, 10 Jan 2011 16:39:28 +0200, Ali Polatel wrote: > > --- a/.gitignore > > +++ b/.gitignore > > @@ -13,3 +13,7 @@ libnotmuch.so* > > .*.swp > > *.elc > > releases &g

Concerns regarding some library functions

2011-09-28 Thread Ali Polatel
On Tue, 27 Sep 2011 18:46:22 -0400, Austin Clements wrote: > Quoth David Bremner on Sep 27 at 1:59 pm: > > On Tue, 27 Sep 2011 16:25:58 +0300, Ali Polatel > > wrote: > > > > > The problem with their design is NULL return may both mean an error > > > con

Concerns regarding some library functions

2011-09-30 Thread Ali Polatel
Austin Clements yazm??: >Quoth Ali Polatel on Sep 28 at 10:53 am: >> On Tue, 27 Sep 2011 18:46:22 -0400, Austin Clements >> wrote: >> > Quoth David Bremner on Sep 27 at 1:59 pm: >> > > On Tue, 27 Sep 2011 16:25:58 +0300, Ali Polatel >> > > wrot

[PATCH] lib: make find_message{,by_filename) report errors

2011-10-01 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> Looks like the patch did not make it correctly the first time. Resending using git-send-email? You may also find the commit in my notmuch repository: git://github.com/alip/notmuch.git branch: find_message Ali Polatel (1): lib: make find_m

[RFC/PATCH] notmuch link

2011-10-01 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> Hello, I have been working on a new notmuch command namely 'link'. This command aims to help integrating notmuch with different mail agents. Basically it (sym)links messages matching the given search terms to the specified target maildir. You m

[RFC/PATCH] link: Add new command

2011-10-01 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> 'link' is a new command to create links to specified target maildirs. This is especially useful for integration with other mail agents. --- Makefile.local |2 + maildir.c| 262 + maildir.h

[PATCH v1 1/1] lib: make find_message{, by_filename) report errors

2011-10-04 Thread Ali Polatel
patches will leave the state of the tree broken between the two patches which is bad for git-bisect. In addition, considering the small size and compactness of the patch, I don't think it's worth the effort. >Quoth Ali Polatel on Oct 03 at 7:49 pm: >> Previously, the functions no

[PATCH v2 0/2] Better error handling

2011-10-04 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> New set of patches addressing the issues in the mail "id:20111003174308.GD17905 at mit.edu" Ali Polatel (2): lib: destroy message object after message removal lib: make find_message{,by_filename) report errors lib/data

[PATCH v2 2/2] lib: make find_message{,by_filename) report errors

2011-10-04 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> Previously, the functions notmuch_database_find_message() and notmuch_database_find_message_by_filename() functions did not properly report error condition to the library user. For more information, read the thread on the notmuch mailing list starting w

[PATCH v2 1/2] lib: destroy message object after message removal

2011-10-04 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal. --- lib/database.cc |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 9

[PATCH v2 0/2] Better error handling

2011-10-04 Thread Ali Polatel
Ali Polatel yazm??: >From: Ali Polatel > >New set of patches addressing the issues in the mail >"id:20111003174308.GD17905 at mit.edu" You may also find the commits in my notmuch repository: git://github.com/alip/notmuch.git branch: find_message-v2 >Ali Polatel (2)

[RFC/PATCH] notmuch link

2011-10-04 Thread Ali Polatel
Ali Polatel yazm??: >From: Ali Polatel > >Hello, > >I have been working on a new notmuch command namely 'link'. This command >aims to help integrating notmuch with different mail agents. Basically >it (sym)links messages matching the given search terms to the specified >

[PATCH] lib: make find_message{,by_filename) report errors

2011-10-04 Thread Ali Polatel
David Bremner yazm??: >On Sat, 1 Oct 2011 11:12:23 +0300, Ali Polatel wrote: >> From: Ali Polatel >> >> Looks like the patch did not make it correctly the first time. >> Resending using git-send-email? >> >> You may also find the commit in my notmu

[PATCH v3 0/2] Better error handling

2011-10-04 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> New set of patches addressing the issues in the mail "id:8739f9muhp.fsf at zancas.localnet" You may also find the commits in my notmuch repository: git://github.com/alip/notmuch.git branch: find_message-v3 Ali Polatel (2): lib: destroy mess

[PATCH v3 1/2] lib: destroy message object after message removal

2011-10-04 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal. --- lib/database.cc |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 9

[PATCH v3 2/2] lib: make find_message{,by_filename) report errors

2011-10-04 Thread Ali Polatel
From: Ali Polatel <a...@exherbo.org> Previously, the functions notmuch_database_find_message() and notmuch_database_find_message_by_filename() functions did not properly report error condition to the library user. For more information, read the thread on the notmuch mailing list starting w

[PATCH v1 0/1] lib: make find_message{,by_filename) report errors

2011-10-03 Thread Ali Polatel
Ali Polatel (1): lib: make find_message{,by_filename) report errors lib/database.cc | 90 ++-- lib/message.cc|6 ++-- lib/notmuch.h | 61 +-- notmuch-new.c |4 ++- notmuch-restore.c | 11

[PATCH v1 1/1] lib: make find_message{,by_filename) report errors

2011-10-03 Thread Ali Polatel
Previously, the functions notmuch_database_find_message() and notmuch_database_find_message_by_filename() functions did not properly report error condition to the library user. For more information, read the thread on the notmuch mailing list starting with my mail "id:871uv2unfd.fsf at gmail.com"

[python] set rpath in setup.cfg

2011-10-12 Thread Ali Polatel
On Wed, Oct 12, 2011 at 04:55:30PM +0200, dtk wrote: > >Hey guys, > >I installed notmuch locally (~/.local) and now the python bindings fail to >find the .so. > >Anyone happens to know how to set the rpath in the setup.cfg? Putting it >in the [build] section doesn't work: > >~~~snip~~~ >$ python

set test prereqs (Emacs, GDB, GPG) v4

2011-11-01 Thread Ali Polatel
On Tue, Nov 01, 2011 at 08:49:10PM +0100, Pieter Praet wrote: >Rebased to current master. > >Previous version: > id:"1307016220-17509-1-git-send-email-pieter at praet.org" > >Discussion: > id:"1317660447-27520-1-git-send-email-schnouki at schnouki.net" > Thanks for the nice work! I want to

notmuch-deliver under contrib/

2011-11-05 Thread Ali Polatel
Hello, I have just moved the notmuch-deliver repository to main notmuch repository under contrib/notmuch-deliver/. David, please send your github pull requests as patches to the mailing list for discussion. I have a few comments on them before I can apply. Personal Note: Below is the script I

[PATCH 1/2] notmuch-deliver: Retry with readwrite if splice() fails

2011-11-06 Thread Ali Polatel
Hey, David Thanks for resending the patches! On Sun, Nov 06, 2011 at 06:34:27AM +0100, David Riebenbauer wrote: >notmuch-deliver should not just fail, when splice() doesn't work. Fall >back to the readwrite method even if NOTMUCH_DELIVER_NO_SPLICE is not >set. This is a trivial change but I'm

maintenance of notmuch ruby bindings

2014-05-15 Thread Ali Polatel
2014-05-15 0:59 GMT+03:00 Wael Nasreddine : > David Bremner writes: > >> Dear Ali; Hello David, >> Looking at the commit history, I noticed you haven't worked very much on >> the notmuch ruby bindings in the last couple years. That could be >> because notmuch needs to be done, but if you've

[PATCH 04/18] insert: copy stdin to Maildir tmp file

2012-11-26 Thread Ali Polatel
On Wed, Jul 25, 2012 at 11:42:33PM +1000, Peter Wang wrote: >Read the new message from standard input into the Maildir tmp file. >--- > notmuch-insert.c | 51 +-- > 1 files changed, 49 insertions(+), 2 deletions(-) > >diff --git a/notmuch-insert.c

[PATCH 6/6] ruby: Add bindings for notmuch_thread_get_messages

2012-11-26 Thread Ali Polatel
LGTM. Thanks for showing love to the ruby bindings as I was away. On Sat, Nov 24, 2012 at 11:57:07PM -0500, Austin Clements wrote: >--- > bindings/ruby/defs.h |3 +++ > bindings/ruby/init.c |1 + > bindings/ruby/thread.c | 20 > 3 files changed, 24 insertions(+) >

[PATCH v2] debian: package ruby bindings

2013-05-16 Thread Ali Polatel
2013/5/16 David Bremner : > Felipe Contreras writes: >> >> Yes. Do you have an old version of notmuch installed? >> > > Yes I do. Hmm. It still seems like a bug to me; shouldn't the include > paths be ordered to find the right include files first? > > d Well I must accept I haven't spent much

  1   2   >