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

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

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

2013-05-21 Thread Ali Polatel
2013/05/21 Tomi Ollila : >On Mon, May 20 2013, Felipe Contreras 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 Contreras > >This patch could be

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

[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

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

[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 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 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] 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

[PATCH] ruby: extern linkage portability improvement

2012-05-15 Thread Ali Polatel
ediasp.com" >> >> combining information from other change made by Ali Polatel. >> --- >> >> Charlie: could you test whether this patch actually work ? :) >> >> Everyone: what do you think of the "hiding extern" macro trick ? > > This

[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 +++

[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 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 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 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 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 +++

[PATCH] ruby: make sure the database is closed

2012-04-26 Thread Ali Polatel
2012/4/24 Felipe Contreras : > On Tue, Apr 24, 2012 at 4:15 AM, Austin Clements wrote: >> Quoth Felipe Contreras on Apr 24 at ?3:45 am: >>> On Tue, Apr 24, 2012 at 2:46 AM, Ali Polatel wrote: >>> > 2012/4/24 Felipe Contreras : >>> >>> >>

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] ruby: make sure the database is closed

2012-04-24 Thread Ali Polatel
2012/4/24 Felipe Contreras : > On Mon, Apr 23, 2012 at 11:43 PM, Ali Polatel wrote: >> 2012/4/23 Felipe Contreras : >>> On Mon, Apr 23, 2012 at 5:04 PM, Ali Polatel wrote: >>> >>>> I'd rather not do this. >>>> Please read: http://comments.gmane

[PATCH] ruby: make sure the database is closed

2012-04-23 Thread Ali Polatel
2012/4/23 Felipe Contreras : > 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: 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

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

2011-11-07 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

[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 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

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

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

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

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

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

[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

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

[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 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 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] 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

[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 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)

[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 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

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

[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"

[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

[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

[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

[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

[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

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

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

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

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

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

[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

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

[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 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 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 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 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 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 +++

[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

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.

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

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

[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

[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

[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

[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

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

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

[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] 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

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

  1   2   >