Forcing a sync of maildir flags?

2020-02-19 Thread Sean Whitton
Hello,

I have this in my post-new hook:

notmuch tag -unread -- folder:sent

The idea is that copies of my sent mail which get returned to me and
stored in my inbox, e.g. by mailing lists, would get maildir Seen tags
added to them.  But that does not happen.

This works:

notmuch tag +unread -- folder:sent
notmuch tag -unread -- folder:sent

Is there some more elegant way to force a sync of maildir flags?  Am I
the only one that has copies of my own mail in my inbox folder, not
marked as read from the point of view of anything except notmuch?

Please CC me on replies.

-- 
Sean Whitton
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [aperezdc/notmuch-addrlookup-c] Possibility to upstream (#23)

2020-02-19 Thread Antoine Beaupré
On 2020-02-18 21:21:01, David Bremner wrote:
> anarcat  writes:
>
>
>> One improvement we could *already* do with notmuch-address would be to 
>> enforce searching for to/from headers, which doesn't seem to be the case 
>> right now. I have a [wrapper 
>> script](https://gitlab.com/anarcat/scripts/-/blob/master/notmuch-address) 
>> where I do basically this:
>>
>> exec notmuch address from:"$*"
>>
>> I would love to be able to do `to:"$*"` here, but that gives the unexpected 
>> result of the `From` addresses instead of `To` in that search... And 
>> `--output=recipients` does not fix that at all...
>
> If you have a way to reproduce this (e.g. that works with the notmuch
> test corpus, or at least doesn't depend on your mail), please let us
> know. I can't really understand the problem from the description here,
> so it's not likely to get fixed.
>
> PS this is not sent via github, as it's not about notmuch-addrlookup

It's quite simple really. If I do:

 notmuch address to:anarcat

I get all the email addresses that wrote *to* anarcat. In other words,
notmuch-address seems to look only at the From header to extract emails
it shows the user, regardless of the query provided. For example, right
after you sent that email, the first result was:

David Bremner 

.. because you were the last email address that sent me an email.

Not sure I can work that out in a test case, but at least it should
explain a bit more how that problem occurs...

A.

-- 
A developed country is not a place where the poor have cars. It's
where the rich use public transportation.
- Gustavo Petro 
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] Drop deprecated/unused crypto.gpg_path

2020-02-19 Thread David Bremner
Tomi Ollila  writes:
>
> All code removal \o/ ! LGTM.
>

pushed,

d
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch