|
Hi, i've the below question! i want to delete all mail older than a range of date in Inbox an Sent Item. In order to do this i've write this code:
This code works for inbox mail bath not for sent mail; What's wrong? Other Question. if i use getfolderlist i don't see any folder "Sent Items". Why? My imap server is gmail. My end server is exchage. Best Regards Enrico |
|
The default overload of GetFolderList method only returns folders located in the root folder. In Gmail, the "Sent Items" folder is a subfolder of "[Gmail]" folder. To get a list of folders at all levels, call Please note that the "Sent Items" folder might use a different name when Gmail's web interface is set to a non-English language. Even the "[Gmail]" folder name might also be different for German users. The following code locates the sent items folder regardless its name:
|
|
To search within the "Sent Items" folder, you have to select it first:
Please also mind the IMAP behaviour for searching dates: For example, if you want to find all mails sent in the past up to today, you have to call |