On Tue, May 26, 2015 at 8:06 AM, Suvayu Ali <fatkasuvayu+li...@gmail.com> wrote:
> On Tue, May 26, 2015 at 06:03:18AM -0400, Xu Wang wrote:
>>
>> I have taken your advice and have now set up mutt-kz. I have one
>> question. Suppose I have a message id. How can I have a command that
>> starts mutt and have it show that message (i.e. run the notmuch search
>> query and show results)?
>
> You can take a look at the attached script (you will need to edit a bit,
> more later):
>
>   $ mutt-search id:message-id
>
> will open the whole thread with that particular message id,
>
>   $ mutt-search -m id:message-id
>
> will open just that single message.
>
> Instead of id:message-id, you could pass any valid notmuch search query
> (properly quoted, of course, to protect from shell expansion) to open
> those messages in mutt.  If you do not pass any query, the script will
> prompt for one (no quoting necessary here).  The prompt also has
> history, and supports editing with readline.
>
> Now to get it working in your setup, you should put the promphistory
> file some place where it can be sourced, and edit mutt-search
> appropriately.  Alternately, you could also copy paste the contents of
> promphistory in mutt-search or exclude the whole thing for simplicity.
>
>> Thank you for your continuing guidance and encouragement, Suvayu.
>
> You are welcome.  For notmuch questions, I recommend the notmuch list,
> the devs are very friendly.  For mutt-kz questions, the mutt-kz list is
> good but since the community is small there are few people on it.  (I'm
> on both)
>
> If you have questions that are off-topic on either of these lists,
> please feel free to contact me directly.  However, I'm very busy these
> days, so you will have to be a bit patient :).

This is great. I have already learned a lot looking at your script. I
really appreciate the time you have taken to help me. I will use
mutt-kz for any further questions on this topic.

Thank you very much again Suvayu!

Xu

Reply via email to