Hi,

We are using REBEX component for Email Crawling different accounts. When we are crawling any gmail account then we are considering all the mail box folders created inside the account. We are able to fetch "Travel", "Receipts","Personal","Work","[Gmail]" and "Inbox" folders. But there is 'All Mail' folder also in the account. Question is why Rebex component not taking into account this folder as well. Please suggest on this.

Thanks Sanjay

asked 08 Aug '11, 10:44

nipanesanjay's gravatar image

nipanesanjay
171
accept rate: 0%


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.

link

answered 08 Aug '11, 11:15

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

I am selecting all the mail folders and then also lloking for subfolders, if any created inside root folders. When I am getting "[Gmail]" as root folder in first iteration and next time when I am doing imapConnection.SelectFolder(folder); // where folder = "[Gmail]" it gives exception as "Invalid folder: [Gmail] (Failure) (NO)."

(08 Aug '11, 11:49) nipanesanjay

Actually i m doing, imapConnection.SelectFolder(folder);

// Get the sub-folders under currently selected folder ImapFolderCollection subFolders = imapConnection.GetFolderList(folder);

Can I only use second line of code?

(08 Aug '11, 11:56) nipanesanjay

Gmail doesn't support to select the '[Gmail]' folder. But you can list and select its subfolders.

(08 Aug '11, 11:59) Lukas Matyska ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×76

Asked: 08 Aug '11, 10:44

Seen: 463 times

Last updated: 08 Aug '11, 11:59