Download SEE4CB Programmer`s Manual
Transcript
4.4 IMAP-Only Example Programs There are two IMAP-only example programs. These examples access the IMAP server. 4.4.1 ImapFlag The ImapFlag example program tests the manipulation of flags on the IMAP server. It reads, sets, and deletes certain flags for the specified email message on the IMAP server. IMAP flags are: \Seen \Answered \Flagged \Deleted \Draft \Recent Message has been read Message has been answered Message is "flagged" for urgent/special attention Message is "deleted" for removal by later EXPUNGE Message has not completed composition (marked as a draft). Message has arrived since the previous time this mailbox was selected. ["\Recent" may be fetched but not stored] The ImapFlag.CBL program must be edited with your email parameters before compiling. 4.4.2 ImapSrch The ImapSrch example program tests IMAP search capability. See ImapSearch.txt or http://www.marshallsoft.com/ImapSearch.htm for a complete list of all IMAP search strings. Example search strings as passed to seeImapSearch(): SEEN SEEN NOT ANSWERED FLAGGED SINCE 1-Feb-2008 NOT FROM "Smith" LARGER 10000 NOT SEEN The ImapSrch.CBL program must be edited with your email parameters before compiling. 15