216 Part III — Conquering Gmail
Listing 16-1 (continued)
#proxy = http://proxyhost:port
#retries = 3
[account]
username = gmailusername
password = gmailpassword
[filesystem]
fsname = linux_fs_3
[references]
# reference = filesystem:username:password
[logs]
# Change this to DEBUG for verbose output useful for debugging
level = INFO
Simply place your username and password in the obvious places, and copy the
entire file to /etc.
If you are behind a proxy, you will need to enter the details into gmailfs.confin
the obvious place and also install pyOpenSSLfrom http://pyOpenSSL.source
forge.net/, and pyOpenSSLProxyfrom http://richard.jones.name/
google-hacks/gmail-filesystem/pyOpenSSLProxy-0.1.tar.gz.
Once everything is installed, you are ready to use the system.
Chapter 16: Using GmailFS
There are two ways to launch the GmailFS: You can either mount it from the
command line or use fstab.
Mounting GmailFS from the Command Line
To mount from the command line, type this command, press return, and proceed
to the section “Passing Commands to the File System” a bit later:
mount -t gmailfs /usr/local/bin/gmailfs.py /gmailfs -o
fsname=XXXXX