Programmatically searching GMail?

前端 未结 4 1018
北荒
北荒 2021-02-04 15:56

Is there any way to programmatically search GMail, preferably using C#?

For example, I\'d like to get all email messages matching the search label:MyLabel from:no_re

4条回答
  •  别跟我提以往
    2021-02-04 16:26

    Create an IMAP client, or use a library, to access Gmail and search for e-mail messages. The IMAP protocol explicitly supports searching on the server-side. Make sure IMAP access is enabled for the Gmail account.

    Note that in Gmail, labels are treated like IMAP folders.

提交回复
热议问题