<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Coltware - AIR/Flex/ActionScript 3</title>
	<atom:link href="http://flex.coltware.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex.coltware.com</link>
	<description>AIR/Flex/ActionScript blog</description>
	<lastBuildDate>Thu, 12 Jan 2012 03:13:03 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Started to develop Mail WEB API Server</title>
		<link>http://flex.coltware.com/2012/01/12/mail-web-api-server/</link>
		<comments>http://flex.coltware.com/2012/01/12/mail-web-api-server/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 03:13:03 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Yahoo Mail Server]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=201</guid>
		<description><![CDATA[I started to develop Mail WEB API server.
I inspired by Yahoo Mail Service.
It doesn&#8217;t depends on Any specific mail service.
So you can choose Gmail , Yahoo mail , Any other SMTP/IMAP4/POP3 server. 
I&#8217;d like to show the demo implementation until April 2012.
The following picture is technical stack so far.
 
The feature plan
* Text EventStream connection  [...]]]></description>
			<content:encoded><![CDATA[<p>I started to develop Mail WEB API server.<br />
I inspired by <a href="http://developer.yahoo.com/mail/" target="_blank">Yahoo Mail Service</a>.<br />
It doesn&#8217;t depends on Any specific mail service.<br />
So you can choose Gmail , Yahoo mail , Any other SMTP/IMAP4/POP3 server. </p>
<p>I&#8217;d like to show the demo implementation until April 2012.</p>
<p>The following picture is technical stack so far.</p>
<p><a href="http://flex.coltware.com/wp-content/uploads/2012/01/20120106.png"><img src="http://flex.coltware.com/wp-content/uploads/2012/01/20120106.png" alt="" title="20120106" width="600" height="239" class="alignnone size-full wp-image-202" /></a> </p>
<h5>The feature plan</h5>
<p>* Text EventStream connection for server push event.<br />
   etc ) to know new incoming mail<br />
* Auto-reconnect for POP3/IMAP4<br />
   ( Username/Password saved instance memory )<br />
* use Database System.<br />
* ActionScript Client API<br />
* Network layer authority<br />
  Example:<br />
　If you see messages from LAN , No limitation exists.<br />
  But you see messages from Internet, You can&#8217;t download any attachments files.<br />
  Or you can&#8217;t see very important message.<br />
  etc, etc..<br />
* Full text-index search</p>
<h5>Requirement:</h5>
<p> Java :<br />
  Not work on Android so far. But I don&#8217;t want to use the library that does NOT support to work on Android.<br />
  So I don&#8217;t use Tomcat or Any J2EE application server.<br />
 DB:<br />
    MySQL, PostgreSQL, Apache Derby, H2, SQLite</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>03/17/2010 -- <a href="http://flex.coltware.com/2010/03/17/mail-attachements-airxmail-smtp/" title="actionscript 3 : how to send email attachements ( use airxmail library) ">actionscript 3 : how to send email attachements ( use airxmail library) </a> (21)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2012/01/12/mail-web-api-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxmail:need info about airxmail and ipad</title>
		<link>http://flex.coltware.com/2011/11/10/airxmail-ipad/</link>
		<comments>http://flex.coltware.com/2011/11/10/airxmail-ipad/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 14:14:21 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=197</guid>
		<description><![CDATA[I need information whether airxmail work well on ipad or not.
Recently I got same question from some peoples. in Japan and us and etc&#8230;
They says.
airxmail work well on ipad simulator, but does NOT work well on real ipad.
But I don&#8217;t have ipad or iphone.
So I need information.
If somebody have any information,
Please write comment or send  [...]]]></description>
			<content:encoded><![CDATA[<p>I need information whether airxmail work well on ipad or not.</p>
<p>Recently I got same question from some peoples. in Japan and us and etc&#8230;<br />
They says.<br />
airxmail work well on ipad simulator, but does NOT work well on real ipad.<br />
But I don&#8217;t have ipad or iphone.<br />
So I need information.</p>
<p>If somebody have any information,<br />
Please write comment or send me e-mail.</p>
<p>Regards</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>11/22/2010 -- <a href="http://flex.coltware.com/2010/11/22/airxmail-and-imap4/" title="airxmail: IMAP4 draft implementation">airxmail: IMAP4 draft implementation</a> (19)</li><li>11/19/2010 -- <a href="http://flex.coltware.com/2010/11/19/airxmail-how-to-get-mail-attachemnt-files/" title="airxmail: How to get mail attachemnt files">airxmail: How to get mail attachemnt files</a> (5)</li><li>08/25/2010 -- <a href="http://flex.coltware.com/2010/08/25/airxmail-plain-text-mail-with-attachments/" title="airxmail: plain text mail with attachments">airxmail: plain text mail with attachments</a> (25)</li><li>04/22/2011 -- <a href="http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/" title="airxmail: How to save e-mail to local file and re-parse the data">airxmail: How to save e-mail to local file and re-parse the data</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/11/10/airxmail-ipad/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AIR:Update GravityMail( Mail Client Application)</title>
		<link>http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/</link>
		<comments>http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 03:53:57 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[airxzip]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[Mail Client]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=191</guid>
		<description><![CDATA[I updated Gravity Mail.
This version features is &#8220;Tag&#8221; 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&#8230;.
Related Posts07/10/2011 -- Mail Client Application on Adobe AIR (0)04/21/2011 -- airxmail:  [...]]]></description>
			<content:encoded><![CDATA[<p>I updated Gravity Mail.<br />
This version features is &#8220;Tag&#8221; based management messages.</p>
<p>I want to make e-mail client application like my blog site using e-mail for my private purposes.<br />
<a href="http://www.coltware.com/labo/gravitymail/" target="_blank">This page</a> is Gravity Mail information page in Japanese.<br />
But some images help you to understand it. I hope&#8230;.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li><li>04/21/2011 -- <a href="http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/" title="airxmail: release V0.7 ">airxmail: release V0.7 </a> (2)</li><li>03/07/2010 -- <a href="http://flex.coltware.com/2010/03/07/airxmail-google-buzz/" title="Airxmail &#8211; sample for google gmail buzz">Airxmail &#8211; sample for google gmail buzz</a> (5)</li><li>04/01/2011 -- <a href="http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/" title="airxmail:How to get html part of e-mail message">airxmail:How to get html part of e-mail message</a> (3)</li><li>02/02/2011 -- <a href="http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/" title="air: using syslog output for Adobe AIR">air: using syslog output for Adobe AIR</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mail Client Application on Adobe AIR</title>
		<link>http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/</link>
		<comments>http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 20:13:00 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[airxzip]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[Mailer]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=174</guid>
		<description><![CDATA[I am making e-mail client application using Adobe AIR.
Please see the details.
But this application is in development.
Related Posts07/25/2011 -- AIR:Update GravityMail( Mail Client Application) (2)04/21/2011 -- airxmail: release V0.7  (2)03/07/2010 -- Airxmail &#8211; sample for google gmail buzz (5)04/01/2011 -- airxmail:How to get html part of e-mail message (3)02/02/2011 -- air: using syslog output  [...]]]></description>
			<content:encoded><![CDATA[<p>I am making e-mail client application using Adobe AIR.<br />
Please see the <a href="/air-gravity-mail">details.</a></p>
<p>But this application is in development.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>04/21/2011 -- <a href="http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/" title="airxmail: release V0.7 ">airxmail: release V0.7 </a> (2)</li><li>03/07/2010 -- <a href="http://flex.coltware.com/2010/03/07/airxmail-google-buzz/" title="Airxmail &#8211; sample for google gmail buzz">Airxmail &#8211; sample for google gmail buzz</a> (5)</li><li>04/01/2011 -- <a href="http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/" title="airxmail:How to get html part of e-mail message">airxmail:How to get html part of e-mail message</a> (3)</li><li>02/02/2011 -- <a href="http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/" title="air: using syslog output for Adobe AIR">air: using syslog output for Adobe AIR</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxzip: how to use unzipAsync() method</title>
		<link>http://flex.coltware.com/2011/05/03/airxzip-unzipasync/</link>
		<comments>http://flex.coltware.com/2011/05/03/airxzip-unzipasync/#comments</comments>
		<pubDate>Tue, 03 May 2011 02:11:16 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[airxzip]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[unzipAsync]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=169</guid>
		<description><![CDATA[[as3]
var zipReader:ZipFileReader = new ZipFileReader();
zipReader.addEventListener(ZipEvent.ZIP_DATA_UNCOMPRESS,uncompressData);
zipReader.open(file);
var entries:Array = zipReader.getEntries();
for(var i:int = 0; i]]></description>
			<content:encoded><![CDATA[<p>[as3]<br />
var zipReader:ZipFileReader = new ZipFileReader();<br />
zipReader.addEventListener(ZipEvent.ZIP_DATA_UNCOMPRESS,uncompressData);<br />
zipReader.open(file);<br />
var entries:Array = zipReader.getEntries();<br />
for(var i:int = 0; i<entries.length; i++){<br />
     var entry:ZipEntry = entries[i] as ZipEntry;<br />
     zipReader.unzipAsync(entry);<br />
}<br />
[/as3]</p>
<p>sample unzipAsync event handler<br />
( save file )<br />
[as3]<br />
private function uncompressData(e:ZipEvent):void{<br />
    var entry:ZipEntry = e.entry;<br />
    var file:File = dir.resolvePath(entry.getFilename());<br />
    var fs:FileStream = new FileStream();<br />
    fs.open(file,FileMode.WRITE);<br />
    fs.writeBytes(e.data);<br />
    fs.close();<br />
}<br />
[/as3]</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>05/06/2010 -- <a href="http://flex.coltware.com/2010/05/06/actionscript3-how-to-make-unix-zip-file-on-windows-airxzip/" title="actionscript3: How to make Unix zip file on Windows ( airxzip )">actionscript3: How to make Unix zip file on Windows ( airxzip )</a> (1)</li><li>05/01/2010 -- <a href="http://flex.coltware.com/2010/05/01/as3-zip-unzip-lib-airxzip/" title="actionscript3: Zip/Unzip library for AIR">actionscript3: Zip/Unzip library for AIR</a> (8)</li><li>01/12/2011 -- <a href="http://flex.coltware.com/2011/01/12/androidconvert-oreilly-ebook-appfileapk-to-epub-file/" title="android:convert o’reilly ebook appfile(apk) to epub file.">android:convert o’reilly ebook appfile(apk) to epub file.</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/05/03/airxzip-unzipasync/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to debug application on Adobe Android AIR ( Android phone )</title>
		<link>http://flex.coltware.com/2011/04/27/debug-app-on-android-air/</link>
		<comments>http://flex.coltware.com/2011/04/27/debug-app-on-android-air/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 03:47:49 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[rsyslog]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[TCPSyslogTarget]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=163</guid>
		<description><![CDATA[Recently, I started developing application on Adobe Android AIR.
But I wonder how I can debug my application on Android Phone.
I searched it, but many solutions can&#8217;t fit my case.
My requirements are
1 ) No USB connection
2 ) No Android SDK on my PC.
3 ) Can support on production mode ( No debug player )
In other words,  [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I started developing application on Adobe Android AIR.<br />
But I wonder how I can debug my application on Android Phone.</p>
<p>I searched it, but many solutions can&#8217;t fit my case.<br />
My requirements are<br />
1 ) No USB connection<br />
2 ) No Android SDK on my PC.<br />
3 ) Can support on production mode ( No debug player )</p>
<p>In other words, The limitations move to outer enviroment from app and android phone.<br />
And I want to control the outer environment.</p>
<h4>My solution</h4>
<h5>Requirements</h5>
<p>1 ) Need syslog server that can support TCP connetcion ( these are &#8220;rsyslog&#8221; or  &#8220;syslog-ng&#8221; as I know )<br />
2 ) TCPSyslogTarget as3 class ( can download on <a href="http://code.google.com/p/airxlib/downloads/list">airxlib_log</a> )<br />
3 ) Wifi connection ( optional )<br />
&#8220;optional&#8221; means .. I don&#8217;t think it is easy to make syslog server on the global network.</p>
<h5>setup syslog server</h5>
<p>The following config is a part of &#8220;rsyslog.conf&#8221;.</p>
<pre>
$ModLoad imtcp.so
$InputTCPServerRun 514
$AllowedSender TCP, 127.0.0.1, 192.168.1.0/24
:
local1.*                                                /var/log/air.log
</pre>
<h5>setup logging functions on your source code</h5>
<p>[as3]<br />
import com.coltware.airxlib.log.TCPSyslogTarget;</p>
<p>//  my syslog server&#8217;s ip is &#8220;192.168.1.5&#8243;. please change </p>
<p>var syslog:TCPSyslogTarget = new TCPSyslogTarget(&#8220;192.168.1.5&#8243;);<br />
syslog.program = &#8220;AdobeAIR&#8221;;<br />
syslog.filters = ["*"];<br />
syslog.level = LogEventLevel.DEBUG;<br />
syslog.facility = TCPSyslogTarget.LOG_LOCAL1;<br />
syslog.includeCategory = true;<br />
Log.addTarget(syslog);<br />
[/as3]</p>
<p>use flex logging functions.<br />
[as3]<br />
import mx.logging.ILogger;<br />
import mx.logging.Log;</p>
<p>private static var log:ILogger = Log.getLogger(&#8220;foofoo&#8221;);<br />
log.debug(&#8220;mmmmmm&#8230;.&#8221;);<br />
[/as3]</p>
<p>At first, I tried to use UDP connection. But I can&#8217;t. ( I don&#8217;t know the reason )</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>02/02/2011 -- <a href="http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/" title="air: using syslog output for Adobe AIR">air: using syslog output for Adobe AIR</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/27/debug-app-on-android-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>airxmail: How to save e-mail to local file and re-parse the data</title>
		<link>http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/</link>
		<comments>http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 03:31:07 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[airxmail]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[parse file]]></category>
		<category><![CDATA[save file]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=159</guid>
		<description><![CDATA[Save e-mail to local file
[as3]
private function handleMessage(event:IMessageEvent):void{
　var msg:MimeMessage = event.getMimeMessage();
　var file:File = File.desktopDirectory.resolvePath(&#8220;mail_&#8221; + msg.messageId + &#8220;.eml&#8221;);
　var fs:FileStream = new FileStream();
　fs.open(file,FileMode.WRITE);
　fs.writeBytes(event.source);
　fs.close();
}
[/as3]
Re-parse and make MimeMessage from local file
The following example is required v0.7 or more.
[as3]
// var dir:File = File.someDirectoryYouWantToUse
var list:Array = dir.getDirectoryListing();
var length:int = list.length;
for(var i:int = 0; i]]></description>
			<content:encoded><![CDATA[<h5>Save e-mail to local file</h5>
<p>[as3]<br />
private function handleMessage(event:IMessageEvent):void{</p>
<p>　var msg:MimeMessage = event.getMimeMessage();<br />
　var file:File = File.desktopDirectory.resolvePath(&#8220;mail_&#8221; + msg.messageId + &#8220;.eml&#8221;);</p>
<p>　var fs:FileStream = new FileStream();<br />
　fs.open(file,FileMode.WRITE);<br />
　fs.writeBytes(event.source);<br />
　fs.close();<br />
}<br />
[/as3]</p>
<h5>Re-parse and make MimeMessage from local file</h5>
<p>The following example is required v0.7 or more.</p>
<p>[as3]<br />
// var dir:File = File.someDirectoryYouWantToUse</p>
<p>var list:Array = dir.getDirectoryListing();<br />
var length:int = list.length;<br />
for(var i:int = 0; i<length; i++){<br />
	var file:File = list[i];<br />
        if(!file.isDirectory){<br />
	        var fs:FileStream = new FileStream();<br />
	        fs.openAsync(file,FileMode.READ);<br />
	        fs.open(file,FileMode.READ);</p>
<p>	        var parser:MailParser = new MailParser();<br />
	        var msg:MimeMessage = parser.parseStream(fs);<br />
	        var text:String = msg.bodyText;</p>
<p>	        log.debug("subject : [" + msg.subjectUTF8 + "]");<br />
	        log.debug(text);</p>
<p>	       fs.close();<br />
	}<br />
}<br />
[/as3]</p>
<p><a href="http://code.google.com/p/airxmail/downloads/list" target="_blank">download airxmail</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>11/10/2011 -- <a href="http://flex.coltware.com/2011/11/10/airxmail-ipad/" title="airxmail:need info about airxmail and ipad">airxmail:need info about airxmail and ipad</a> (5)</li><li>04/01/2011 -- <a href="http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/" title="airxmail:How to get html part of e-mail message">airxmail:How to get html part of e-mail message</a> (3)</li><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>01/12/2011 -- <a href="http://flex.coltware.com/2011/01/12/airxmail-how-to-use-starttls-extension-to-smtp2/" title="airxmail: How to use STARTTLS extension to SMTP(2)">airxmail: How to use STARTTLS extension to SMTP(2)</a> (3)</li><li>12/03/2010 -- <a href="http://flex.coltware.com/2010/12/03/airxmail-how-to-use-starttls-command/" title="airxmail: How to use STARTTLS extension to SMTP">airxmail: How to use STARTTLS extension to SMTP</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/22/airxmail-save-file-and-re-parse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>airxmail: release V0.7</title>
		<link>http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/</link>
		<comments>http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 17:52:50 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[airxmail]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[imap4]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=154</guid>
		<description><![CDATA[I released airxmail version 0.7.
New feature
IMAP4
If you use draft implementation, please change this version.
google code download
Related Posts11/22/2010 -- airxmail: IMAP4 draft implementation (19)07/25/2011 -- AIR:Update GravityMail( Mail Client Application) (2)07/10/2011 -- Mail Client Application on Adobe AIR (0)01/22/2011 -- airxmail: How to know the communication between server and Airxmail. (0)11/19/2010 -- airxmail: How to get  [...]]]></description>
			<content:encoded><![CDATA[<p>I released airxmail version 0.7.</p>
<h3>New feature</h3>
<p>IMAP4</p>
<p>If you use draft implementation, please change this version.</p>
<p><a href="http://code.google.com/p/airxmail/downloads/list">google code download</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>11/22/2010 -- <a href="http://flex.coltware.com/2010/11/22/airxmail-and-imap4/" title="airxmail: IMAP4 draft implementation">airxmail: IMAP4 draft implementation</a> (19)</li><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>11/19/2010 -- <a href="http://flex.coltware.com/2010/11/19/airxmail-how-to-get-mail-attachemnt-files/" title="airxmail: How to get mail attachemnt files">airxmail: How to get mail attachemnt files</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>airxmail:How to get html part of e-mail message</title>
		<link>http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/</link>
		<comments>http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 10:03:41 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[airxmail]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[pop3]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=148</guid>
		<description><![CDATA[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.
[as3]
private function handleMessage(event:IMessageEvent):void{
  var msg:MimeMessage = event.getMimeMessage();
  var htmlText:String = msg.bodyText;
}
[/as3]   [...]]]></description>
			<content:encoded><![CDATA[<p>You have to care 2 type of content type if you want to get html part of e-mail message.</p>
<p>1 ) text/html<br />
2 ) multipart/alternative</p>
<h5>1 ) text/html </h5>
<p>In this case, you can get html content very easily.<br />
The mime message only has one body part.</p>
<p>[as3]<br />
private function handleMessage(event:IMessageEvent):void{<br />
  var msg:MimeMessage = event.getMimeMessage();<br />
  var htmlText:String = msg.bodyText;<br />
}<br />
[/as3]  </p>
<h5>2 ) multipart/alternative </h5>
<p>This case is slightly harder than case 1.<br />
But airxmail support to access to child part using <i>findParts</i> method.</p>
<p>[as3]<br />
var parts:Array = msg.findParts(&#8220;text/html&#8221;);<br />
  if(parts.length > 0){<br />
    var htmlText:String = MimeBodyPart(parts[0]).bodyText;<br />
  }<br />
}<br />
[/as3]</p>
<p>Typically, text/html part is the only one.<br />
So I think you don&#8217;t need to check first text/html part.</p>
<h5>see source code</h5>
<p><a href="http://code.google.com/p/airxmail/source/browse/trunk/src/com/coltware/airxmail/MimeMessage.as#317">MimeMessage.findPart</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>11/22/2010 -- <a href="http://flex.coltware.com/2010/11/22/airxmail-and-imap4/" title="airxmail: IMAP4 draft implementation">airxmail: IMAP4 draft implementation</a> (19)</li><li>11/19/2010 -- <a href="http://flex.coltware.com/2010/11/19/airxmail-how-to-get-mail-attachemnt-files/" title="airxmail: How to get mail attachemnt files">airxmail: How to get mail attachemnt files</a> (5)</li><li>11/10/2011 -- <a href="http://flex.coltware.com/2011/11/10/airxmail-ipad/" title="airxmail:need info about airxmail and ipad">airxmail:need info about airxmail and ipad</a> (5)</li><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/04/01/airxmail-get-html-part-of-email-message/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>air: using syslog output for Adobe AIR</title>
		<link>http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/</link>
		<comments>http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 15:47:46 +0000</pubDate>
		<dc:creator>coltware</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://flex.coltware.com/?p=140</guid>
		<description><![CDATA[I made a class for syslog output for Adobe AIR.
Because I want to see logs using linux &#8220;tail&#8221; &#038; &#8220;grep&#8221; command.
Download:
coltware_airxlib_log_r3.swc on code.google.com
Class name: UDPSyslogTarget.as
How to use UDPSyslogTarget
[as3]
import com.coltware.airxlib.log.UDPSyslogTarget;
var syslog:UDPSyslogTarget = new UDPSyslogTarget(&#8220;192.168.1.5&#8243;);
syslog.facility = UDPSyslogTarget.LOG_LOCAL1;
syslog.program = &#8220;AdobeAIR&#8221;;
syslog.filters = ["com.coltware.*"];
syslog.level = LogEventLevel.DEBUG;
syslog.includeCategory = true;
Log.addTarget(syslog);
[/as3]
Line 3. Set hostname and port(default is 514)
Line 4. Set facility
Line 5. Set  [...]]]></description>
			<content:encoded><![CDATA[<p>I made a class for syslog output for Adobe AIR.<br />
Because I want to see logs using linux &#8220;tail&#8221; &#038; &#8220;grep&#8221; command.</p>
<p>Download:<br />
coltware_airxlib_log_r3.swc on <a href="http://code.google.com/p/airxlib/downloads/list">code.google.com</a><br />
Class name: <a href="http://code.google.com/p/airxlib/source/browse/trunk/src/com/coltware/airxlib/log/UDPSyslogTarget.as">UDPSyslogTarget.as</a></p>
<h5>How to use UDPSyslogTarget</h5>
<p>[as3]<br />
import com.coltware.airxlib.log.UDPSyslogTarget;</p>
<p>var syslog:UDPSyslogTarget = new UDPSyslogTarget(&#8220;192.168.1.5&#8243;);<br />
syslog.facility = UDPSyslogTarget.LOG_LOCAL1;<br />
syslog.program = &#8220;AdobeAIR&#8221;;<br />
syslog.filters = ["com.coltware.*"];<br />
syslog.level = LogEventLevel.DEBUG;<br />
syslog.includeCategory = true;<br />
Log.addTarget(syslog);<br />
[/as3]</p>
<p>Line 3. Set hostname and port(default is 514)<br />
Line 4. Set facility<br />
Line 5. Set program name</p>
<p>Other properties are same as TraceTarget class.</p>
<p>If you don&#8217;t know how to use TraceTarget, please see <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/#log">HERE</a>.</p>
<h5>output sample</h5>
<p>[shell]<br />
Feb  1 23:46:01 [info] AdobeAIR: com.coltware.airxlib.db.DBManager create if not exists table &#8230;. invoked<br />
Feb  1 23:46:02 [info] AdobeAIR: com.coltware.airxlib.db.DBManager TABLE CREATE OK<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [1/7] [SQL:] CREATE TABLE  IF NOT EXISTS project(<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [2/7] sysid INTEGER  PRIMARY KEY AUTOINCREMENT ,<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [3/7] title TEXT  NOT NULL ,<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [4/7] createdAt DATE  NOT NULL ,<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [5/7] updatedAt DATE  NOT NULL ,<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [6/7] createdBy INTEGER ,<br />
Feb  1 23:46:02 [debug] AdobeAIR: com.coltware.airxlib.db.DBManager [7/7] updatedBy INTEGER );<br />
[/shell]</p>
<h5>rsyslog conf(sample)</h5>
<p> [shell]<br />
$template air,&#8221;%timegenerated% [%syslogseverity-text%] %programname%: %msg%&#8221;<br />
local1.*                                                /var/log/air.log;air<br />
[/shell]</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>01/22/2011 -- <a href="http://flex.coltware.com/2011/01/22/inside-airxmail/" title="airxmail: How to know the communication between server and Airxmail.">airxmail: How to know the communication between server and Airxmail.</a> (0)</li><li>07/25/2011 -- <a href="http://flex.coltware.com/2011/07/25/airupdate-gravitymail-mail-client-application/" title="AIR:Update GravityMail( Mail Client Application)">AIR:Update GravityMail( Mail Client Application)</a> (2)</li><li>07/10/2011 -- <a href="http://flex.coltware.com/2011/07/10/mail-client-application-by-adobe-air/" title="Mail Client Application on Adobe AIR">Mail Client Application on Adobe AIR</a> (0)</li><li>04/27/2011 -- <a href="http://flex.coltware.com/2011/04/27/debug-app-on-android-air/" title="How to debug application on Adobe Android AIR ( Android phone )">How to debug application on Adobe Android AIR ( Android phone )</a> (0)</li><li>04/21/2011 -- <a href="http://flex.coltware.com/2011/04/21/airxmail-release-v0-7/" title="airxmail: release V0.7 ">airxmail: release V0.7 </a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://flex.coltware.com/2011/02/02/using-syslog-output-for-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

