KMail archive
Gabriel Ramirez
gabriello.ramirez at gmail.com
Wed Feb 2 06:02:30 UTC 2011
On 02/01/2011 08:12 PM, Timothy Murphy wrote:
> Gabriel Ramirez wrote:
>
>>> I want to off-load some email folders containing old email,
>>> eg In-05, Out-05, etc, perhaps to a directory ~/Archive/ .
>>>
>>> a) What is the best way to do this?
>>> Would simply mv-ing ~/Maildir/.In-05 to ~/Archive/ confuse dovecot?
>>
>> I have dovecot with with mailboxes in mbox format and when I need to
>> move one I do the following
>>
>> service dovecot stop
>> mv ~/Mail/srcdir/mymailbox ~/Mail/destdir/.
>>
>> cd ~/Mail/srcdir/.imap
>> rm -rf mymailbox/
>> the last two steps is to delete the indexes maintainned by dovecot at
>> the old location of mymailbox
>
> Thanks for your response.
> I take it you are basically moving the appropriate folder
> and deleting the corresponding index files?
exactly.
ls -la ~/Mail/Lists/2011
drwxr-xr-x. 3 user01 users 4096 Feb 1 00:44 .
drwxr-xr-x. 16 user01 users 4096 Sep 29 14:52 ..
-rw-r--r--. 1 user01 users 1427972 Feb 1 20:28 fedora-kde_S01
-rw-r--r--. 1 user01 users 918329 Feb 1 15:34 fedora-selinux
-rw-r--r--. 1 user01 users 13211652 Feb 1 01:27 fedora-users_01
-rw-r--r--. 1 user01 users 255519 Feb 1 21:50 fedora-users_02
drwxr-xr-x. 13 user01 users 4096 Feb 1 00:44 .imap
in .imap:
ls -la ~/Mail/Lists/2011/.imap
drwxr-xr-x. 13 user01 users 4096 Feb 1 00:44 .
drwxr-xr-x. 3 user01 users 4096 Feb 1 00:44 ..
drwxr-xr-x. 2 user01 users 4096 Feb 1 14:57 fedora-kde_S01
drwxr-xr-x. 2 user01 users 4096 Jan 29 16:50 fedora-selinux
drwxr-xr-x. 2 user01 users 4096 Jan 31 19:19 fedora-users_01
drwxr-xr-x. 2 user01 users 4096 Feb 1 13:31 fedora-users_02
ls -la ~/Mail/Lists/2011/.imap/fedora-users_02
drwxr-xr-x. 2 user01 users 4096 Feb 1 13:31 .
drwxr-xr-x. 13 user01 users 4096 Feb 1 00:44 ..
-rw-r--r--. 1 user01 users 1632 Feb 1 21:47 dovecot.index
-rw-r--r--. 1 user01 users 50176 Feb 1 21:47 dovecot.index.cache
-rw-r--r--. 1 user01 users 17216 Feb 1 21:50 dovecot.index.log
> (In my case the indexes seem to be in the folder .In-05 etc;
> I don't have a file .imap as far as I can see.)
the imap is a dir as shown above, if you have the dovecot.index* files
in each maildir mailbox maybe dovecot don't use the .imap dirs with them
>
>> vim ~/Mail/.subscriptions and change the srcdir to the destdir where
>> apropiate
the .subscriptions file with a dot at the begining has:
Lists/2011/fedora-kde_S01
Lists/2011/fedora-selinux
MailPost/Mktgs
Lists/2011/fedora-users_02
is only a partial list but has every mbox which I have in my email
reader is listed there
not all existing mbox in ~/Mail/ are shown in my email reader, some are
too ancient so I don't need them in that file
>
> I have a file ~/Maildir/subscriptions (no dot).
> I'm not entirely clear what this contains,
> but it does seem that it is probably what I need,
> so I'll google to see exactly what it does.
> (I didn't see any mention of it in the KMail manual.)
>
the .subscriptions or subscriptions file is created and managed by dovecot
more info well only a bit in http://wiki.dovecot.org/MissingMailboxes
under subscriptions and after in migration link
Gabriel
More information about the kde
mailing list