IMAP – Search for Messages by Message-ID or any Email Header Field

Using the Chilkat IMAP API: To download emails having the exact contents of a header field, or all emails where a given header field contains a specified substring, use the Search method like this: (C++) CkMessageSet *mset = imap.Search(“HEADER Message-ID 48208D0C”,true); (C#) Chilkat.MessageSet mset = imap.Search(“HEADER Message-ID 48208D0C”,true); If the Search method returns a non-NULL message set object, then download […]

IMAP “Not in the authenticated state” Error

The blog post explains the “Not in the authenticated state” error. ChilkatLog: SelectMailbox: DllDate: Feb 15 2010 UnlockPrefix: Anything for 30-day trial Username: NETWORK SERVICE Component: .NET 2.0 mailbox: Inbox Not in the authenticated state This error happens if the caller is either not connected to an IMAP server, or is connected but the Login method was never called or […]

IMAP: Select Public Folders

Question: How can I access Public Folders in IMAP? This does not work: imap.SelectMailbox(“Public Folders”) Answer: The syntax in Outlook may be different than what is actually used in the underlying IMAP protocol. For example, in Outlook you may see “public folders\all public folders\test”, but you would instead use: imap.SelectMailbox(“public folders/test”)

Modify Email on IMAP Server?

Question: Is it possible to change the Subject of an IMAP email? Answer: The IMAP protocol is such that emails (on the server) cannot be changed. This is not a Chilkat limitation, but it is the way IMAP works. In other words, if you want to change an email, you can download it, make changes, then “append” the new email […]

Deleting email in GMail

(A tip from a Chilkat customer.) The only way to delete emails on Gmail is in three steps: 1. Copy the email(s) to the folder called [Gmail]/Trash 2. Select all of the emails in [Gmail]/Trash and set the Deleted flag 3. Execute ExpungeAndClose or Expunge command I found that this is the only way to truly delete emails from Gmail.

Understanding GMail’s Behavior

This blog post will explain GMail in a way that will help you understand it’s seemingly strange behavior. The question that prompted this post is as follows: I am able to read mails from GMail mailbox using MailMan object. Is there any options to delete a mail permanently from GMail mailbox? When I am using the DeleteMail method the mail […]

Exchange Server – POP3, IMAP, and SMTP

Question: May I ask if is possible use Chilkat components to connect to MS Exchange 6.5 and higher ? I am thinking about purchase of MailMan component or other as it is, however I would like read some example in C# for reading emails from Exchange and sending emails via Exchange after connecting to the specified account domain/logname & password. […]

POP3 or IMAP for MS Exchange Server?

Question: I would like to use your product to process mail on an MS Exchange server. Which product should I use; Chilkat MAIL or Chilkat IMAP? I saw in your examples that I can use both to connect to an Exchange server MAIL with Pop3 and IMAP for a direct login on the server but which one is the best […]

GMail Settings for POP3 and IMAP Access

The most common problem with reading email from GMail using Chilkat’s POP3 and IMAP API’s is the following: The user can see certain emails when interactively logged onto GMail with a web browser, but cannot see those emails using Chilkat’s POP3 or IMAP component. The problem is caused by a setting in your GMail account. The default setting causes an […]