Comment on Imapsync - Installation and use
abeorch@friendica.ginestes.es 6 days ago@Socket462 Thanks yeah. I think you are right. I have managed to have some success with extracting emails from #Gmail using #imapsync. I've done a couple of test runs but think that I have an issue with labels (basically I end up with emails in the All Mail folder but not in Sent or Inbox ) so I think I need to look at the options a bit.
Where should I / would you keep scripts that I create to run either one off or on a regular basis ? Should I create a folder in /etc/imapsync ? I have never really understood the folder structure of Linux despite trying to read up on it a few times.
Socket462@feddit.it 6 days ago
You can remap IMAP source folder to destination folder. It’s very likely that sent folder needs to be remapped between different hosts. I suggest you to use the dry-run option and examine the log to see if the folders are correctly mapped.
More in detail, I created an user just to run imapsync as a good practice in Linux. Then downloaded imapsync in a subfolder of the user home directory, created two very simple scripts, one with the imapsync command with all the parameters I needed and one for the token. Lastly, using crontab -e, I added two entry one for each script.
You don’t need to put imapsync into etc, it is not a binary and, as far as I know, there is no package that you can install with a package manager, it’s just a script that you download and execute. Anyway, where you put that, its up to you.
abeorch@friendica.ginestes.es 6 days ago
@Socket462 Yeah I did some dry runs and the folders maoped but I think its something about the labels .. Ill dig further.
That info about running via cron is really useful.