. .

smalltalkDaily

Smalltalk Daily 09/17/10: Getting Email with IMAP

September 17, 2010 7:21:00.256

Today's Smalltalk Daily looks at retrieving email messages with IMAP from Cincom Smalltalk. The code used is below; to skip to the video, click here.


"login"
imap := IMAPClient host: cincom.
netuser := NetUser username: username password: password.
imap user: netuser.
imap connect; login.

"work with the mailbox"
data := imap examineMailbox: 'inbox'.
numMessages := data first value asNumber.
msgs := imap fetchMessages: (1 to: numMessages) asArray.

"delete from server"
imap markForDelete: (1 to: numMessages) asArray.
imap close.


If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , ,

posted by James Robertson

 Share Tweet This