Hello,
I came across gyb while I was looking for a way to import to GSuite / Gmail all my email archives (starting in 1996...). I switched to the Gmail web & mobile apps from Thunderbird a while ago, and all my archived emails are stored locally in thunderbird in "Local Folders", with dozens of folders and sub-folders organized by job, year, projects, etc.
Thunderbird email folders are stored in a directory/files on disk in mbox format, with specific names and extensions for folders and sub folders :
24905559 0 drwxr-xr-x 5 fgarzon staff 160 Jun 16 17:23 .
24908553 0 drwx------ 4 fgarzon staff 128 Jun 16 17:23 ./Folder1.sbd
24908554 8 -rw-r--r-- 1 fgarzon staff 3674 Jun 16 17:24 ./Folder1.sbd/Sub folder.msf
24908555 8 -rw------- 1 fgarzon staff 1188 Jun 16 17:24 ./Folder1.sbd/Sub folder
24908552 8 -rw-r--r-- 1 fgarzon staff 3673 Jun 16 17:24 ./Folder1.msf
24908551 8 -rw------- 1 fgarzon staff 1188 Jun 16 17:24 ./Folder1
An email folder is represented on disk as an mbox file storing messages (the name of the file is the name of the mail folder, with an extran index file with the .msf extension). If the email folder contains subfolders, they are stored in a sub-directory with the .sbd extension.
I know gyb is able to restore mbox files from Google Takeout, and recreate the folder hierarchy from the X-Gmail-Labels header in each message of the mbox file.
I would like gyb to have the "import from thunderbird" extension, or an option to recreate the label hierarchy in gmail from the directory/file structure of the --local-folder directory (I could rename the mbox files with an .mbox extension and remove the .sbd extension to make it easier and less thunderbird specific...).
Is it a feature that has already been requested ? I would be interested to code it, but I am new to python (I am more of a ruby/perl type, I apologize in advance ;-), is there a starting place where I can learn how to contribute to the project ?
Thank you in advance.