Xavier Beaudouin
2004-Feb-10 15:57 UTC
[Dovecot] UW-IMAP -> Dovecot : patch to remove nasty "internal messages" from UW-IMAP ?
Hello there, We want to move from UW-IMAP to Dovecot (mbox format), works like a charm, but UW-IMAP has that bloody habbit to make a stupid message in all his mailbox files : From MAILER-DAEMON Thu Apr 19 10:30:01 2001 Date: 19 Apr 2001 10:30:01 +0200 From: Mail System Internal Data <MAILER-DAEMON at mailhub2-vil.isdnet.net> Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA Message-ID: <987669001 at mailhub2-vil.isdnet.net> X-IMAP: 0987630138 0000000001 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. Is there any patch / trick / whatever to avoid that such "stupid" message to be not served by dovecot ? Thanks, /Xavier
Rick Johnson
2004-Feb-10 17:26 UTC
[Dovecot] UW-IMAP -> Dovecot : patch to remove nasty "internal messages" from UW-IMAP ?
Many of the scripts that do the conversion remove this message. I used perfect_maildir.pl to do my conversion. It was more or less dead-on, but had the habbit of marking some unread messages incorrectly as "read" after the conversion. I've attached a patch which "fixed" this in my case. This patches against perfect_maildir.pl v0.2. -Rick Xavier Beaudouin wrote:> Hello there, > > We want to move from UW-IMAP to Dovecot (mbox format), works like a > charm, but UW-IMAP has that bloody habbit to make a stupid message in > all his mailbox files : > > From MAILER-DAEMON Thu Apr 19 10:30:01 2001 > Date: 19 Apr 2001 10:30:01 +0200 > From: Mail System Internal Data <MAILER-DAEMON at mailhub2-vil.isdnet.net> > Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA > Message-ID: <987669001 at mailhub2-vil.isdnet.net> > X-IMAP: 0987630138 0000000001 > 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. > > Is there any patch / trick / whatever to avoid that such "stupid" > message to be not served by dovecot ? > > Thanks, > /Xavier >-- Rick Johnson, RHCE #807302311706007 - rjohnson at medata.com Linux/Network Administrator - Medata, Inc. PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: perfect_maildir.pl.patch Type: text/x-patch Size: 674 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20040210/03e9e540/attachment-0001.bin>
Xavier Beaudouin
2004-Feb-10 17:45 UTC
[Dovecot] UW-IMAP -> Dovecot : patch to remove nasty "internal messages" from UW-IMAP ?
The main problem I have is that I have more than 700k boxes... And I cannot (yet?) affording to convert them into maildir (even if it is more efficient.....)... /Xavier Le 10 f?vr. 04, ? 18:26, Rick Johnson a ?crit :> Many of the scripts that do the conversion remove this message. > > I used perfect_maildir.pl to do my conversion. It was more or less > dead-on, but had the habbit of marking some unread messages > incorrectly as "read" after the conversion. > > I've attached a patch which "fixed" this in my case. This patches > against perfect_maildir.pl v0.2. > > -Rick > > Xavier Beaudouin wrote: >> Hello there, >> We want to move from UW-IMAP to Dovecot (mbox format), works like a >> charm, but UW-IMAP has that bloody habbit to make a stupid message in >> all his mailbox files : >> From MAILER-DAEMON Thu Apr 19 10:30:01 2001 >> Date: 19 Apr 2001 10:30:01 +0200 >> From: Mail System Internal Data >> <MAILER-DAEMON at mailhub2-vil.isdnet.net> >> Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA >> Message-ID: <987669001 at mailhub2-vil.isdnet.net> >> X-IMAP: 0987630138 0000000001 >> 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. >> Is there any patch / trick / whatever to avoid that such "stupid" >> message to be not served by dovecot ? >> Thanks, >> /Xavier > > > -- > Rick Johnson, RHCE #807302311706007 - rjohnson at medata.com > Linux/Network Administrator - Medata, Inc. > PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc > 74c74,77 > < $extra .= 'S' if (($flags =~ /R/) || ($flags =~ /O/)); # seen > --- > > # $extra .= 'S' if (($flags =~ /R/) || ($flags =~ /O/)); # seen > > # Above is an "or", UW-IMAP uses RO for seen combined. O is "old, > but not seen, so we want no flags in that case > > # Below fixes, and also accounts for some servers using "U" for > old/read or undeleted. > > $extra .= 'S' if ((($flags =~ /R/) && ($flags =~ /O/)) || ($flags > =~ /U/)); # seen > 76c79,81 > < $file .= ":2,$extra" if $extra; > --- > > # $file .= ":2,$extra" if $extra; > > # We want the ":2," anyway to show that the message isn't "new" with > Dovecot, but has no other status, make unconditional. > > $file .= ":2,$extra";
Timo Sirainen
2004-Feb-25 17:57 UTC
[Dovecot] UW-IMAP -> Dovecot : patch to remove nasty "internal messages" from UW-IMAP ?
On Tue, 2004-02-10 at 17:57, Xavier Beaudouin wrote:> We want to move from UW-IMAP to Dovecot (mbox format), works like a > charm, but UW-IMAP has that bloody habbit to make a stupid message in > all his mailbox files :I don't really recommend using Dovecot with mbox at the moment. I'll probably add support for "folder internal data" messages for rewritten mbox support. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040225/e953a549/attachment-0001.bin>
wired at linfe.it
2004-Feb-27 09:55 UTC
[Dovecot] UW-IMAP -> Dovecot : patch to remove nasty "internal messages" from UW-IMAP ?
>From Timo Sirainen, Feb 25:>I don't really recommend using Dovecot with mbox at the moment. I'll >probably add support for "folder internal data" messages for rewritten >mbox support. Well, i am using mbox currently. My mails are at risk? Should i switch to maildir? thanks --will