**Lukas, one observation: I am fetching emails from yahoo account and when i debug this scode line:

// search for messages, receive only Unique ids
ImapMessageCollection ids = imap.Search(ImapListFields.UniqueId, imapSearchParameter);

then I found that even though my imapSearchParameter is matching with more no. of emails (I verified it manually), above code line returns only 160 no. of emails. Is there any restriction that yahoo account returns only 160 emails? Please suggest. My imapSearchParameter is for subjects.

The value set is "{OR (OR (OR (SUBJECT Order) (SUBJECT Invoice)) (OR (SUBJECT Receipts) (SUBJECT Receipt))) (OR (OR (SUBJECT Ship) (SUBJECT "Direct Confirmation")) (OR (SUBJECT Tracking) (OR (SUBJECT ordering) (SUBJECT Shipping)))) SINCE 22-Feb-2010 BEFORE 23-Aug-2011 NOT DELETED}".**

asked 22 Aug '11, 10:27

SanjayN's gravatar image

SanjayN
212
accept rate: 0%

edited 22 Aug '11, 18:09

Martin%20Vobr's gravatar image

Martin Vobr ♦♦
335310

Any updateS?

(22 Aug '11, 12:00) SanjayN
1

Please note what RFC says about the SUBJECT search:

SUBJECT <string>
Messages that contain the specified string in the envelope structure's SUBJECT field.

In your case, removing condition "Shipping" and "Receipts" can lead to better performance.

But be careful. I tried following search with Gmail, Yahoo! and MS Exchange: I have a mail with subject "Testing mail".

If I was searching "Testing" all servers found the mail.
If I was searching "Test" Gmail didn't find the mail.
If I was searching "sting" only MS Exchange found the mail.

(22 Aug '11, 14:43) Lukas Matyska ♦♦

It seems the Yahoo! limits the number of returned IDs to 160 in any text search (SUBJECT, FROM, TO, ...) indeed. I have sent a question to Yahoo! support. I will inform you about their reply here.

link

answered 22 Aug '11, 14:23

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

It seems that SUBJECT based search is going to give inconsistent results with different mail accounts. I think its better to apply SUBJECT based search criteria manually. Your thoughts.

(22 Aug '11, 15:35) SanjayN

If you can afford to download all mails without applying the SUBJECT criteria it is probably the best solution. But unfortunately this is not possible in all cases.

(22 Aug '11, 16:29) Lukas Matyska ♦♦

Any updates from yahoo?

(24 Aug '11, 08:47) SanjayN

No, we received a mail with information that the question was routed to Technical support, but still no response.

(24 Aug '11, 11:00) Lukas Matyska ♦♦

ok thanks .

(24 Aug '11, 11:25) SanjayN
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: 22 Aug '11, 10:27

Seen: 234 times

Last updated: 24 Aug '11, 11:25