On 09Apr2016 13:49, suvayu ali <fatkasuvayu+li...@gmail.com> wrote:
On Thu, Apr 07, 2016 at 10:50:13PM +0200, bastian-muttu...@t6l.de wrote:
On 07Apr16 19:53 +0200, Andreas wrote:
> Me too and while it does find the message it does not tell me /where/ it
> is. How do you do this?
I do not precisely know about notmuch, but the indexers I know about
they create links to the original mail in a temporary maildir folder. At
least follow those links.
Notmuch uses a Xapian database, so no links. Here's one way to find the
actual file:
$ notmuch search --output=files -- id:20160407205013.gd25...@tweddell.de
/home/user/Mail/Gmail/mutt/cur/1460064940_0.8667.hostname,U=5543,FMD5=85a057cb845658bd35be5e2458429a42:2,S
Indeed. My "notmuch-search" script (which I invoke via a convenience alias) has
this logic at the bottom:
if [ $dothreads ]
then
notmuch search --output=threads -- "$@" \
| while read -r tid
do notmuch search --output=files -- "$tid"
done
else
notmuch search --output=files -- "$@"
fi \
| egrep '/(new|cur)/[^/]+$' \
which pipes to something which symlinks the message filenames into a maildir,
so I end up with a search result maildir full of symlinks to the originals. In
principle I could inspect it.
Cheers,
Cameron Simpson <c...@zip.com.au>