Posts Tagged ‘parse file’

Save e-mail to local file
private function handleMessage(event:IMessageEvent):void{

 var msg:MimeMessage = event.getMimeMessage();
 var file:File = File.desktopDirectory.resolvePath("mail_" + msg.messageId + ".eml");

 var fs:FileStream = new FileStream();
 fs.open(file,FileMode.WRITE);
 fs.writeBytes(event.source);
 fs.close();
}
Re-parse and make MimeMessage from local file

The following example is required v0.7 or more.


// var dir:File = File.someDirectoryYouWantToUse

var list:Array = dir.getDirectoryListing();
var length:int = list.length;
for(var i:int = 0; idownload airxmail

RSS
Add to Google
2017年5月
« 2月    
 123456
78910111213
14151617181920
21222324252627
28293031