Re: Configuring CM on a laptop (SOLVED)

Pierre Fortin <[email protected]> Mon, 4 Apr 2022 08:13:02 -0400
Newsgroups gmane.mail.sylpheed.claws.general
Message-ID <[email protected]>
On Mon, 4 Apr 2022 06:27:14 -0400 Renaud (Ron) OLGIATI wrote:

>On Sun, 3 Apr 2022 13:45:35 -0400
>"Renaud (Ron) OLGIATI" <[email protected]> wrote:
>
>> I am preparing a laptop to use during a trip away from my desktop box.
>> 
>> I keep all my mail archive on the desktop box, and connect to servers with POP
>> I would like to copy to the laptop both my full configuration, and the structure of my mailboxes, but without all the stored mails themselves.
>> I know the configuration is stored in ~.claws-mail and ~.config/claws-mail, but is there a way to copy the mailboxes arborescences structure without copying 14Gb of contents ?  
>
>Found a solution:
>
>-Copy the contents of the Mail directory to another dir
>
>- cd to that dir
>
>- run the command
>	find ./ -type f -exec rm -f {} \;
>
>and you are left with only the directories, all the files removed.
> 
>Cheers,
> 
>Ron.

Copying only the directory structure is MUCH faster:
Get directory structure:
$ find Mail -type d > /tmp/Mail-dirs
Copy /tmp/Mail-dirs to laptop, and:
$ xargs mkdir -p < /tmp/Mail-dirs