Aug 03 2004

GMail on the Command Line

Published by conall at 12:01 under General

After getting a GMail account a number of months ago, I can finally use it.

My main problem was that I wanted to access it via a command line script I could simply automate it and treat it like my Mail.Com account I setup back in 1997 when collecting email addresses was all the rage (I use fetchmaildotcom for that account).

To grab the contents of your Gmail account, all you need is WWW::GMail from CPAN and a sample script from the module’s author.

Then all that needs to be done is simply edit the USERNAME and PASSWORD fields in the sample script accordingly, chmod the script to be executable (I recommend chmod 700 sample-script to protect your password) and pipe the script into your mail delivery system, eg sample-script | procmail

No responses yet

Comments RSS

Leave a Reply

Bad Behavior has blocked 69 access attempts in the last 7 days.