I have a script which exports all the email in Gmail as text files.
It works fine with this line where you select the folder:
mail.select("inbox")
But I am not sure what the name is for Gmail's archive, where all of the email is stored. I've tried archive and all mail and stuff, but no luck.
Anyone know the correct name?