[PATCH] test: add tests wrt ignoring user-specified files and directories

Tomi Ollila tomi.ollila at iki.fi
Fri Feb 3 04:14:21 PST 2012


On Wed,  1 Feb 2012 15:12:53 +0100, Pieter Praet <pieter at praet.org> wrote:
> Files and directories which are specified in 'new.ignore' in the
> config file shouldn't be indexed nor reported by `notmuch new'.
> 
> ---

+1 

tested file order with:

$ touch ~/mail/mails/a
$ touch ~/mail/mails/d
$ touch ~/mail/mails/o
$ touch ~/mail/mails/p
$ touch ~/mail/mails/g
$ touch ~/mail/mails/z
$ touch ~/mail/mails/u
$ touch ~/mail/mails/l     

$ notmuch new
Note: Ignoring non-mail file: /home/too/mail/mails/a
Note: Ignoring non-mail file: /home/too/mail/mails/d
Note: Ignoring non-mail file: /home/too/mail/mails/g
Note: Ignoring non-mail file: /home/too/mail/mails/l
Note: Ignoring non-mail file: /home/too/mail/mails/o
Note: Ignoring non-mail file: /home/too/mail/mails/p
Note: Ignoring non-mail file: /home/too/mail/mails/u
Note: Ignoring non-mail file: /home/too/mail/mails/z

So we can be pretty confident that files are printed
in ASCII order.

Tomi


More information about the notmuch mailing list