You are not logged in.
Pages: 1
This is an odd question I know... So I'm using Thunderbird to transfer from one gmail account to another. As those reading this may know, this is very easy for transferring emails - just drag and drop. However, for Google's recorded chats, the drag-and-drop method does not work. Instead I must mass-forward the chats as emails from one account to another. I can do this using a message filter for about 10 chats at a time, but if I do any more I get SMTP errors as, I presume, some part of the network is discouraging me from mass-emailing assuming I'm a spambot. So what I would like to do is set my message filter to forward all my chats (about 3500) to the new account, but run it very slowly. I'm wondering if there isn't a way to do this by running all of thunderbird with minimal resources. Does that make sense? When I first invoke thunderbird, can I inform Linux that I want Thunderbird to operate slowly so it sends its emails slowly?
Last edited by tony5429 (2012-12-21 13:02:15)
Offline
The common way to do this is to use a "sleep" function. Most languages have them. You set up a loop, do something, then make your script wait x seconds before proceeding to the next iteration of the loop. For example, you would send 10 chats at a time then sleep until you can send 10 more without getting flagged as spam.
An even better solution would be to have your script periodically check some condition to determine if it can continue, instead of blindly hoping that enough time has passed.
Incidentally, I suspect that you're complicating things. Have you checked for mass export and import functions?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks, Xyne. I have done lots of searching in Thunderbird and Google and unfortunately have not found any other way to transfer Google chats. It would be great to be able to use a sleep function between calls of Thunderbird, where each Thunderbird call forwards one chat. However, the command-line options of Thunderbird seem pretty minimal. That's why I was thinking of just running the entire program slowly - if there's a way to do it. I've thought about opening Thunderbird in a virtual system with minimal resources, but it seems like a lot of work and might still not be slow enough to prevent the SMTP errors anyway...
Offline
Replace thunderbird with mail (or your favorite language and its email module), ???, profits.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Thanks for all the tips/ideas! If anyone is wondering, I solved this problem by installing xdotool, putting my new email address in my clipboard, opening Thunderbird, and running this script:
delay=16
for i in {1..3525}; do
sleep $delay
xdotool key shift+F10
sleep $delay
xdotool key f
sleep $delay
xdotool key ctrl+v
sleep $delay
xdotool key ctrl+Return
sleep $delay
xdotool key Up
doneOffline
Pages: 1