See only unread message in a thread ?

2010-04-14 Thread James Westby
On Wed, 14 Apr 2010 00:43:16 +0200, Xavier Maillard  wrote:
> Is it done automatically ? Or do I need to do something special
> in order to unset the unread tag ?
> 
> I see there is 'a' and 'x' when in notmuch-show but I am not sure
> I have to explicitely press on of these keys.
> 
> Currently, when in a notmuch-search buffer, I press RET to visit
> the thread and then I play with 'n' to go next message till I
> read the whole thread. Then, I press 'q' to go back to the
> notmuch-search buffer. Is this the way to do ?

That should be removing the 'unread' tag.

Therefore it sounds like you want to be using a search including
'tag:unread' to get the behaviour that you want. Obviously that might
not show you all the threads that you want.

There is a notmuch-show-next-unread-message, but it's not bound to
anything by default. That might also be useful to you.

Thanks,

James


See only unread message in a thread ?

2010-04-14 Thread James Westby
On Tue, 13 Apr 2010 19:29:29 -0400, Jameson Rollins  wrote:
> On Tue, 13 Apr 2010 23:19:37 +0100, James Westby  jameswestby.net> wrote:
> > On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> > > Say I have a thread with A-B-C. I visit the thread and read the
> > > whole thread. Let's say after 'notmuch new' a post has entered
> > > the thread: A-B-C-D. Is there an easy way to just have one of
> > > these behaviour:
> > > 
> > > - only show the new message (with an option to toggle display of
> > >   the old messages)
> > > - display the whole thread with the 3 read messages 'collapsed'
> > >   and only the unread message 'expanded'
> > 
> > This is the default behaviour in my experience.
> 
> I agree this is the behavior I see, but there is a caveat that may be
> the cause of confusion:
> 
> > Reading a message unsets the 'unread' tag.
> > 
> > The default search if for 'inbox' + 'unread'.
> 
> Actually, the default search is for just "tag:inbox", which will also
> display any messages in the inbox that have "tag:unread" as well.  But
> remember that if you are coming from a search for "tag:inbox", when you
> view a thread all the message with "tag:inbox" will be visible
> (uncollapsed), whether or not they have "tag:unread" not.  Just reading
> a message will not cause it to collapse when coming from a "tag:inbox"
> search.  I think this might be where the confusion is coming from.  If
> you want to view just the messages in your inbox that are unread, then
> you need to search for "tag:inbox and tag:unread", or type 'f' in
> notmuch mode to filter your inbox search with the "tag:unread" search.
> Make sense?

Yes, thanks for clarifying.

I realise now that I lied about the behaviour that I was seeing.

I use the default tag:inbox search, but archive all the mails 'a' as I
read them, using other tags to keep track of things I want to come back
to.

That means that 'inbox' behaves the way I described 'unread' to behave
for me. I see the new messages as the old ones had their 'inbox' tag
removed.

Thanks,

James


Re: See only unread message in a thread ?

2010-04-14 Thread James Westby
On Wed, 14 Apr 2010 00:43:16 +0200, Xavier Maillard  wrote:
> Is it done automatically ? Or do I need to do something special
> in order to unset the unread tag ?
> 
> I see there is 'a' and 'x' when in notmuch-show but I am not sure
> I have to explicitely press on of these keys.
> 
> Currently, when in a notmuch-search buffer, I press RET to visit
> the thread and then I play with 'n' to go next message till I
> read the whole thread. Then, I press 'q' to go back to the
> notmuch-search buffer. Is this the way to do ?

That should be removing the 'unread' tag.

Therefore it sounds like you want to be using a search including
'tag:unread' to get the behaviour that you want. Obviously that might
not show you all the threads that you want.

There is a notmuch-show-next-unread-message, but it's not bound to
anything by default. That might also be useful to you.

Thanks,

James
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: See only unread message in a thread ?

2010-04-14 Thread James Westby
On Tue, 13 Apr 2010 19:29:29 -0400, Jameson Rollins 
 wrote:
> On Tue, 13 Apr 2010 23:19:37 +0100, James Westby  
> wrote:
> > On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> > > Say I have a thread with A-B-C. I visit the thread and read the
> > > whole thread. Let's say after 'notmuch new' a post has entered
> > > the thread: A-B-C-D. Is there an easy way to just have one of
> > > these behaviour:
> > > 
> > > - only show the new message (with an option to toggle display of
> > >   the old messages)
> > > - display the whole thread with the 3 read messages 'collapsed'
> > >   and only the unread message 'expanded'
> > 
> > This is the default behaviour in my experience.
> 
> I agree this is the behavior I see, but there is a caveat that may be
> the cause of confusion:
> 
> > Reading a message unsets the 'unread' tag.
> > 
> > The default search if for 'inbox' + 'unread'.
> 
> Actually, the default search is for just "tag:inbox", which will also
> display any messages in the inbox that have "tag:unread" as well.  But
> remember that if you are coming from a search for "tag:inbox", when you
> view a thread all the message with "tag:inbox" will be visible
> (uncollapsed), whether or not they have "tag:unread" not.  Just reading
> a message will not cause it to collapse when coming from a "tag:inbox"
> search.  I think this might be where the confusion is coming from.  If
> you want to view just the messages in your inbox that are unread, then
> you need to search for "tag:inbox and tag:unread", or type 'f' in
> notmuch mode to filter your inbox search with the "tag:unread" search.
> Make sense?

Yes, thanks for clarifying.

I realise now that I lied about the behaviour that I was seeing.

I use the default tag:inbox search, but archive all the mails 'a' as I
read them, using other tags to keep track of things I want to come back
to.

That means that 'inbox' behaves the way I described 'unread' to behave
for me. I see the new messages as the old ones had their 'inbox' tag
removed.

Thanks,

James
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


See only unread message in a thread ?

2010-04-14 Thread Xavier Maillard
On Tue, 13 Apr 2010 23:19:37 +0100, James Westby  
wrote:
> On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> > Hi,
> > 
> > maybe I missread the "manual" but I can't find an easy way to do
> > something simple in notmuch.el.
> > 
> > Say I have a thread with A-B-C. I visit the thread and read the
> > whole thread. Let's say after 'notmuch new' a post has entered
> > the thread: A-B-C-D. Is there an easy way to just have one of
> > these behaviour:
> > 
> > - only show the new message (with an option to toggle display of
> >   the old messages)
> > - display the whole thread with the 3 read messages 'collapsed'
> >   and only the unread message 'expanded'
> 
> This is the default behaviour in my experience.
> 
> Reading a message unsets the 'unread' tag.

Is it done automatically ? Or do I need to do something special
in order to unset the unread tag ?

I see there is 'a' and 'x' when in notmuch-show but I am not sure
I have to explicitely press on of these keys.

Currently, when in a notmuch-search buffer, I press RET to visit
the thread and then I play with 'n' to go next message till I
read the whole thread. Then, I press 'q' to go back to the
notmuch-search buffer. Is this the way to do ?

Thank you

Xavier


See only unread message in a thread ?

2010-04-14 Thread Xavier Maillard
Hi,

maybe I missread the "manual" but I can't find an easy way to do
something simple in notmuch.el.

Say I have a thread with A-B-C. I visit the thread and read the
whole thread. Let's say after 'notmuch new' a post has entered
the thread: A-B-C-D. Is there an easy way to just have one of
these behaviour:

- only show the new message (with an option to toggle display of
  the old messages)
- display the whole thread with the 3 read messages 'collapsed'
  and only the unread message 'expanded'

Thank you

Xavier


See only unread message in a thread ?

2010-04-13 Thread James Westby
On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> Hi,
> 
> maybe I missread the "manual" but I can't find an easy way to do
> something simple in notmuch.el.
> 
> Say I have a thread with A-B-C. I visit the thread and read the
> whole thread. Let's say after 'notmuch new' a post has entered
> the thread: A-B-C-D. Is there an easy way to just have one of
> these behaviour:
> 
> - only show the new message (with an option to toggle display of
>   the old messages)
> - display the whole thread with the 3 read messages 'collapsed'
>   and only the unread message 'expanded'

This is the default behaviour in my experience.

Reading a message unsets the 'unread' tag.

The default search if for 'inbox' + 'unread'.

This lists the threads where any message within matches that criterion.

When viewing a thread from there the messages that don't match are
collapsed.

Therefore if you are remove the 'unread' tag when reading mail you will
only read the newest messages when 'notmuch new' adds a new message to
the thread if the search that took you there included the 'unread' tag.

Thanks,

James


See only unread message in a thread ?

2010-04-13 Thread Jameson Rollins
On Tue, 13 Apr 2010 23:19:37 +0100, James Westby  
wrote:
> On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> > Say I have a thread with A-B-C. I visit the thread and read the
> > whole thread. Let's say after 'notmuch new' a post has entered
> > the thread: A-B-C-D. Is there an easy way to just have one of
> > these behaviour:
> > 
> > - only show the new message (with an option to toggle display of
> >   the old messages)
> > - display the whole thread with the 3 read messages 'collapsed'
> >   and only the unread message 'expanded'
> 
> This is the default behaviour in my experience.

I agree this is the behavior I see, but there is a caveat that may be
the cause of confusion:

> Reading a message unsets the 'unread' tag.
> 
> The default search if for 'inbox' + 'unread'.

Actually, the default search is for just "tag:inbox", which will also
display any messages in the inbox that have "tag:unread" as well.  But
remember that if you are coming from a search for "tag:inbox", when you
view a thread all the message with "tag:inbox" will be visible
(uncollapsed), whether or not they have "tag:unread" not.  Just reading
a message will not cause it to collapse when coming from a "tag:inbox"
search.  I think this might be where the confusion is coming from.  If
you want to view just the messages in your inbox that are unread, then
you need to search for "tag:inbox and tag:unread", or type 'f' in
notmuch mode to filter your inbox search with the "tag:unread" search.
Make sense?

jamie.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: 



Re: See only unread message in a thread ?

2010-04-13 Thread Jameson Rollins
On Tue, 13 Apr 2010 23:19:37 +0100, James Westby  
wrote:
> On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> > Say I have a thread with A-B-C. I visit the thread and read the
> > whole thread. Let's say after 'notmuch new' a post has entered
> > the thread: A-B-C-D. Is there an easy way to just have one of
> > these behaviour:
> > 
> > - only show the new message (with an option to toggle display of
> >   the old messages)
> > - display the whole thread with the 3 read messages 'collapsed'
> >   and only the unread message 'expanded'
> 
> This is the default behaviour in my experience.

I agree this is the behavior I see, but there is a caveat that may be
the cause of confusion:

> Reading a message unsets the 'unread' tag.
> 
> The default search if for 'inbox' + 'unread'.

Actually, the default search is for just "tag:inbox", which will also
display any messages in the inbox that have "tag:unread" as well.  But
remember that if you are coming from a search for "tag:inbox", when you
view a thread all the message with "tag:inbox" will be visible
(uncollapsed), whether or not they have "tag:unread" not.  Just reading
a message will not cause it to collapse when coming from a "tag:inbox"
search.  I think this might be where the confusion is coming from.  If
you want to view just the messages in your inbox that are unread, then
you need to search for "tag:inbox and tag:unread", or type 'f' in
notmuch mode to filter your inbox search with the "tag:unread" search.
Make sense?

jamie.


pgpAYHO1fA5YM.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: See only unread message in a thread ?

2010-04-13 Thread Xavier Maillard
On Tue, 13 Apr 2010 23:19:37 +0100, James Westby  
wrote:
> On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> > Hi,
> > 
> > maybe I missread the "manual" but I can't find an easy way to do
> > something simple in notmuch.el.
> > 
> > Say I have a thread with A-B-C. I visit the thread and read the
> > whole thread. Let's say after 'notmuch new' a post has entered
> > the thread: A-B-C-D. Is there an easy way to just have one of
> > these behaviour:
> > 
> > - only show the new message (with an option to toggle display of
> >   the old messages)
> > - display the whole thread with the 3 read messages 'collapsed'
> >   and only the unread message 'expanded'
> 
> This is the default behaviour in my experience.
> 
> Reading a message unsets the 'unread' tag.

Is it done automatically ? Or do I need to do something special
in order to unset the unread tag ?

I see there is 'a' and 'x' when in notmuch-show but I am not sure
I have to explicitely press on of these keys.

Currently, when in a notmuch-search buffer, I press RET to visit
the thread and then I play with 'n' to go next message till I
read the whole thread. Then, I press 'q' to go back to the
notmuch-search buffer. Is this the way to do ?

Thank you

Xavier
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: See only unread message in a thread ?

2010-04-13 Thread James Westby
On Wed, 14 Apr 2010 00:11:50 +0200, Xavier Maillard  wrote:
> Hi,
> 
> maybe I missread the "manual" but I can't find an easy way to do
> something simple in notmuch.el.
> 
> Say I have a thread with A-B-C. I visit the thread and read the
> whole thread. Let's say after 'notmuch new' a post has entered
> the thread: A-B-C-D. Is there an easy way to just have one of
> these behaviour:
> 
> - only show the new message (with an option to toggle display of
>   the old messages)
> - display the whole thread with the 3 read messages 'collapsed'
>   and only the unread message 'expanded'

This is the default behaviour in my experience.

Reading a message unsets the 'unread' tag.

The default search if for 'inbox' + 'unread'.

This lists the threads where any message within matches that criterion.

When viewing a thread from there the messages that don't match are
collapsed.

Therefore if you are remove the 'unread' tag when reading mail you will
only read the newest messages when 'notmuch new' adds a new message to
the thread if the search that took you there included the 'unread' tag.

Thanks,

James
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


See only unread message in a thread ?

2010-04-13 Thread Xavier Maillard
Hi,

maybe I missread the "manual" but I can't find an easy way to do
something simple in notmuch.el.

Say I have a thread with A-B-C. I visit the thread and read the
whole thread. Let's say after 'notmuch new' a post has entered
the thread: A-B-C-D. Is there an easy way to just have one of
these behaviour:

- only show the new message (with an option to toggle display of
  the old messages)
- display the whole thread with the 3 read messages 'collapsed'
  and only the unread message 'expanded'

Thank you

Xavier
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch