Posts Tagged ‘imap’

This is sample code for deleting a message with airxmail imap client class.

var client:IMAP4Client = ...;
client.addFlag(message_uid,IMAP4Flag.DELETED);
client.expunge();

I updated Gravity Mail.
This version features is “Tag” based management messages.

I want to make e-mail client application like my blog site using e-mail for my private purposes.
This page is Gravity Mail information page in Japanese.
But some images help you to understand it. I hope….

I am making e-mail client application using Adobe AIR.
Please see the details.

But this application is in development.

I released airxmail version 0.7.

New feature

IMAP4

If you use draft implementation, please change this version.

google code download

You have to care 2 type of content type if you want to get html part of e-mail message.

1 ) text/html
2 ) multipart/alternative

1 ) text/html

In this case, you can get html content very easily.
The mime message only has one body part.

private function handleMessage(event:IMessageEvent):void{
  var msg:MimeMessage = event.getMimeMessage();
  var htmlText:String = msg.bodyText;
}
2 ) multipart/alternative

This case is slightly harder than case 1.
But airxmail support to access to child part using findParts method.

var parts:Array = msg.findParts("text/html");
  if(parts.length > 0){
    var htmlText:String = MimeBodyPart(parts[0]).bodyText;
  }
}

Typically, text/html part is the only one.
So I think you don’t need to check first text/html part.

see source code

MimeMessage.findPart

RSS
Add to Google
2017年2月
« 2月    
 1234
567891011
12131415161718
19202122232425
262728