On Sun, Dec 30, 2012 at 11:59:11AM +0000, Jamie Paul Griffin wrote: > * Chris Green <c...@isbd.net> [2012-12-30 11:43:01 +0000]: > > > On Sat, Dec 29, 2012 at 11:11:06PM -0200, Ivan Sichmann Freitas wrote: > > > >I want to *avoid* all this complexity, I simply want a command which > > > >will scan through all my incoming mail mailboxes and take me to the ones > > > >which have messages marked N in them. OK, it'll be a bit slower than > > > >the (default) way that 'c' works but it will not be dependent on > > > >operating system quirks which may or may not change the access times in > > > >unwanted ways. > > > > > > Have you consideres storing your emails in maildir format? I think it > > > will be easier (even faster) for you to do what you want. > > > > > Yes, about once a year I switch to maildir because of all its > > 'advantages' and then, after a few days I switch back again because of > > its *disadvantages*! :-) (for me anyway) :- > > > > It doesn't use *real* directories, just long names with . instead of > > /. This means that it's messy/difficult to move mail directories > > around manually (which I do quite frequently). > > > > The gobbledegook filenames it uses mean that any manual access to > > mail files is fraught with difficulties and using grep is just > > confusing. > > > > Not every mail program deals with maildir in the same way (in > > particular some use real directories and others use the . in names > > described above) so if I try and access the hierarchy with other > > programs they don't always play nicely. > > These weird Maildirs you describe, are they created by an imap server? > If so what imap server software are you using? > My mail is initially delivered by SMTP (to a postfix server running locally) and then filtered by a python script at the moment. Thus, if I switch to maildir just now it's the Python libraries which create the maildirs. However my issue is more with MUAs which don't play nicely together using the same maildirs (and also utilities for manipulating maildirs as they're so painful to manage 'by hand').
-- Chris Green