Comments on: Receive unseen emails using IMAP https://www.limilabs.com/blog/receive-unseen-emails-using-imap Using Limilabs .net components Mon, 29 Jul 2024 17:20:26 +0000 hourly 1 https://wordpress.org/?v=6.6.5 By: Limilabs support https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-581205 Fri, 15 Nov 2013 05:11:40 +0000 http://www.limilabs.com/blog/?p=1218#comment-581205 In reply to vescan.

@vescan,

You can try getting only most important email data without downloading actual emails.

]]>
By: vescan https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-581040 Thu, 14 Nov 2013 06:41:11 +0000 http://www.limilabs.com/blog/?p=1218#comment-581040 Is there anyway to retrieve all emails from a certain IMAP folder using one select and not one by one using GetMessageByUID. i dont know why, but for me getting emails one by one is very slow (2 emails per second)
TIA

]]>
By: Limilabs support https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-544001 Wed, 05 Jun 2013 09:27:45 +0000 http://www.limilabs.com/blog/?p=1218#comment-544001 In reply to Puneet.

@Puneet,

You should connect, login, read emails and disconnect (IMAP does not have log off command). Repeat those steps if needed.

]]>
By: Puneet https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-543993 Wed, 05 Jun 2013 05:20:57 +0000 http://www.limilabs.com/blog/?p=1218#comment-543993 As a part of requirement I have multiple email addresses and I have to write any application to read the emails from these email addresses.
I should login with 1st email address then read and loggoff. Re-login with second email address and repeat same steps. Am I correct?

]]>
By: Limilabs support https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-543879 Tue, 04 Jun 2013 15:14:44 +0000 http://www.limilabs.com/blog/?p=1218#comment-543879 In reply to Puneet.

@Puneet,

I’m not sure what “configurations” are you talking about, but if you have multiple accounts to check, you’ll need to connect and login to IMAP server for each of them separately.

]]>
By: Puneet https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-543851 Tue, 04 Jun 2013 11:00:17 +0000 http://www.limilabs.com/blog/?p=1218#comment-543851 I have a requirement to read incoming email subject, body and attachment. There may multiple email addresses which I have to read using single application. Till now what I discovered from your site this can be acheived using different configurations. Requesting to confirm whether my understanding is correct?

]]>
By: Limilabs support https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-543691 Tue, 04 Jun 2013 09:03:51 +0000 http://www.limilabs.com/blog/?p=1218#comment-543691 In reply to Puneet.

@Puneet,

Please disable your firewall and antivirus software. Are you sure you’ve provided all connection settings correctly? At which line did it happen? Consider reading this article if you have problems connecting.

]]>
By: Puneet https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-543665 Tue, 04 Jun 2013 07:31:27 +0000 http://www.limilabs.com/blog/?p=1218#comment-543665 I tried to use this but I am getting exception i.e. Unable to read data from the transport connection: An existing connection was forcibly closed by the host..

Please provide your inputs

]]>
By: Limilabs support https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-255270 Thu, 29 Nov 2012 15:45:14 +0000 http://www.limilabs.com/blog/?p=1218#comment-255270 In reply to Ajay.

@Ajay,

Of course, use Expression.And:

var query = Expression.And(
        Expression.UID(Range.From(largestUID + 1)),
        Expression.HasFlag(Flag.Unseen)
    );
List<long> uids = imap.Search(query);

More info on searching IMAP here.

Still searching for unseen messages should be very fast, even without the UID range part.

]]>
By: Ajay https://www.limilabs.com/blog/receive-unseen-emails-using-imap#comment-254857 Thu, 29 Nov 2012 10:41:03 +0000 http://www.limilabs.com/blog/?p=1218#comment-254857 For option 1, Can I combine the search criteria, like flag.Unseen and Uid greater than last sync?

Thanks.

]]>