Greetings,
My user's .maildir has overfilled and so I've lost some emails. However, I have
a cron job running every five minutes to rsync .maildir to /mnt/mailbu. The >question is: can I just copy mailbu over .maildir?
The mail chain is fetchmail (POP3) > postfix > dovecot > kmail (IMAP4).
--
Regards,
Peter.
</style><style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
</style></head><body><div>------ Original Message ------</div><div>
------ Original Message ------
From "Peter Humphrey" <peter@prh.myzen.co.uk>
To gentoo-user@lists.gentoo.org
Date 02.06.2025 11:52:34
Subject [gentoo-user] Recovering mail
Greetings,
My user's .maildir has overfilled and so I've lost some emails. However, I >have a cron job running every five minutes to rsync .maildir to >/mnt/mailbu. The question is: can I just copy mailbu over .maildir?
There might be some duplicates depending on e.g. the message state,
which is encoded in the filename.
Try rsync -avn /mnt/malibu/ ~/.maildir for a dry-run that should
tell you what would be copied. If the results look reasonable
stop dovecot and kmail, run again without the -n, start dovecot.
At least that's what I would do to fix my maildir.
Good luck,
On Monday, 2 June 2025 13:03:54 British Summer Time Stefan Schmiedl wrote:
------ Original Message ------
From "Peter Humphrey" <peter@prh.myzen.co.uk>
To gentoo-user@lists.gentoo.org
Date 02.06.2025 11:52:34
Subject [gentoo-user] Recovering mail
Greetings,
My user's .maildir has overfilled and so I've lost some emails. However, >I
have a cron job running every five minutes to rsync .maildir to >/mnt/mailbu. The question is: can I just copy mailbu over .maildir?
There might be some duplicates depending on e.g. the message state,
which is encoded in the filename.
Try rsync -avn /mnt/malibu/ ~/.maildir for a dry-run that should
tell you what would be copied. If the results look reasonable
stop dovecot and kmail, run again without the -n, start dovecot.
At least that's what I would do to fix my maildir.
Well, that's recovered all the missing ones (an awful lot of them, anyway), but I now have thousands of duplicates to find and delete.
Good luck,
Thanks :)
Am Mon, Jun 02, 2025 at 04:34:12PM +0100 schrieb Peter Humphrey:
On Monday, 2 June 2025 13:03:54 British Summer Time Stefan Schmiedl wrote:
------ Original Message ------
From "Peter Humphrey" <peter@prh.myzen.co.uk>
To gentoo-user@lists.gentoo.org
Date 02.06.2025 11:52:34
Subject [gentoo-user] Recovering mail
Greetings,
My user's .maildir has overfilled and so I've lost some emails. However, Ihave a cron job running every five minutes to rsync .maildir to /mnt/mailbu. The question is: can I just copy mailbu over .maildir?
There might be some duplicates depending on e.g. the message state,
which is encoded in the filename.
Try rsync -avn /mnt/malibu/ ~/.maildir for a dry-run that should
tell you what would be copied. If the results look reasonable
stop dovecot and kmail, run again without the -n, start dovecot.
At least that's what I would do to fix my maildir.
Well, that's recovered all the missing ones (an awful lot of them,
anyway), but I now have thousands of duplicates to find and delete.
If you dare, you can use mutt. Go to the mail directory, then press Shift-D to mark mails for deletion base on a search expression. Use the edxpression ~= to mark duplicate mails. It will not mark the original mail.
On Monday, 2 June 2025 13:03:54 British Summer Time Stefan Schmiedl wrote:
------ Original Message ------
From "Peter Humphrey" <peter@prh.myzen.co.uk>
To gentoo-user@lists.gentoo.org
Date 02.06.2025 11:52:34
Subject [gentoo-user] Recovering mail
Greetings,
My user's .maildir has overfilled and so I've lost some emails. However, I >have a cron job running every five minutes to rsync .maildir to >/mnt/mailbu. The question is: can I just copy mailbu over .maildir?
There might be some duplicates depending on e.g. the message state,
which is encoded in the filename.
Try rsync -avn /mnt/malibu/ ~/.maildir for a dry-run that should
tell you what would be copied. If the results look reasonable
stop dovecot and kmail, run again without the -n, start dovecot.
At least that's what I would do to fix my maildir.
Well, that's recovered all the missing ones (an awful lot of them, anyway), but I now have thousands of duplicates to find and delete.
Am Mon, Jun 02, 2025 at 04:34:12PM +0100 schrieb Peter Humphrey:
On Monday, 2 June 2025 13:03:54 British Summer Time Stefan Schmiedl wrote:
------ Original Message ------
From "Peter Humphrey" <peter@prh.myzen.co.uk>
To gentoo-user@lists.gentoo.org
Date 02.06.2025 11:52:34
Subject [gentoo-user] Recovering mail
Greetings,
My user's .maildir has overfilled and so I've lost some emails. >However, I
have a cron job running every five minutes to rsync .maildir to >/mnt/mailbu. The question is: can I just copy mailbu over .maildir?
There might be some duplicates depending on e.g. the message state,
which is encoded in the filename.
Try rsync -avn /mnt/malibu/ ~/.maildir for a dry-run that should
tell you what would be copied. If the results look reasonable
stop dovecot and kmail, run again without the -n, start dovecot.
At least that's what I would do to fix my maildir.
Well, that's recovered all the missing ones (an awful lot of them,
anyway),
but I now have thousands of duplicates to find and delete.
If you dare, you can use mutt. Go to the mail directory, then press Shift-D to mark mails for deletion base on a search expression. Use the edxpression ~= to mark duplicate mails. It will not mark the original mail.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 149:52:59 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,777 |