emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org support for the notmuch mail client
@ 2010-11-28 16:26 Matthieu Lemerre
  2010-12-05 17:19 ` Matthieu Lemerre
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Matthieu Lemerre @ 2010-11-28 16:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]


Hello, org-mode!

The attached file implements links to mail collections and "searchs" to
the notmuch mail client. A "search" is a query to be performed by
notmuch; it is the equivalent to folders in other mail
clients. Similarly, mails are refered to by a query, so both a link can
refer to several mails.

I had read on this list
(http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28411.html) that
there already was an implementation of links to notmuch, but it could
not be implemented because of paperwork problems. I have implemented
this because I got tired of waiting :)

I'm new to hacking org-mode, and the implementation might not be
perfect. I would be happy to receive comments. I already have one
question: why is it needed to url-encode the links in org mode? For
instance, I would like to be able to hand-write links like this:

[[notmuch-search:to:xxx and not from:yyyy]]

But it only works if I org-link-encode/org-link-decode the link (else,
the and not .. is completely skipped from the query). Similarly, if I do

(org-open-link-from-string
"notmuch:id:\"7f39qo4aut.fsf@aeuaue.free.fr\""))

The last " gets removed in the argument I receive in org-notmuch-open.

This is a pity because hand-writing url-encoded links is not
user-friendly.


PS: could you please Cc me because I am not subscribed to the list.

Matthieu


[-- Attachment #2: org-notmuch.el --]
[-- Type: application/emacs-lisp, Size: 3727 bytes --]

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Org support for the notmuch mail client
  2010-11-28 16:26 Matthieu Lemerre
@ 2010-12-05 17:19 ` Matthieu Lemerre
  2011-02-03 14:38 ` Bastien
  2011-02-12 12:24 ` Bastien
  2 siblings, 0 replies; 7+ messages in thread
From: Matthieu Lemerre @ 2010-12-05 17:19 UTC (permalink / raw)
  To: emacs-orgmode


I should have mentioned that the reason why I wrote it is that I would
very much like to have it included in org-mode, and I'm OK to sign the
copyright papers if necessary.

Regards,
Matthieu


On Sun, 28 Nov 2010 17:26:29 +0100, Matthieu Lemerre <racin@free.fr> wrote:
> 
> Hello, org-mode!
> 
> The attached file implements links to mail collections and "searchs" to
> the notmuch mail client. A "search" is a query to be performed by
> notmuch; it is the equivalent to folders in other mail
> clients. Similarly, mails are refered to by a query, so both a link can
> refer to several mails.
> 
> I had read on this list
> (http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28411.html) that
> there already was an implementation of links to notmuch, but it could
> not be implemented because of paperwork problems. I have implemented
> this because I got tired of waiting :)
> 
> I'm new to hacking org-mode, and the implementation might not be
> perfect. I would be happy to receive comments. I already have one
> question: why is it needed to url-encode the links in org mode? For
> instance, I would like to be able to hand-write links like this:
> 
> [[notmuch-search:to:xxx and not from:yyyy]]
> 
> But it only works if I org-link-encode/org-link-decode the link (else,
> the and not .. is completely skipped from the query). Similarly, if I do
> 
> (org-open-link-from-string
> "notmuch:id:\"7f39qo4aut.fsf@aeuaue.free.fr\""))
> 
> The last " gets removed in the argument I receive in org-notmuch-open.
> 
> This is a pity because hand-writing url-encoded links is not
> user-friendly.
> 
> 
> PS: could you please Cc me because I am not subscribed to the list.
> 
> Matthieu
> 
Attachment: org-notmuch.el (application/emacs-lisp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Org support for the notmuch mail client
  2010-11-28 16:26 Matthieu Lemerre
  2010-12-05 17:19 ` Matthieu Lemerre
@ 2011-02-03 14:38 ` Bastien
  2011-02-12 12:24 ` Bastien
  2 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2011-02-03 14:38 UTC (permalink / raw)
  To: Matthieu Lemerre; +Cc: emacs-orgmode

Hi Matthieu,

Matthieu Lemerre <racin@free.fr> writes:

> The attached file implements links to mail collections and "searchs" to
> the notmuch mail client. A "search" is a query to be performed by
> notmuch; it is the equivalent to folders in other mail
> clients. Similarly, mails are refered to by a query, so both a link can
> refer to several mails.

Looks like a nice addition.

I'm not using notmuch myself and I would welcome feedback from notmuch
Org users.  I would happily add it to org-mode/contrib/lisp if this is
proves useful to several people around.

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Org support for the notmuch mail client
  2010-11-28 16:26 Matthieu Lemerre
  2010-12-05 17:19 ` Matthieu Lemerre
  2011-02-03 14:38 ` Bastien
@ 2011-02-12 12:24 ` Bastien
  2011-02-12 15:54   ` Matthieu Lemerre
  2 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2011-02-12 12:24 UTC (permalink / raw)
  To: Matthieu Lemerre; +Cc: emacs-orgmode

Hi Matthieu,

> The attached file implements links to mail collections and "searchs" to
> the notmuch mail client. A "search" is a query to be performed by
> notmuch; it is the equivalent to folders in other mail
> clients. Similarly, mails are refered to by a query, so both a link can
> refer to several mails.

I'm not using notmuch, but people reported it as useful -- I'm willing
to add org-notmuch.el to the contrib/lisp/ folder in org-mode.git.

Would that be okay for you?

Thanks!

PS: just add a "This file is not part of GNU Emacs" somewhere in the
comments.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Org support for the notmuch mail client
  2011-02-12 12:24 ` Bastien
@ 2011-02-12 15:54   ` Matthieu Lemerre
  2011-02-12 15:55     ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Matthieu Lemerre @ 2011-02-12 15:54 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]


Hi Bastien,

> I'm not using notmuch, but people reported it as useful -- I'm willing
> to add org-notmuch.el to the contrib/lisp/ folder in org-mode.git.

[...]

> PS: just add a "This file is not part of GNU Emacs" somewhere in the
> comments.

Great! Here it is.


[-- Attachment #2: org-notmuch.el --]
[-- Type: application/emacs-lisp, Size: 3769 bytes --]

[-- Attachment #3: Type: text/plain, Size: 16 bytes --]


Best,
Matthieu

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Org support for the notmuch mail client
  2011-02-12 15:54   ` Matthieu Lemerre
@ 2011-02-12 15:55     ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2011-02-12 15:55 UTC (permalink / raw)
  To: Matthieu Lemerre; +Cc: emacs-orgmode

Hi Matthieu,

Matthieu Lemerre <racin@free.fr> writes:

> Great! Here it is.

It's now in org-mode.git, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Org support for the notmuch mail client
@ 2011-02-13 19:47 Darren McGuicken
  0 siblings, 0 replies; 7+ messages in thread
From: Darren McGuicken @ 2011-02-13 19:47 UTC (permalink / raw)
  To: emacs-orgmode, bastien.guerry, racin


[-- Attachment #1.1: Type: text/plain, Size: 529 bytes --]

>> The attached file implements links to mail collections and "searchs"
>> to the notmuch mail client.
>
> I'm not using notmuch myself and I would welcome feedback from notmuch
> Org users.  I would happily add it to org-mode/contrib/lisp if this is
> proves useful to several people around.

I'm now using this along with notmuch and can confirm that it seems to
work well in all my old gnus use-cases (primarily context-aware
note-taking using capture) for both searches and individual messages.

+1 for inclusion by default.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-13 19:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13 19:47 Org support for the notmuch mail client Darren McGuicken
  -- strict thread matches above, loose matches on Subject: below --
2010-11-28 16:26 Matthieu Lemerre
2010-12-05 17:19 ` Matthieu Lemerre
2011-02-03 14:38 ` Bastien
2011-02-12 12:24 ` Bastien
2011-02-12 15:54   ` Matthieu Lemerre
2011-02-12 15:55     ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).