procmail
[Top] [All Lists]

Re: set status of mails in maildirs?

2007-08-08 10:33:28
Hello Nick,

Am 2007-08-02 19:44:41, schrieb N.J. Mann:
I thought everything used Status: RO

According to google "Status: RO" is MUA specific.  Of course not all
information found by google'ing can be trusted.  :-(  The site I
mentioned in my reply to Dallman does not mention anything about it, so
I'm not sure if it is even valid (for some value of valid) for maildir
mailbox format.  I've been using maildir for years and I always
thought that to mark a message as read you had to move it from the "new"
directory to the "cur" directory - something that I forgot in my haste
to reply to the original question!  I did remember that you had to
rename the file, but I even got that wrong.  :-(

Short explanation to "Read" and "Old" messages on Maildir:

I am using fetchmail and procmail since ages plus courier-imap.

Some time ago I was accessing the Maildirs over NFS directly with mutt
since it is times faster...

So, if a messsage was coming in, it is going into

  ~/Maildir/.folder/new/1234567890.12345_0.samba3
                    ^^^
Now accessing the folder =.folder/ using directaccess will show the
message in "mutt" as NEW.  If you leave the folder, it will normaly (if
you use standard settings for mutt "mark_old=yes") moved and renamed to

  ~/Maildir/.folder/cur/1234567890.12345_0.samba3:2,
                    ^^^                        ^^^
and the next time it show up as "Old" otherwise it stay as

  ~/Maildir/.folder/new/1234567890.12345_0.samba3
                    ^^^

OK, Accessing the same file

  ~/Maildir/.folder/new/1234567890.12345_0.samba3
                    ^^^
using IMAP, courier-imap will MOVE the file immediatly to

  ~/Maildir/.folder/cur/1234567890.12345_0.samba3:2,
                    ^^^                          ^^^
and courier write the entry into

  ~/Maildir/.folder/courierimapuiddb

as I have already described in the previos mail.

Now accessing the folder =.folder/ using IMAP will show the message in
"mutt" as NEW.  If you leave the folder, it will be leaved untouched
(if you use standard settings for mutt "mark_old=yes") 

Using "mark_old=no" leave it untouched and it mutt will recognize this
folder always with NEW messages.

OK, now reading the message will rename it to:

  ~/Maildir/.folder/cur/1234567890.12345_0.samba3:2,S
                    ^^^                          ^^^^

So, if you using "courier-imap" with "mutt" and do not want to mark
the messages "only as old" you need to update courierimapuiddb.

Thats the different accessing the Maildir "local" or over "courier-imap"

Please note, that I am subscribed to over 1300 Packages from the Debian-
BTS and I do not realy want to walk through 2000 messages per day...

So I use "TRAP" and a script which "READ" the messages for me...

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail