unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* How to get thread id in emacs ui?
@ 2013-02-18 13:21 Rainer M Krug
  2013-02-18 13:36 ` Suvayu Ali
  2013-02-18 14:03 ` David Bremner
  0 siblings, 2 replies; 9+ messages in thread
From: Rainer M Krug @ 2013-02-18 13:21 UTC (permalink / raw)
  To: notmuch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I am using notmuch in emacs, and I linkt from my notes in org mode to emails using the thread: id
or the message id. Is there a possibility to get these from within emacs, or do I have to go to
the cli from notmuch?

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRIiraAAoJENvXNx4PUvmCXsgIALT65uIVuERvoNgL8wjijLmG
uefH+kJZx9g4FCQvaj06gHm1W6jrkUMx7X9jjyryypvq31yAD0rDW1I4GwgQHhnW
6+VKgc7uudoge8nOgEc+Z1tkG7e/ZwrQ0F8ErP1AqSOUHm9pG7MetltzP80Z3Qe+
4LAFcTj7rsg0d2+t5v9jpOqcy08j4mingf99noQ0czk7trbUadEzcBDsUrNL35uX
z9V1M61mOfKhShRuk5XV/gv+f7F+rkVxqIqkA+m0MWYA19J45/yhcla9drFXeFd0
r1h9zY0clUupMxA31fCfvHqUMS4D941y+yPyPwGDTQdFPJuWeaKPLAJ+9v2JMaY=
=cjnz
-----END PGP SIGNATURE-----

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

* Re: How to get thread id in emacs ui?
  2013-02-18 13:21 How to get thread id in emacs ui? Rainer M Krug
@ 2013-02-18 13:36 ` Suvayu Ali
  2013-02-18 14:05   ` Rainer M Krug
  2013-02-18 14:03 ` David Bremner
  1 sibling, 1 reply; 9+ messages in thread
From: Suvayu Ali @ 2013-02-18 13:36 UTC (permalink / raw)
  To: notmuch

On Mon, Feb 18, 2013 at 02:21:30PM +0100, Rainer M Krug wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> I am using notmuch in emacs, and I linkt from my notes in org mode to emails using the thread: id
> or the message id. Is there a possibility to get these from within emacs, or do I have to go to
> the cli from notmuch?
> 

As far as I'm aware, org-notmuch does all that for you.  Do you need it
for something else?  You can always look at org-notmuch source.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

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

* Re: How to get thread id in emacs ui?
  2013-02-18 13:21 How to get thread id in emacs ui? Rainer M Krug
  2013-02-18 13:36 ` Suvayu Ali
@ 2013-02-18 14:03 ` David Bremner
  2013-02-18 14:09   ` Rainer M Krug
  1 sibling, 1 reply; 9+ messages in thread
From: David Bremner @ 2013-02-18 14:03 UTC (permalink / raw)
  To: Rainer, notmuch

Rainer M Krug <r.m.krug@gmail.com> writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> I am using notmuch in emacs, and I linkt from my notes in org mode to emails using the thread: id
> or the message id. Is there a possibility to get these from within emacs, or do I have to go to
> the cli from notmuch?
>

You want "c i"

From NEWS for 0.15

Support for stashing the thread id in show view

  Invoking `notmuch-show-stash-message-id` with a prefix argument
  stashes the (local and database specific) thread id of the current
  thread instead of the message id.

By the way, the library org-notmuch distributed with org-mode should
make it easy to link into notmuch.

Be aware that thread id's are not preserved across dump-restore cycles,
so it is safer to link to message-ids.

d

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

* Re: How to get thread id in emacs ui?
  2013-02-18 13:36 ` Suvayu Ali
@ 2013-02-18 14:05   ` Rainer M Krug
  2013-02-18 15:18     ` Suvayu Ali
  0 siblings, 1 reply; 9+ messages in thread
From: Rainer M Krug @ 2013-02-18 14:05 UTC (permalink / raw)
  To: notmuch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18/02/13 14:36, Suvayu Ali wrote:
> On Mon, Feb 18, 2013 at 02:21:30PM +0100, Rainer M Krug wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Hi
>> 
>> I am using notmuch in emacs, and I linkt from my notes in org mode to emails using the
>> thread: id or the message id. Is there a possibility to get these from within emacs, or do I
>> have to go to the cli from notmuch?
>> 
> 
> As far as I'm aware, org-notmuch does all that for you.

Actually, you might be right. But then it seems, I somehow haven't loaded org-notmuch.el properly
- - I guess I am miaaing something at this step.

But it also seems that org-notmuch-search-store-link stores the search string and not the thread
or message id?

Thanks,

Rainer


> Do you need it for something else?  You can always look at org-notmuch source.
> 
> Cheers,
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRIjU9AAoJENvXNx4PUvmCZh0H/iR+K4nfhRVg9XTw/Uupxz6z
XbArO14poJ8H4bcRjp1pGr7yuGUByKz26oLPGC9T79y4v9yF4hZVsXpNaU6w3CKe
wJO6g7ektebwwfY4bYbMihL8iUqp45jXxAtg/kvY7XnJkK8yWQdSTpvStOoNtrJA
29X/yTykThNO62aDDF9dgYhb5Y6jG3ONX4Zx1f2vOo7OePsLzvteC7muwPNNQmXl
dua4wAIqIrDWdAjX3L+zUw6aZ6EKa5Mzpv2MxCQwlayqnKXQpu1QhWnxMnk/QxzD
4IC4rneCI367jm2nGH+7+4SXRY+BfNyHpnn5f1BBuCTP+MubKh3Jr706znvfMCY=
=TeSY
-----END PGP SIGNATURE-----

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

* Re: How to get thread id in emacs ui?
  2013-02-18 14:03 ` David Bremner
@ 2013-02-18 14:09   ` Rainer M Krug
  2013-02-18 14:42     ` David Bremner
  0 siblings, 1 reply; 9+ messages in thread
From: Rainer M Krug @ 2013-02-18 14:09 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18/02/13 15:03, David Bremner wrote:
> Rainer M Krug <r.m.krug@gmail.com> writes:
> 
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Hi
>> 
>> I am using notmuch in emacs, and I linkt from my notes in org mode to emails using the
>> thread: id or the message id. Is there a possibility to get these from within emacs, or do I
>> have to go to the cli from notmuch?
>> 
> 
> You want "c i"
> 
> From NEWS for 0.15
> 
> Support for stashing the thread id in show view
> 
> Invoking `notmuch-show-stash-message-id` with a prefix argument stashes the (local and database
> specific) thread id of the current thread instead of the message id.
> 

Thanks - that is what I was looking for.


> By the way, the library org-notmuch distributed with org-mode should make it easy to link into
> notmuch.

Then I probably haven't loaded org-notmuch properly? What do I have to put into my .emacs file to
load it properly?

> 
> Be aware that thread id's are not preserved across dump-restore cycles, so it is safer to link
> to message-ids.

Thanks - important info - I'll use the message id then instead.

Cheers,

Rainer

> 
> d
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRIjYNAAoJENvXNx4PUvmCF7gH/R+yM55HxCao2pBk9jQ6E33I
cuFvf8uFNXrtD+SMLnrIbbZfLCcuj5tN77kZTbuHCUqP6tPeG7P3EB42Nsru8XbZ
JBVIVf2BdEXqAzxyq3hHEh6ikXZNmi7qHnjsZ7+Zco+nBfVLSVFx/GpzsaDTsQjs
R5QO/R7u3rQAU9i48GaGJtCQ0E7KBUzjnBpGUlb6owdJWg4KTtxmRwerBxIFvScM
7H23oS8ZnWwN5Yqf+f8RA+9yBjrhXGUBcLYQZW62Wm6btJOE1T57LkO3mmQ7xl6/
7+Iyv8DZkDX3F8b5wcIwOPmPAhoqx/jemkYwQHv+tC2cWQXbg1GzrlWxfrZGjz0=
=/SRR
-----END PGP SIGNATURE-----

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

* Re: How to get thread id in emacs ui?
  2013-02-18 14:09   ` Rainer M Krug
@ 2013-02-18 14:42     ` David Bremner
  2013-02-18 15:05       ` Rainer M Krug
  0 siblings, 1 reply; 9+ messages in thread
From: David Bremner @ 2013-02-18 14:42 UTC (permalink / raw)
  To: Rainer; +Cc: notmuch

Rainer M Krug <r.m.krug@gmail.com> writes:
>
>> By the way, the library org-notmuch distributed with org-mode should
>> make it easy to link into notmuch.
>
> Then I probably haven't loaded org-notmuch properly? What do I have to
> put into my .emacs file to load it properly?
>

I put what I know at 

  http://notmuchmail.org/emacstips/#index24h2

It's a bit Debian specific at the moment, but hopefully others can fill
in the details for other environments.

d

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

* Re: How to get thread id in emacs ui?
  2013-02-18 14:42     ` David Bremner
@ 2013-02-18 15:05       ` Rainer M Krug
  2013-02-18 15:23         ` Suvayu Ali
  0 siblings, 1 reply; 9+ messages in thread
From: Rainer M Krug @ 2013-02-18 15:05 UTC (permalink / raw)
  To: David Bremner, Rainer; +Cc: notmuch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 18/02/13 15:42, David Bremner wrote:
> Rainer M Krug <r.m.krug@gmail.com> writes:
>> 
>>> By the way, the library org-notmuch distributed with org-mode should make it easy to link
>>> into notmuch.
>> 
>> Then I probably haven't loaded org-notmuch properly? What do I have to put into my .emacs
>> file to load it properly?
>> 
> 
> I put what I know at
> 
> http://notmuchmail.org/emacstips/#index24h2

Thanks - got it working under Ubuntu. One thing: in my org from git, org-notmuch is in
.../org-mode/contrib/lisp and not .../lisp

Thanks a lot,

Rainer

> 
> It's a bit Debian specific at the moment, but hopefully others can fill in the details for
> other environments.
> 
> d
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRIkM2AAoJENvXNx4PUvmC/MEIAK+27SwTFMGG7HRpj+1FOMCd
DWVQpgXZQm8SIOCQuXVOwBog/RSzsAkkr0tSYIB5poaTuGV9kBr+95S6U8w29W03
KIHNxL9JU75a1M2k4Z9zNtKL12bKfyRMBjozV2ZEXeL36T9KzsqpfcIDkGDWw3vQ
hZFSm7jD/r38EHKjnxsBuda40i3/hHl1b1Vtg5NuByaT47BjZ/IL6CbOwrxrTMJJ
GgSK/5PbLCCpoPJh5KEbQpKw6OwMuxqjz/6spI8S95ZagDo6rqIxC4rS8Y/7qI2V
DT223JdL23fcNBfp6cQY0fYPEdXZ2jS4UYWfZwxn97GMhx9+wv581wUCsg4Vsl8=
=qJ8J
-----END PGP SIGNATURE-----

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

* Re: How to get thread id in emacs ui?
  2013-02-18 14:05   ` Rainer M Krug
@ 2013-02-18 15:18     ` Suvayu Ali
  0 siblings, 0 replies; 9+ messages in thread
From: Suvayu Ali @ 2013-02-18 15:18 UTC (permalink / raw)
  To: notmuch

Hello again Rainer,

On Mon, Feb 18, 2013 at 03:05:49PM +0100, Rainer M Krug wrote:
> On 18/02/13 14:36, Suvayu Ali wrote:
> > On Mon, Feb 18, 2013 at 02:21:30PM +0100, Rainer M Krug wrote:
> >> 
> >> I am using notmuch in emacs, and I linkt from my notes in org mode to emails using the
> >> thread: id or the message id. Is there a possibility to get these from within emacs, or do I
> >> have to go to the cli from notmuch?
> >> 
> > 
> > As far as I'm aware, org-notmuch does all that for you.
> 
> Actually, you might be right. But then it seems, I somehow haven't loaded org-notmuch.el properly
> - - I guess I am miaaing something at this step.
> 
> But it also seems that org-notmuch-search-store-link stores the search string and not the thread
> or message id?
> 

AFAIU, it does that when you call org-store-link in a search buffer.  If
you do that in the message buffer, it stores the message id.

From the search buffer:

[[notmuch-search:from:myfriend%2520is:inbox][Notmuch search: from:myfriend is:inbox]]

From the message buffer:

[[notmuch:id:C8BF5B7C-6F2E-4754-B27D-A828D894B7EA@gmail.com][Email from Myfriend]]

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

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

* Re: How to get thread id in emacs ui?
  2013-02-18 15:05       ` Rainer M Krug
@ 2013-02-18 15:23         ` Suvayu Ali
  0 siblings, 0 replies; 9+ messages in thread
From: Suvayu Ali @ 2013-02-18 15:23 UTC (permalink / raw)
  To: notmuch

On Mon, Feb 18, 2013 at 04:05:26PM +0100, Rainer M Krug wrote:
> On 18/02/13 15:42, David Bremner wrote:
> > Rainer M Krug <r.m.krug@gmail.com> writes:
> >> 
> >>> By the way, the library org-notmuch distributed with org-mode should make it easy to link
> >>> into notmuch.
> >> 
> >> Then I probably haven't loaded org-notmuch properly? What do I have to put into my .emacs
> >> file to load it properly?
> >> 
> > 
> > I put what I know at
> > 
> > http://notmuchmail.org/emacstips/#index24h2
> 
> Thanks - got it working under Ubuntu. One thing: in my org from git, org-notmuch is in
> .../org-mode/contrib/lisp and not .../lisp

My following comment is probably OT, but still ...

If you install org-mode from git following the instructions from the
Makefile, then you should be putting something like the following in
your local.mk.

  # Define if you want to include some (or all) files from contrib/lisp
  # just the filename please (no path prefix, no .el suffix), maybe with
  # globbing
  ORG_ADD_CONTRIB = org-notmuch

If you do that, then David's instructions are accurate.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

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

end of thread, other threads:[~2013-02-18 15:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-18 13:21 How to get thread id in emacs ui? Rainer M Krug
2013-02-18 13:36 ` Suvayu Ali
2013-02-18 14:05   ` Rainer M Krug
2013-02-18 15:18     ` Suvayu Ali
2013-02-18 14:03 ` David Bremner
2013-02-18 14:09   ` Rainer M Krug
2013-02-18 14:42     ` David Bremner
2013-02-18 15:05       ` Rainer M Krug
2013-02-18 15:23         ` Suvayu Ali

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

	https://yhetil.org/notmuch.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).