If I copy message files (from a command prompt) will dovecot get upset or confused? Do I need to delete index files or anything like that? I ask because I need to restore some messages from a backup, but not restore the entire maildir. I tried some the other day as a test, but the user is saying that they didn't appear. TB ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. **********************************************************************
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Aug 22, 2007 at 10:36:38AM +1000, Tim Bates wrote:> If I copy message files (from a command prompt) will dovecot get upset > or confused?Dovecot is supposed to cope just fine. See <http://www.dovecot.org/list/dovecot/2007-August/024601.html>> Do I need to delete index files or anything like that?I don't know about maildir (I'm using mbox), but I'd expect Dovecot to reindex whenever it "sees" the directory more recent than the index file.> I ask because I need to restore some messages from a backup, but not > restore the entire maildir. I tried some the other day as a test, but > the user is saying that they didn't appear.Have you checked the creation dates of the maildir and of the corresponding index? Regards - -- tom?s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGy7ioBcgs9XrR2kYRAnOrAJwI+J4qYYDgTd0NmaqnbxAxq2/A+QCfS2YI 17XpT1HZhmdCaK3xLynQIDk=6nvK -----END PGP SIGNATURE-----
Tim Bates wrote:> If I copy message files (from a command prompt) will dovecot get upset > or confused? Do I need to delete index files or anything like that? > I ask because I need to restore some messages from a backup, but not > restore the entire maildir. I tried some the other day as a test, but > the user is saying that they didn't appear.It's part of how Maildir is designed. Since Dovecot can quite happily deal with other agents (user or delivery) meddling with the files and moving them about, it will also happily deal with new messages arriving magically. -- Curtis Maloney cmaloney at cardgate.net