On 28/Jun/2007 13:38 Andy Fadich wrote ..
I recently did a server migration.  Most everything is working great, but I am running into a problem with the read mail module of usermin.  Here is the specifics:
Redhat 9
sendmail (very old version)
UW ipop3d
usermin with readmail module for webmail access (very old version)
Fedora Core 6
sendmail 8.13.8
Usermin for webmail again
dovecot 1.0.0
I am running into a problem where a hidden portion of the mailbox file is being listed when accessing it via usermin readmail.  When I access the account via a pop3 client or telnet dovecot properly reports 0 messages, hiding the message. Here is the actual email.
From MAILER_DAEMON  Thu Jun 28 13:10:00 2007
Date: Thu, 28 Jun 2007 13:10:00 -0700
From: Mail System Internal Data <MAILER-DAEMON@mail.genext.net>
Message-ID: <1183061400@mail.genext.net>
X-IMAP: 1183061390 0000000019
Status: RO

This text is part of the internal format of your mail folder, and is not
a real message. It is created automatically by the mail system software.
If deleted, important folder data will be lost, and it will be re-created
with the data reset to initial values.
Dovecot adds this to the end of every single mailbox file that it reads, and right now is caussing havok to those that use usermin for webmail.  Any idea how to fix this so that readmail hides the message?

The best solution would be to confgure the Read Mail module to connect via your IMAP server, rather than reading the mail files directly. This can  be done in Webmin -> Usermin Configuration -> Usermin Module Configuration -> Read Mail .

However, that message shouldn't actually be deletable by Usermin - I added special code to prevent messages with that subject line from being deleted, specifically to avoid this issue.

 - Jamie