The 'All Mail'
folder is special system label under the '[Gmail]'
folder.
To select the 'All Mail'
folder, please call the imap.SelectFolder("[Gmail]/All Mail")
.
To list subfolders of the '[Gmail]'
folder, please call the imap.GetFolderList("[Gmail]")
method.