A problem and a suggestion
Stephen Paul Weber
singpolyma at singpolyma.net
Wed Aug 11 11:31:37 PDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Somebody claiming to be Michal Sojka wrote:
> On Fri, 06 Aug 2010, Stephen Paul Weber wrote:
> > Anyway. I installed notmuch a few days ago (0.1), ran the setup, ran
> > notmuch new and i said it found 30000+ files, but no new mail? No searches
> > return any results. What am I doing wrong?
>
> I guess you have your mails in a wrong fomrat. Do you see "Note:
> Ignoring non-mail file" messages during notmuch new? You may also try
> notmuch new --verbose.
Hmm. I'm pointing it at a maildir. I deleted the .notmuch folder in the
maildir and ran notmuch new --verbose with the following result:
$ notmuch new --verbose
Found 33065 total files (that's not much mail).
No new mail.
and searches turn up no results.
> > I gather by other threads on the list archives that editing a message
> > does not make it "new"? So notmuch just gets whatever the first
> > version of the message contents it sees is? And if the file gets
> > renamed (by mutt for example, when marked as read) the filename stored
> > by notmuch would then be wrong?
>
> Yes. AFAIK notmuch assumes that messages are immutable and when you edit
> the message, notmuch doesn't re-index it.
Ok, so edited headers are ignored.
> Notmuch new code is able to
> detect renames so if you rename the file, the filename in the database
> is wrong only until you run notmuch new again.
Oh, cool. Good.
> > This would be especially useful if notmuch re-indexed a message when I
> > edit this header.
>
> I'm not sure how hard it would be to implement this and what would be
> the performance implications. You should store modification time of a
> message in the database and re-index the file when the mtime on disk in
> newer than in the database.
Right. An mtime-based solution would make sense to me. That should (I
would think) have minor performance implications unless you edit a lot of
your mail often.
- --
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJMYuyJAAoJENEcKRHOUZzen1cP/0kgDgQQDR3nDn7mnw5t6Pfh
8IGODVtxSRJ+vFfrNg3gqUDHmHdphXAlX3xjvjI3eNLDW7PqmqUuQw4fzxQ6/cEQ
FBOlMq8zXze+Cus3baqYLIYltQaJRItsg4/5B4TjJXYC0r5W4Vt76wQNuBjAdDp5
EnEEpJEZypBlNyo6L33lsnkOQXnKPW/YPay5AT7FPYPIBv1BtyomJYAA6bUXEttD
BhcDoq+QZyOUKmShF9p1PtpAC7fKo2AtCALIK0CTClPWQidsLR/LYFxx1UaNvSjR
vG2S2H/FlyAzgYj+rgGoH/3rFLnSFjZE6rgpZsXnfQf2/KHnuzL0GSFcI0lsYlJR
Fyv/V7iPIYCkf0xG1deeoZ1Y0/qNidvzBwdJ9o6uaon/SINnvBegNksNhnaTS2Gb
B1J8/IHLfmOiswucz/s5lLkZL78/bJoyHRwRdARTwjHpP6ylMl+ZB7RUVILuNqc6
c0F52V3S7Jt3eyEPFM7kuFfXsoaQZSe1kwQLyaY+RjRaoLwiv90vdjpylJa0y9qC
NSu8ZTNI5rIhfZuAgDUOexWn2zwiqV6r+hJIsFe7KBjVhDS9N7TE4hekNVVOz40y
KDLgm9oves8H0q6ynI29uraw8nD7XJqu+O8YPwu88N0+Q96qHPPWff1iISTwKTON
uFXOonuUlLm/TBn+azEJ
=dX/y
-----END PGP SIGNATURE-----
More information about the notmuch
mailing list