Greetings yesterday i was resetting an account from a script. and the user was deleted an re-added. subsequently the user now has two dovecot directories. One is active and working, accepting mail, and the other sits with all previous messages. is there anyway to merge these two buggers ? /Volumes/x/var/spool/imap/dovecot mail:dovecot root# ls -la | grep jsmith drwx------ 16 jsmith mail 544 Dec 2 08:39 330CE746-6F8D-4708-8877-A97FAFB9AADD drwx------ 20 jsmith mail 680 Dec 1 10:17 9EE12CA8-CC7B-4889-ABBA-525E5D522831 thanks for any info -j
On Thu, 2010-12-02 at 08:55 -0500, donovan jeffrey j wrote:> Greetings > > yesterday i was resetting an account from a script. and the user was deleted an re-added. subsequently the user now has two dovecot directories. One is active and working, accepting mail, and the other sits with all previous messages. > is there anyway to merge these two buggers ? > > /Volumes/x/var/spool/imap/dovecot > mail:dovecot root# ls -la | grep jsmith > drwx------ 16 jsmith mail 544 Dec 2 08:39 330CE746-6F8D-4708-8877-A97FAFB9AADD > drwx------ 20 jsmith mail 680 Dec 1 10:17 9EE12CA8-CC7B-4889-ABBA-525E5D522831That looks OSX, right? .. I guess you'll just have to manually merge the directories. Simply moving the files from new/ and cur/ directories should be fine.
On Dec 3, 2010, at 11:20 AM, Timo Sirainen wrote:> On 3.12.2010, at 13.31, donovan jeffrey j wrote: > >> so i can just take the files from /cur and copy them into the other directory ? >> >> like >> >> cd /Volumes/x/var/spool/imap/dovecot/9EE12CA8-CC7B-4889-ABBA-525E5D522831/cur >> >> cp -Rf * /Volumes/x/var/spool/imap/dovecot/330CE746-6F8D-4708-8877-A97FAFB9AAD/cur > > Yes. > >> what a bout syncing or index do I have to do anything like a restart or will dovecot pickup on the fly? > > Dovecot picks them up automatically. >thanks there was a little change perms that i needed to do, the cp made the owner of *.files root :) a mv should have been my choice but I did not want to risk loosing to some index land. thanks for your help. -j