24.07.2017 Views

Hacking Gmail

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

210 Part III — Conquering <strong>Gmail</strong><br />

An Even Simpler Way of Doing It<br />

There is, naturally, an even easier way to do this. Justin Blanton, this tome’s noble<br />

technical editor, points out that if you can’t set server-side filters but can create<br />

multiple mail accounts, you can do the following:<br />

1. Create a new mail account (the username doesn’t matter; no one will see it).<br />

2. Forward the e-mail from your current account to <strong>Gmail</strong>.<br />

3. Forward your <strong>Gmail</strong> e-mail to the account you just created.<br />

4. <strong>Gmail</strong> filters your e-mail before forwarding it along.<br />

5. Use your new mail account (you’ll obviously want to set the “reply-to” and<br />

“from” fields to your current address and not the one you just created).<br />

This is very elegant but does require multiple e-mail accounts.<br />

Using <strong>Gmail</strong> as Storage for a Photo Gallery<br />

As something as a transition to the final chapter, this use of <strong>Gmail</strong> is borderline<br />

naughty. Indeed, at the time of this writing, Google has taken the author’s <strong>Gmail</strong><br />

account away from him, so fiendish is his wares. Still, he fears nothing here in<br />

Chapter 14 and so will happily point to Goollery, the PHP system for using<br />

<strong>Gmail</strong> as the storage for an online photo gallery.<br />

Figure 15-6 shows it in action on the demo site. You can download Goollery from<br />

www.wirzm.ch/goollery/.<br />

The authors, Martin Wirz, Andres Villegas, and Matias Daniel Medina, have<br />

done a very nice job with Goollery. It’s easy to use, requiring only PHP, curl, and<br />

ImageMagick to be installed on your server to begin with. (These are all pretty<br />

standard, and your system administrator can help you.)<br />

Once that’s done, you must create a label within your <strong>Gmail</strong> account called “pictures”<br />

and then follow the rest of the installation instructions included within the<br />

Goollery package.<br />

Goollery uses PHP, and so libgmail, to access <strong>Gmail</strong>. In the next chapter, you see<br />

precisely how this works.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!