<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: How-To: Forum Email Gateway</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/49</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 01:10:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/49" rel="self" type="application/rss+xml" />

		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-63309</link>
			<pubDate>Mon, 15 Nov 2010 21:47:03 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">63309@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>ok, since no one responded to the question, I'm closing my gateway. If anyone needs to use the gateway, the instructions are all over this thread :-P</p>
<p>If you still have problems, PM me.
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-62792</link>
			<pubDate>Thu, 11 Nov 2010 12:49:26 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">62792@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Is everyone still using the email gateway? I have a few users in my gateway and I'm not using it anymore, but it's still running...
</p></description>
		</item>
		<item>
			<title>Yostie on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-57461</link>
			<pubDate>Thu, 30 Sep 2010 15:01:37 +0000</pubDate>
			<dc:creator>Yostie</dc:creator>
			<guid isPermaLink="false">57461@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Does cocos2d-iphone work on your pc? Because I want to make iPhone apps on my PC
</p></description>
		</item>
		<item>
			<title>leocck on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-53628</link>
			<pubDate>Sat, 04 Sep 2010 04:49:55 +0000</pubDate>
			<dc:creator>leocck</dc:creator>
			<guid isPermaLink="false">53628@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi all,</p>
<p>With some work I've manage to modify Rolando's script to redirect the forum posts to my email.</p>
<p>If you are interested please PM me then I can send it to you, but keep in mind these limitations for my version:</p>
<ul>
<li>You need to install Ruby and the Gems. That was a great adventure for me but some googleling and I've managed it.</li>
<li>You need a new Gmail account to send emails for your personal email. You can use your own Gmail account, but the sender will be showed as "me" and the threads will not be showed together</li>
<li>The sender cannot be specified due to Gmail restrictions</li>
<li>Gmail doesn't allow more than 100 messages per day. I had some issues with that and I can't guarantee you will receive all messages if forums became too active</li>
<li>You must change the script with your Gmail and Cocos2d Forum configurations (I can send instructions)</li>
<li>Due to my lack of Ruby knowledge, I was not capable to turn on (safely at least) automatically responses from your email, and I strongly DO NOT RECOMMEND THAT. You can end up deleting all your inbox messages or sending tons of junk on cocos2d forum... Inside the emails is included a link for the whole thread if you like to reply it (that's enough for me)</li>
<li>For convenience, I've configure the script to send me messages from all categories, but you can remove categories manually if you want</li>
<li>I've test it on my iMac - Snow Leopard. Do not know if it works on other plataforms</li>
</ul>
<p><strong> </strong><br />
Finally, I must thank Rolando for the script and directions.</p>
<p>Best regards
</p></description>
		</item>
		<item>
			<title>callaway vft irons on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-25044</link>
			<pubDate>Sun, 31 Jan 2010 10:10:43 +0000</pubDate>
			<dc:creator>callaway vft irons</dc:creator>
			<guid isPermaLink="false">25044@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>sound a bit complited, but got it to work
</p></description>
		</item>
		<item>
			<title>ashar.samdani on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-18687</link>
			<pubDate>Mon, 16 Nov 2009 10:48:42 +0000</pubDate>
			<dc:creator>ashar.samdani</dc:creator>
			<guid isPermaLink="false">18687@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi Rolando,</p>
<p>Can you please let me know how can i send you my username/password to add them in the script.</p>
<p>--<br />
Ashar
</p></description>
		</item>
		<item>
			<title>leocck on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-18318</link>
			<pubDate>Thu, 12 Nov 2009 20:45:03 +0000</pubDate>
			<dc:creator>leocck</dc:creator>
			<guid isPermaLink="false">18318@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>hi there,<br />
I'm currently trying do use Rolando's script.<br />
If I succeed I'll post here.
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-13137</link>
			<pubDate>Thu, 24 Sep 2009 16:03:48 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">13137@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>also, psionic: I think I removed your email because all emails were bouncing. PM with a new email if you want.
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-13135</link>
			<pubDate>Thu, 24 Sep 2009 16:02:33 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">13135@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I had a few problems with the gateway: too many users and gmail was complaining I was sending too much email :-P</p>
<p>rolando.
</p></description>
		</item>
		<item>
			<title>psionic on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-9844</link>
			<pubDate>Fri, 28 Aug 2009 19:15:22 +0000</pubDate>
			<dc:creator>psionic</dc:creator>
			<guid isPermaLink="false">9844@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>is your gateway still active? i haven't gotten any new topic updates lately</p>
<p>thanks,<br />
chris
</p></description>
		</item>
		<item>
			<title>neyestrabelli on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-5105</link>
			<pubDate>Thu, 23 Jul 2009 11:21:13 +0000</pubDate>
			<dc:creator>neyestrabelli</dc:creator>
			<guid isPermaLink="false">5105@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Codemattic, thanks!
</p></description>
		</item>
		<item>
			<title>Codemattic on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-4643</link>
			<pubDate>Mon, 20 Jul 2009 23:25:54 +0000</pubDate>
			<dc:creator>Codemattic</dc:creator>
			<guid isPermaLink="false">4643@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>neyestrabelli,</p>
<p>I deleted your extra posts.  Im glad you figured out what was causing it.  Its ok these things happen!
</p></description>
		</item>
		<item>
			<title>neyestrabelli on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-4601</link>
			<pubDate>Mon, 20 Jul 2009 19:59:59 +0000</pubDate>
			<dc:creator>neyestrabelli</dc:creator>
			<guid isPermaLink="false">4601@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi, rolando.</p>
<p>I'm trying to use your script to receive cocos2d messages on my email account<br />
the script is running, but it replies all messages I receive in my email.<br />
do you know what is going wrong? (the administrator will mark my user as a spam...).</p>
<p>If you have any idea of what's going on please let me know</p>
<p>Sorry for all the posts, I won't run the script again untill it's all right</p>
<p>Best regards
</p></description>
		</item>
		<item>
			<title>malik on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-694</link>
			<pubDate>Wed, 17 Jun 2009 06:42:06 +0000</pubDate>
			<dc:creator>malik</dc:creator>
			<guid isPermaLink="false">694@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>works like a charm. :)<br />
--<br />
Ishaq<br />
<a href="http://blogs.kahaf.com/ishaq" rel="nofollow">http://blogs.kahaf.com/ishaq</a></p>
<p>- Programming can be fun, so can be cryptography, however they should not be<br />
combined ...</p>
<p>On Wed, Jun 17, 2009 at 6:59 AM, &#60;cocos2d-iphone-discuss@gamesforfood.cl&#62;wrote:</p>
<p>&#62; psionic says:<br />
&#62;<br />
&#62; awesome works just like the old forum email. thanks rolando :)<br />
&#62;<br />
&#62; On Tue, Jun 16, 2009 at 11:00 AM,<br />
&#62; &#60;cocos2d-iphone-discuss@gamesforfood.cl&#62; wrote:<br />
&#62; &#62; rolando says:<br />
&#62; &#62;<br />
&#62; &#62; The last few days some people asked me about adding them to the<br />
&#62; gateway...<br />
&#62; &#62; How&#39;s that been working for you, guys?<br />
&#62; &#62;<br />
&#62; &#62; rolando./<br />
&#62; &#62;<br />
&#62; &#62; Read the whole thread.<br />
&#62; Read the whole thread&#60;http://www.cocos2d-iphone.org/forum/topic/49#post-683&#62;.<br />
&#62;</p>
<p>works like a charm. :)&#60;br clear=&#34;all&#34;&#62;--<br />Ishaq<br /><a href="//blogs.kahaf.com/ishaq&#34;">http://blogs.kahaf.com/ishaq</a></p>
<p>- Programming can be fun, so can be cryptography, however they should not be combined ...</p>
<p>&#60;div class=&#34;gmail_quote&#34;&#62;On Wed, Jun 17, 2009 at 6:59 AM,  &#60;span dir=&#34;ltr&#34;&#62;&#60;<a href="cocos2d-iphone-discuss@gamesforfood.cl&#34;">cocos2d-iphone-discuss@gamesforfood.cl</a>&#62;&#60;/span&#62; wrote:<br />
<blockquote>
<p>psionic says:<br />
&#60;p&#62;awesome works just like the old forum email. thanks rolando :)&#60;/p&#62;&#60;div&#62;&#60;div&#62;&#60;/div&#62;&#60;div class=&#34;h5&#34;&#62;<br />
&#60;p&#62;On Tue, Jun 16, 2009 at 11:00 AM,<br />
&#60;<a href="cocos2d-iphone-discuss@gamesforfood.cl&#34;">cocos2d-iphone-discuss@gamesforfood.cl</a>&#62; wrote:<br />
&#62; rolando says:<br />
&#62;<br />
&#62; The last few days some people asked me about adding them to the gateway...<br />
&#62; How&#39;s that been working for you, guys?<br />
&#62;<br />
&#62; rolando./<br />
&#62;<br />
&#62; Read the whole thread.<br />
&#60;/p&#62;&#60;/div&#62;&#60;/div&#62;</p>
<p>Read the <a href="//www.cocos2d-iphone.org/forum/topic/49#post-683&#34;">whole thread</a>.<br />
</blockquote>
&#60;/div&#62;
</p></description>
		</item>
		<item>
			<title>psionic on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-683</link>
			<pubDate>Wed, 17 Jun 2009 01:58:05 +0000</pubDate>
			<dc:creator>psionic</dc:creator>
			<guid isPermaLink="false">683@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>awesome works just like the old forum email. thanks rolando :)</p>
<p>On Tue, Jun 16, 2009 at 11:00 AM,<br />
&#60;cocos2d-iphone-discuss@gamesforfood.cl&#62; wrote:<br />
&#62; rolando says:<br />
&#62;<br />
&#62; The last few days some people asked me about adding them to the gateway...<br />
&#62; How&#39;s that been working for you, guys?<br />
&#62;<br />
&#62; rolando./<br />
&#62;<br />
&#62; Read the whole thread.
</p></description>
		</item>
		<item>
			<title>Joao Caxaria on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-654</link>
			<pubDate>Tue, 16 Jun 2009 15:06:02 +0000</pubDate>
			<dc:creator>Joao Caxaria</dc:creator>
			<guid isPermaLink="false">654@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>It&#39;s working perfectly, thanks Rolando. :)
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-653</link>
			<pubDate>Tue, 16 Jun 2009 14:59:34 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">653@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>The last few days some people asked me about adding them to the gateway... How&#39;s that been working for you, guys?</p>
<p>rolando./
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-501</link>
			<pubDate>Mon, 15 Jun 2009 13:25:44 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">501@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>malik: send me an email to [removed]</p>
<p>rolando./
</p></description>
		</item>
		<item>
			<title>malik on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-500</link>
			<pubDate>Mon, 15 Jun 2009 13:20:41 +0000</pubDate>
			<dc:creator>malik</dc:creator>
			<guid isPermaLink="false">500@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi Rolando, can you please specify your email (or any other method) to send you usernames/passwords, I really don&#39;t want to setup everything just to get emails.</p>
<p>for the time being can you please add &#39;malik&#39; to your script. I&#39;ll send you the password to your email/pm after your reply.
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-499</link>
			<pubDate>Mon, 15 Jun 2009 13:19:53 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">499@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>new update to the email gateway: now the lock file is removed even if there&#39;s an error. Get the newer version from the same place.</p>
<p>rolando./
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-339</link>
			<pubDate>Fri, 12 Jun 2009 17:52:26 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">339@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Ok, fixed in this version:</p>
<p><a href="http://gist.github.com/126628" rel="nofollow">http://gist.github.com/126628</a></p>
<p>Solution: place the topic id in the subject :-)</p>
<p>enjoy!<br />
rolando./
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-330</link>
			<pubDate>Fri, 12 Jun 2009 17:08:51 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">330@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>there's a bug with the email gateway: gmail changes the message-id, even if you add one yourself, so the reply-to function is not working. The gateway tracks emails sent to topic ids, so if the message_id of the email gets lost, it thinks it's a new topic... I'll try to figure out a solution for this.
</p></description>
		</item>
		<item>
			<title>rolando on "How-To: Forum Email Gateway"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/49#post-215</link>
			<pubDate>Tue, 09 Jun 2009 17:13:44 +0000</pubDate>
			<dc:creator>rolando</dc:creator>
			<guid isPermaLink="false">215@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Some of us like to read and post in the forum using our email clients (iphone, Mail.app, gmail, etc.) just like a mailing list.<br />
Due to the problems in google groups, riq decided to migrate the forum to a more stable solution, but since it does not have a built-in email gateway, I quickly coded a simple solution. It has some problems, but so far it's been working good and satisfies most of my requirements.</p>
<p>Here's a step-by-step guide on how to setup the mailing gateway.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>ruby 1.8 (haven't tested ruby 1.9)</li>
<li>gateway script (download it from <a href="http://gist.github.com/126628">here</a>, click on "raw" to get the latest version)</li>
<li>some gems: sqlite3 sequel tmail tlsmail main. If the script has problems loading any of those gems, it will output the command to install them</li>
<li>an email account with imap/smtp support (I've been using a google-hosted email, gmail accounts will also work)</li>
<li>a computer that can run the script (tested on Linux and Mac OS X)</li>
</ul>
<p>So, you have ruby and the latest version of the script, the first thing you need to do, is get an email address for the script to check, I recommed using gmail for that:</p>
<p><a href="http://mail.google.com/mail/signup" rel="nofollow">http://mail.google.com/mail/signup</a></p>
<p>Ok, now that you have an email, create the database and add yourself as a user:</p>
<pre><code>ruby emailgateway.rb --add-user user:pass:myemail@gmail.com --email <a href="mailto:mygateway@gmail.com">mygateway@gmail.com</a></code></pre>
<p>What does this mean? This will create the database, will create a new recipient (myemail@gmail.com) and it will assign the email <a href="mailto:mygateway@gmail.com">mygateway@gmail.com</a> to the gateway. You can now send emails to that address and the messages will be posted to the forum. Only recipients can send emails to that account, any other source will be discarded. It's important that you do not use your personal email account, as discarded emails are deleted!! (they're not even stored in the Trash!)</p>
<p>Ok, now you need to configure the smtp/imap settings (again, I'm assuming a gmail-like scenario, where smtp and imap user/passwords are the same):</p>
<pre><code>ruby emailgateway.rb --smtp-server imap.gmail.com --smtp-user <a href="mailto:mygateway@gmail.com">mygateway@gmail.com</a> --smtp-password 1234</code></pre>
<p>So, you're now ready to run the script:</p>
<pre><code>ruby emailgateway.rb</code></pre>
<p>If you chmod it with execution permission, you can install it in your crontab:</p>
<pre><code>chmod +x emailgateway.rb</code></pre>
<p>I use this crontab line:</p>
<pre><code>*    *    *   *   *     /home/rolando/cocos-gateway/emailgateway.rb -d /home/rolando/cocos-gateway/gateway.db</code></pre>
<p>Using the crontab, you *have* to specify the location of the database. By default is in the same directory as the script and it's named gateway.db</p>
<p><strong>About the database</strong></p>
<p>The database is a sqlite3 database, you can view/edit it with the sqlite3 cli:</p>
<pre><code>sqlite3 gateway.db</code></pre>
<p><strong>Is there an easier way?</strong></p>
<p>If you don't mind giving me your forum password, I can add you to my gateway. Or, if you don't plan replying by email, I can add you to the recipients list with no password (that way you only get emails but can't create new topic/posts)</p>
<p>Enjoy!</p>
<p>Rolando./
</p></description>
		</item>

	</channel>
</rss>

