Re: [notmuch] Notmuch doesn't index new mails when mail location contains symlinks

Subject: Re: [notmuch] Notmuch doesn't index new mails when mail location contains symlinks

Date: Thu, 26 Nov 2009 10:34:12 -0800

To: Jed Brown, Tassilo Horn, Mikhail Gusarov

Cc: notmuch@notmuchmail.org

From: Carl Worth


On Mon, 23 Nov 2009 16:03:00 +0100, Jed Brown <jed@59A2.org> wrote:
> > But still no luck.  Finally, I deleted the symlinks and created them
> > anew, and then it indexed the 12 new mails that arrived in the
> > meantime.

OK. So that's definitely a bug we need to fix.

> The real solution is for notmuch to check mtime of whatever the
> symlink's target.

I'm a little confused here. Notmuch only uses stat, so it should be
looking at the target's mtime already. It actually takes special effort
(via lstat) to get at the mtime of the link itself.

So why aren't things just working?

-Carl

Thread: