Re: notmuch-show-view-part does nothing

2017-07-05 Thread YANG Ling
David Bremner  writes:

> david wen riccardi-zhu  writes:
>
>> On Arch Linux x86_64, using Emacs 25.2.1, notmuch-show-view-part does
>> nothing.
>>
>> Any suggestions on how I can fix this?
>
> It probably mainly has to do with mailcap configuration [1]. What is the
> mime type of the part you are trying to display? what version of
> notmuch?
>
> d
>
> [1] see the function mm-display-part for more information
> ___
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

Hi. I met the same problem before. I solved it by creating a file ~/.mailcap
There are many mail cap examples. You can search them by google easily.
Mine is here:
https://pastebin.com/raw/CyW3Z8nu
Of course you need modify it to fit your needs.

--
Allen Yang
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: Unsure on how initial tagging with afew is supposed to work

2016-12-28 Thread YANG Ling
Christoffer Stjernlöf  writes:

> Hello!
>
> I have the following contents in ~/.config/afew/config:
>
> # This is the default filter chain
> [SpamFilter]
> [ClassifyingFilter]
> [KillThreadsFilter]
> [ListMailsFilter]
> [ArchiveSentMailsFilter]
> [Filter.1]
> query = 'tag:killed and tag:new'
> tags = -unread
> message = marking killed new email as read
> [InboxFilter]
>
> My expectation is that this will remove the "unread" tag from messages
> that are also tagged "killed". This does not happen – I can find several
> recent messages which are tagged both with "killed" and "unread".
>
> Why is this a problem? Two reasons!
>
> 1. Messages with the "unread" tag reside in the new/ directory
> physically on the file system, which causes my "you have unread email"
> alert to go off, and
>
> 2. I'd like to understand how to configure automatic tagging with
> afew. For example, the OpenBSD mailing list is just tagged "misc" by the
> default afew tagger, and I'd love to switch this to "openbsd-misc" or
> something.
>
> How can I accomplish what I expect to be able to?
>
> Regards,
> Christoffer
> ___
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

Hi, I am not familiar with afew's source code, but I think your problem
is caused by [InboxFilter]. I think this filter will replace `new` tag
with `inbox` and `unread` tags. So your [Filter.1] doesn't work just
because the message doesn't have `unread` tag. It only has `new` tag.
I guess if you change `tags = -unread` to `tags = -new`, it should work.

One more thing, `tag:new` in `query` part is unnecessary. The code below
should also work.
query = tag:killed

Hope it helps.

Regards,
Allen Yang
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch