change from POP3 to IMAP via scripting
I have an installation that has 64 users all running Thunderbird using POP3 in which the universal settings have been to delete email from the server after download. My task is to revamp the email system and use IMAP so what I'm wondering is this:
Having 64 people manually create new Imap accounts, changing names, etc. is a non-starter ... Having me sit at 64 desks and manually do it for them is unappetizing at the least ...
Is it possible to change the existing accounts to IMAP with some form of Command Prompt or PowerShell scripting?
I'm guessing the steps would involve closing Thunderbird, moving the various boxes to new names within the profile folder, changing the protocol and port in a config file or two?
Or -- even better -- is there a commercial program that I can buy that will just do it?
Tutte le risposte (1)
I can't speak for Thunderbird, but the last time I built an application that used email protocols, I used libraries that provided separate POP, IMAP and SMTP client modules. So you would be using entirely separate code for POP vs IMAP and therefore it would not be feasible to effect a changeover by simply adjusting stored parameters.
The advice on these forms is always to create a new account and not attempt to repurpose an existing account.
There is a tool provided whereby you can set up a configuration script that Thunderbird would refer to when setting up.
https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration
This would ease the pain of setting up each user individually. You might also use a local script to copy message store files into each user's Local Folders, allowing the existing POP-based account to be deleted. You cannot just paste these into the folder system of the new IMAP version of the account, because in the case of inconsistency between client and server, the server wins and those files would be silently removed.
You may be able to drag and drop folder systems from Local Folders to the new account's folders in Thunderbird, saving you the effort of manually recreating users' folder structures, but I have to say that it is very easy to set up moves of very large blocks of data, and email protocols don't handle this very well.