Re: [O] gnus org and tags

2016-10-15 Thread Eric S Fraga
On Saturday, 15 Oct 2016 at 13:14, Uwe Brauer wrote:
 "Eric" == Eric S Fraga  writes:
>> Tag search etc. in org makes finding the notes relatively painless.  
>
> How do you search, starting where?

Typically, using the agenda tags search: C-c a m
and, if that fails, the more general search: C-c a s
where "C-c a" has been bound to org-agenda.

Less frequently, org-sparse-tree (C-c /) within a specific org file.

>> As a bonus, the "mt" template is to allow me to get to INBOX 0 by making
>> sure I don't leave emails lying around unread or ticked.  If they need
>> further processing, an appropriate TODO task is created which links back
>> to the email.  This task is scheduled for immediate action by default
>> but obviously easily changed during the capture, very often by
>> unscheduling but adding a deadline, for instance.
>
> For the imap backend?

Yes, sorry, very much for IMAP.  Probably possible with other backends
but I only use IMAP because of wanting to access my emails from various
devices.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.2.50.1, Org release_8.3.6-1184-g29830f



Re: [O] gnus org and tags

2016-10-15 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga  writes:

   > On Thursday, 13 Oct 2016 at 16:02, Nick Dokos wrote:
   > [...]

   >> I have a single notes.org file (not an agenda file), where I do exactly 
what
   >> Eric described and I have defined keys to get to it fast: no more "where 
did I

   > As do I.  I guess this is a key part of this use case: it must be easy
   > to find those notes.  My (abridged) capture template looks like this:

   > #+begin_src emacs-lisp
   >   (setq org-capture-templates
   > '(
   >   ("m" "Mail options")
   >   ("mt" "mailtodo"
   >entry (file+datetree "~/s/notes/tasks.org")
   >"* TODO %^{Task} : %:subject %^G\nSCHEDULED: %t\n- From :: 
%:from\n- Subject :: %:subject\n- Email :: %a\n\n%?" :kill-buffer t)
   >   ("mn" "mailnote"
   >entry (file+headline "~/s/notes/notes.org" "general notes and 
tasks")
   >"* %^{Title} : %:subject %^G\n- From :: %:from\n- Subject :: 
%:subject\n- Email :: %a\n\n%?\n\n%U")
   >   ))
   > #+end_src

Ok that is relatively cool.


   > Tag search etc. in org makes finding the notes relatively painless.  

How do you search, starting where?

   > As a bonus, the "mt" template is to allow me to get to INBOX 0 by making
   > sure I don't leave emails lying around unread or ticked.  If they need
   > further processing, an appropriate TODO task is created which links back
   > to the email.  This task is scheduled for immediate action by default
   > but obviously easily changed during the capture, very often by
   > unscheduling but adding a deadline, for instance.

For the imap backend?




Re: [O] gnus org and tags

2016-10-14 Thread Eric S Fraga
On Thursday, 13 Oct 2016 at 16:02, Nick Dokos wrote:

[...]

> I have a single notes.org file (not an agenda file), where I do exactly what
> Eric described and I have defined keys to get to it fast: no more "where did I

As do I.  I guess this is a key part of this use case: it must be easy
to find those notes.  My (abridged) capture template looks like this:

#+begin_src emacs-lisp
  (setq org-capture-templates
'(
  ("m" "Mail options")
  ("mt" "mailtodo"
   entry (file+datetree "~/s/notes/tasks.org")
   "* TODO %^{Task} : %:subject %^G\nSCHEDULED: %t\n- From :: %:from\n- 
Subject :: %:subject\n- Email :: %a\n\n%?" :kill-buffer t)
  ("mn" "mailnote"
   entry (file+headline "~/s/notes/notes.org" "general notes and tasks")
   "* %^{Title} : %:subject %^G\n- From :: %:from\n- Subject :: 
%:subject\n- Email :: %a\n\n%?\n\n%U")
  ))
#+end_src

Tag search etc. in org makes finding the notes relatively painless.  

As a bonus, the "mt" template is to allow me to get to INBOX 0 by making
sure I don't leave emails lying around unread or ticked.  If they need
further processing, an appropriate TODO task is created which links back
to the email.  This task is scheduled for immediate action by default
but obviously easily changed during the capture, very often by
unscheduling but adding a deadline, for instance.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.2.50.1, Org release_8.3.6-1184-g29830f



Re: [O] gnus org and tags

2016-10-13 Thread Nick Dokos
Uwe Brauer  writes:

 "Eric" == Eric S Fraga  writes:
>
>> On Wednesday, 12 Oct 2016 at 08:42, Uwe Brauer wrote:
>>> Hi
>>> 
>>> I would like to add to certain messages (which I read via gnus and the
>>> imap protocol) tags so that searching is simplified. Is there a way to
>>> do that using the org tags engine? Gnorb would be a candidate but that
>>> feature is listed in the TODO list.
>
>> Might not be what you want but I turn this inside out and use org
>> capture to create notes, with tags, that link back to the email
>> message.  I then use org to search etc. with C-c C-o to get back to the
>> email.
>
> Yes I sometimes to that as well but then I tend to forgot where I put
> that information etc. So I really prefer the other way around.
>
>
>
I have a single notes.org file (not an agenda file), where I do exactly what
Eric described and I have defined keys to get to it fast: no more "where did I
put that scrap of information" - well, not true: if I were perfectly disciplined
that would be the case, but since I am not, I sometimes have to go hunt down 
that
scrap; but the process is painful enough that once I find it, it goes into 
notes.org,
no ifs, ands or buts ;-)

-- 
Nick




Re: [O] gnus org and tags

2016-10-13 Thread Uwe Brauer

   > Uwe Brauer  writes:

   > Yup, I haven't gotten to it, mostly because message tagging is one part
   > of a much larger new feature set that I haven't had time to implement
   > yet. That, and most of my hacking time has been taken up by a new
   > version of BBDB I'm working on -- still part of the larger Gnorb
   > project.

   > My idea was to use the Gnus registry to record Org tags, which means
   > that searching would have to be done via the registry, not the usual
   > nnir search interface. Would that be acceptable to you, or would you
   > rather somehow store the tags in IMAP itself?

Definitely it would, I tried to play around with the registry myself but
right now had a problem. I am really looking forward to see such a
feature. Thanks

Uwe 




Re: [O] gnus org and tags

2016-10-13 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga  writes:

   > On Wednesday, 12 Oct 2016 at 08:42, Uwe Brauer wrote:
   >> Hi
   >> 
   >> I would like to add to certain messages (which I read via gnus and the
   >> imap protocol) tags so that searching is simplified. Is there a way to
   >> do that using the org tags engine? Gnorb would be a candidate but that
   >> feature is listed in the TODO list.

   > Might not be what you want but I turn this inside out and use org
   > capture to create notes, with tags, that link back to the email
   > message.  I then use org to search etc. with C-c C-o to get back to the
   > email.

Yes I sometimes to that as well but then I tend to forgot where I put
that information etc. So I really prefer the other way around.




Re: [O] gnus org and tags

2016-10-13 Thread Eric S Fraga
On Wednesday, 12 Oct 2016 at 08:42, Uwe Brauer wrote:
> Hi
>
> I would like to add to certain messages (which I read via gnus and the
> imap protocol) tags so that searching is simplified. Is there a way to
> do that using the org tags engine? Gnorb would be a candidate but that
> feature is listed in the TODO list.

Might not be what you want but I turn this inside out and use org
capture to create notes, with tags, that link back to the email
message.  I then use org to search etc. with C-c C-o to get back to the
email.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.1.1, Org release_8.3.6-1207-g91e263



Re: [O] gnus org and tags

2016-10-12 Thread Eric Abrahamsen
Uwe Brauer  writes:

> Hi
>
> I would like to add to certain messages (which I read via gnus and the
> imap protocol) tags so that searching is simplified. Is there a way to
> do that using the org tags engine? Gnorb would be a candidate but that
> feature is listed in the TODO list.

Yup, I haven't gotten to it, mostly because message tagging is one part
of a much larger new feature set that I haven't had time to implement
yet. That, and most of my hacking time has been taken up by a new
version of BBDB I'm working on -- still part of the larger Gnorb
project.

My idea was to use the Gnus registry to record Org tags, which means
that searching would have to be done via the registry, not the usual
nnir search interface. Would that be acceptable to you, or would you
rather somehow store the tags in IMAP itself?

Eric