[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Dmitry Kurochkin
On Mon, 12 Dec 2011 12:15:44 +0200, Tomi Ollila wrote: > On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements > wrote: > > > > So here's another idea, prefaced with a rant. > > > > It's bothered me for a long time that notmuch-emacs didn't just know > > by default how to check for new mail. Wh

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Tomi Ollila
On Mon, 12 Dec 2011 14:21:53 +0400, Dmitry Kurochkin wrote: > On Mon, 12 Dec 2011 12:15:44 +0200, Tomi Ollila wrote: > > On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements > > wrote: > > > > > > So here's another idea, prefaced with a rant. > > > > > > It's bothered me for a long time that n

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Tomi Ollila
On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements wrote: > > So here's another idea, prefaced with a rant. > > It's bothered me for a long time that notmuch-emacs didn't just know > by default how to check for new mail. What MUA doesn't know how to > check for new mail? Why does a new user o

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Austin Clements
Quoth Dmitry Kurochkin on Dec 12 at 2:21 pm: > On Mon, 12 Dec 2011 12:15:44 +0200, Tomi Ollila wrote: > > On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements > > wrote: > > > > > > So here's another idea, prefaced with a rant. > > > > > > It's bothered me for a long time that notmuch-emacs di

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Austin Clements
Quoth Dmitry Kurochkin on Dec 12 at 2:21 pm: > On Mon, 12 Dec 2011 12:15:44 +0200, Tomi Ollila wrote: > > On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements > > wrote: > > > > > > So here's another idea, prefaced with a rant. > > > > > > It's bothered me for a long time that notmuch-emacs di

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Dmitry Kurochkin
On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements wrote: > Quoth Jani Nikula on Dec 12 at 1:10 am: > >On Dec 12, 2011 12:56 AM, "Austin Clements" <[1]amdragon at mit.edu> > > wrote: > >> > >> Quoth Dmitry Kurochkin on Dec 12 at ?2:00 am: > >> > Hi Jani. > >> > > >> > On

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Tomi Ollila
On Mon, 12 Dec 2011 14:21:53 +0400, Dmitry Kurochkin wrote: > On Mon, 12 Dec 2011 12:15:44 +0200, Tomi Ollila wrote: > > On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements > > wrote: > > > > > > So here's another idea, prefaced with a rant. > > > > > > It's bothered me for a long time that

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Dmitry Kurochkin
On Mon, 12 Dec 2011 00:19:36 +0200, Jani Nikula wrote: > > Hi Dmitry - > > On Mon, 12 Dec 2011 02:00:45 +0400, Dmitry Kurochkin gmail.com> wrote: > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > > Let notmuch-poll-script be a function as well as a string. Make default > > > value

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Dmitry Kurochkin
On Mon, 12 Dec 2011 12:15:44 +0200, Tomi Ollila wrote: > On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements wrote: > > > > So here's another idea, prefaced with a rant. > > > > It's bothered me for a long time that notmuch-emacs didn't just know > > by default how to check for new mail. What

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Tomi Ollila
On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements wrote: > > So here's another idea, prefaced with a rant. > > It's bothered me for a long time that notmuch-emacs didn't just know > by default how to check for new mail. What MUA doesn't know how to > check for new mail? Why does a new user o

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Dmitry Kurochkin
Hi Jani. On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > Let notmuch-poll-script be a function as well as a string. Make default > value nil instead of an empty string, but allow "" for backwards > compatibility. Add a notmuch poll function to call "notmuch new" using the > configured no

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Jani Nikula
On Dec 12, 2011 12:56 AM, "Austin Clements" wrote: > > Quoth Dmitry Kurochkin on Dec 12 at 2:00 am: > > Hi Jani. > > > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > > Let notmuch-poll-script be a function as well as a string. Make default > > > value nil instead of an empty string

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-12 Thread Jani Nikula
Hi Dmitry - On Mon, 12 Dec 2011 02:00:45 +0400, Dmitry Kurochkin wrote: > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > Let notmuch-poll-script be a function as well as a string. Make default > > value nil instead of an empty string, but allow "" for backwards > > compatibility. Ad

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Jani Nikula
Let notmuch-poll-script be a function as well as a string. Make default value nil instead of an empty string, but allow "" for backwards compatibility. Add a notmuch poll function to call "notmuch new" using the configured notmuch-command. This allows taking better advantage of the "notmuch new" h

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Austin Clements
Quoth Jani Nikula on Dec 12 at 1:10 am: >On Dec 12, 2011 12:56 AM, "Austin Clements" <[1]amdragon at mit.edu> wrote: >> >> Quoth Dmitry Kurochkin on Dec 12 at ?2:00 am: >> > Hi Jani. >> > >> > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula <[2]jani at nikula.org> >wrot

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Austin Clements
Quoth Dmitry Kurochkin on Dec 12 at 2:00 am: > Hi Jani. > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > Let notmuch-poll-script be a function as well as a string. Make default > > value nil instead of an empty string, but allow "" for backwards > > compatibility. Add a notmuch pol

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Dmitry Kurochkin
On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements wrote: > Quoth Jani Nikula on Dec 12 at 1:10 am: > >On Dec 12, 2011 12:56 AM, "Austin Clements" <[1]amdra...@mit.edu> wrote: > >> > >> Quoth Dmitry Kurochkin on Dec 12 at  2:00 am: > >> > Hi Jani. > >> > > >> > On Sun, 11

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Austin Clements
Quoth Jani Nikula on Dec 12 at 1:10 am: >On Dec 12, 2011 12:56 AM, "Austin Clements" <[1]amdra...@mit.edu> wrote: >> >> Quoth Dmitry Kurochkin on Dec 12 at  2:00 am: >> > Hi Jani. >> > >> > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula <[2]j...@nikula.org> >wrote: >

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Jani Nikula
On Dec 12, 2011 12:56 AM, "Austin Clements" wrote: > > Quoth Dmitry Kurochkin on Dec 12 at 2:00 am: > > Hi Jani. > > > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > > Let notmuch-poll-script be a function as well as a string. Make default > > > value nil instead of an empty string

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Austin Clements
Quoth Dmitry Kurochkin on Dec 12 at 2:00 am: > Hi Jani. > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > Let notmuch-poll-script be a function as well as a string. Make default > > value nil instead of an empty string, but allow "" for backwards > > compatibility. Add a notmuch pol

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Dmitry Kurochkin
On Mon, 12 Dec 2011 00:19:36 +0200, Jani Nikula wrote: > > Hi Dmitry - > > On Mon, 12 Dec 2011 02:00:45 +0400, Dmitry Kurochkin > wrote: > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > > Let notmuch-poll-script be a function as well as a string. Make default > > > value nil ins

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Jani Nikula
Hi Dmitry - On Mon, 12 Dec 2011 02:00:45 +0400, Dmitry Kurochkin wrote: > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > Let notmuch-poll-script be a function as well as a string. Make default > > value nil instead of an empty string, but allow "" for backwards > > compatibility. A

Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Dmitry Kurochkin
Hi Jani. On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > Let notmuch-poll-script be a function as well as a string. Make default > value nil instead of an empty string, but allow "" for backwards > compatibility. Add a notmuch poll function to call "notmuch new" using the > configured no

[PATCH] emacs: support "notmuch new" as a notmuch-poll-script

2011-12-11 Thread Jani Nikula
Let notmuch-poll-script be a function as well as a string. Make default value nil instead of an empty string, but allow "" for backwards compatibility. Add a notmuch poll function to call "notmuch new" using the configured notmuch-command. This allows taking better advantage of the "notmuch new" h