Exporting mail to yahoo mail
am 23.01.2007 20:34:27 von barrowesI couldn't find a way to export mail from Thunderbird or similar email
program to Yahoo Mail, so I improvised.
I used Mark Lyon's GMail Loader (GML):
http://www.marklyon.org/gmail/
Here is how to do it - fire up GML and in the SMTP server box, put
e.mx.mail.yahoo.com or another server from:
http://www.dnsstuff.com/tools/lookup.ch?name=yahoo.com&type= MX
Check the requires authentication box and put your yahoo username and
password into the boxes in GML. Then, where it says "Enter your gmail
address" just put your Yahoo mail address.
The rest of the instructions are the same as on Lyon's page.
I found that Yahoo's mailservers are picky when it comes to accepting
mail, so there are more SMPT errors trying to export to Yahoo mail than
when exporting to GMail. So, I wrote a little loop that retries the
same mail up to n times. In gmlw.py, change the "# Send a Message
(external)" part to:
# Send a Message (external)
def sendMessage(self):
n=10
i=1
while i<=n:
try:
self._sendMessage()
self.count[0] = self.count[0] + 1
self.Disp(self.count[0] ," Forwarded a message from: ",
self.msg.getaddr('From')[1])
break
except:
self.Disp("*** ", self.count[1] ," ERROR SENDING MESSAGE
FROM: ", self.msg.getaddr('From')[1])
self.Disp("*** UNABLE TO CONNECT TO SERVER OR SEND MESSAGE.
ERROR FOLLOWS.")
self.appendTrace()
self.Disp("----------- FAILURE on this one: retry ",i," of
",n)
i=i+1
if i>n-1:
self.count[1] = self.count[1] + 1
self.Disp("____ UNRECOVERABLE failure on this one")
# Send a Message (Internal)
This seemed to work much more reliably.
HTH,
Ben