<?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>Casey&#039;s Critical Thinking&#187; iPhone</title>
	<atom:link href="http://www.hoshuha.com/blog/category/iphone/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hoshuha.com/blog</link>
	<description>A blog about current events from a Christian perspective.</description>
	<lastBuildDate>Tue, 22 Jun 2010 07:49:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Pop-up notifications for new mail on the iPhone</title>
		<link>http://www.hoshuha.com/blog/pop-up-notifications-for-new-mail-on-the-iphone.html</link>
		<comments>http://www.hoshuha.com/blog/pop-up-notifications-for-new-mail-on-the-iphone.html#comments</comments>
		<pubDate>Sat, 30 Jan 2010 14:20:11 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[IMAProwl]]></category>
		<category><![CDATA[new mail]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[pop-up]]></category>
		<category><![CDATA[Prowl]]></category>

		<guid isPermaLink="false">http://www.hoshuha.com/blog/?p=692</guid>
		<description><![CDATA[Okay, I promise this will be the last iPhone post for at least a little while. After successfully getting push e-mail working on my iPhone, I got greedy and wanted to have a pop-up notification and sound alert when I got a new message. So here&#8217;s what I did: 1) Grabbed a copy of IMAProwl [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, I promise this will be the last iPhone post for at least a little while.</p>
<p>After successfully getting push e-mail working on my iPhone, I got greedy and wanted to have a pop-up notification and sound alert when I got a new message. So here&#8217;s what I did:</p>
<p>1) Grabbed a copy of IMAProwl from <a href="http://github.com/takuo/IMAProwl/downloads">here</a> and put it in /home/IMAProwl on my server.</p>
<p>2) Installed <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/RubyonRails/InstallingRuby">Ruby 1.9.0</a> with the OpenSSL module</p>
<p>3) Installed the Prowl gem for Ruby (via <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/GemInstaller">WebhostManager</a> after installing Ruby)</p>
<p>4) Created an account at <a href="http://prowl.weks.net/">Prowl</a></p>
<p>5) Purchased the Prowl app in the AppStore</p>
<p>6) Created a file named .imaprowl.conf in the IMAProwl directory with the following contents:</p>
<pre class="brush: php">## -*- encoding: utf-8 -*-
##
## example configuration (version &amp;gt;= 1.2)
##
## if undefine LogDir, Debug mode is forcefully enabled.
LogDir: /home/IMAProwl/logs/
Debug: false
Daemon: true

## API Key can be defined up to 5-keys with comma separated values.
Prowl:
APIKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

## IMAP Accounts.
Accounts:
-
Application: MyEmail
User: a@aa.com
Pass: mYpAsSwOrD
Host: server.aa.com
BodyLength: 100
SubjectLength: 20
Priority: 0
Format: &quot;%{subject} (%{name} &amp;lt;%{addr}&amp;gt;)&quot;
Timeout: 7    # Timeout for NoResponse during IDLE. Recommend you set 6-7 for GMail. (in minutes)
Enable: True
</pre>
<p>The host will vary depending on what your server name is. Might even be mail.domain.com. Of course, you will need to put your own e-mail address and password in there and insert your APIKey from the Prowl website.</p>
<p>7) Ran the command</p>
<pre>ruby imaprowl.rb -c .imaprowl.conf</pre>
<p>8) Configured the sounds in my Prowl app on my iPhone and sent myself a message. It worked!</p>
<p>I imagine this might be possible even if you don&#8217;t have your own server. You might want to check with your webhost and see if they have Ruby and if they will install the Prowl gem for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoshuha.com/blog/pop-up-notifications-for-new-mail-on-the-iphone.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Dovecot and iPhone push</title>
		<link>http://www.hoshuha.com/blog/dovecot-and-iphone-push.html</link>
		<comments>http://www.hoshuha.com/blog/dovecot-and-iphone-push.html#comments</comments>
		<pubDate>Fri, 29 Jan 2010 14:59:30 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[dovecot]]></category>
		<category><![CDATA[imap_idle]]></category>
		<category><![CDATA[push mail]]></category>
		<category><![CDATA[z-push]]></category>

		<guid isPermaLink="false">http://www.hoshuha.com/blog/?p=678</guid>
		<description><![CDATA[I don&#8217;t know how many of you out there have your own webserver and an iPhone, but I just found the thing I&#8217;ve been looking for ever since I got my iPhone: push e-mail! I have a webserver running cPanel, Dovecot and suPHP. Here&#8217;s what I did: 1) Download z-push from here. 2) Upload z-push [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know how many of you out there have your own webserver and an iPhone, but I just found the thing I&#8217;ve been looking for ever since I got my iPhone: push e-mail!</p>
<p>I have a webserver running cPanel, Dovecot and suPHP. Here&#8217;s what I did:</p>
<p>1) Download z-push from <a href="https://developer.berlios.de/project/showfiles.php?group_id=8963">here</a>.</p>
<p>2) Upload z-push to /usr/local/apache/htdocs</p>
<p>3) Change ownership to nobody (it fails if you leave it as root)</p>
<p>4) Modify index.php (if you are using suPHP)</p>
<p>Comment out $requestheaders = apache_request_headers(); and replace it with</p>
<pre class="brush: css">    function getHeaders()
{
$headers = array();
foreach ($_SERVER as $k =&gt; $v)
{
if (substr($k, 0, 5) == &quot;HTTP_&quot;)
{
$k = str_replace(&#039;_&#039;, &#039; &#039;, substr($k, 5));
$k = str_replace(&#039; &#039;, &#039;-&#039;, ucwords(strtolower($k)));
$headers[$k] = $v;
}
}
return $headers;
}
$requestheaders = getHeaders();
</pre>
<p>5) Modify config.php</p>
<p>Change $BACKEND_PROVIDER = &#8220;BackendICS&#8221;; to $BACKEND_PROVIDER = &#8220;BackendIMAP&#8221;;</p>
<p>6) Add the alias to httpd. conf (as explained in the config file, but use /usr/local/apache/htdocs instead of /var/ www)</p>
<p>7) Restart Apache</p>
<p>8) Go to your iPhone and set up your e-mail account as a Microsoft Exchange account. (Be sure to sync &#8220;All messages&#8221; or else you&#8217;ll be deleting things twice.)</p>
<p>9) Voila! You now have push mail on your iPhone with your Dovecot IMAP server!</p>
<p>Update:</p>
<p>10) You may need to modify backend/diffbackend.php to make it delete properly.</p>
<p>Find the following code:</p>
<pre class="brush: css">        function ImportMessageMove($id, $newfolder) {
return true;
}</pre>
<p>Change that to</p>
<pre class="brush: css">function ImportMessageMove($id, $newfolder) {
//do nothing if it is in a dummy folder
if ($this-&gt;_folderid == SYNC_FOLDER_TYPE_DUMMY)
return true;

// See if there&#039;s a conflict
$conflict = $this-&gt;isConflict(&quot;move&quot;, $this-&gt;_folderid, $id);

// Update client state
$change = array();
$change[&quot;id&quot;] = $id;
$change[&quot;newfolder&quot;] = $newfolder;
$this-&gt;updateState(&quot;move&quot;, $change);</pre>
<p>P.S. I am not the author of any of the above fixes. These were all found in the <a href="http://z-push.sourceforge.net/phpbb/">z-push.net forums</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoshuha.com/blog/dovecot-and-iphone-push.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>iPhone: The world&#8217;s most advanced mobile?</title>
		<link>http://www.hoshuha.com/blog/iphone.html</link>
		<comments>http://www.hoshuha.com/blog/iphone.html#comments</comments>
		<pubDate>Sun, 14 Jun 2009 07:21:51 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.hoshuha.com/blog/?p=612</guid>
		<description><![CDATA[For several years I&#8217;ve used a basic mobile phone here in Japan with a very limited data plan just so that I can meet up with people and be able to make emergency calls if the need were ever to arise. Some time ago, however, I realized that having a mobile phone on which I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-613" title="iphone" src="http://www.hoshuha.com/blog/wp-content/uploads/2009/06/iphone-249x300.png" alt="iphone" width="149" height="180" /></p>
<p>For several years I&#8217;ve used a basic mobile phone here in Japan with a very limited data plan just so that I can meet up with people and be able to make emergency calls if the need were ever to arise. Some time ago, however, I realized that having a mobile phone on which I could check my e-mail would make things a whole lot more convenient. Since I work from home, the inability to check e-mail away from my computer was keeping me tied to my desk even when I would otherwise be free to run errands or whatnot.</p>
<p>Anyway, SoftBank, the mobile carrier here in Japan that has an agreement with Apple, was running a campaign a couple of months ago called &#8220;iPhone for Everybody&#8221; in which they were giving the phones away with a 2-year contract. I decided now was the time, and so I got one. They advertise it as the world&#8217;s most advanced mobile platform, but I wonder if anyone at Apple has ever even looked at a Japanese mobile phone.</p>
<p>The very first thing I noticed was the inability to use infrared to send your contact information to another phone by just putting them next to each other. Then, when I started to type e-mails I realized it had no copy and paste function. Next, I took a photograph with the camera and realized there&#8217;s no flash or zoom. I also tried to scan the barcodes at shops to get their website info and stuff and, surprise, surprise, the iPhone can&#8217;t scan barcodes (not very well, anyway)! Moreover, e-mails sent to my phone do not come immediately, because the &#8220;push&#8221; e-mail function does not work yet.</p>
<p>In Japan, even the most basic phones come with copy and paste functionality, infrared, camera flashes, barcode scanning, push e-mail, etc. How on earth can Apple reps even describe the phone as &#8220;modern&#8221; with a straight face? A phone without copy and paste functionality is not advanced. It&#8217;s obsolete. Phones in Japan can be used to buy things from vending machines and convenience stores, pay utility bills, watch television, ride trains, find directions, surf the net, etc. In almost every respect, the iPhone is inferior to the majority of mobile phones in Japan.</p>
<p>There are certainly some things that I like about the iPhone: there are apps for tracking jogging routes, the GPS function can help people like me without a sense of direction find stores and, most of all, I can check my work e-mail on it. All of these things are available with Japanese phones, though, so if I had it to do all over again I&#8217;d probably go with a different phone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hoshuha.com/blog/iphone.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

