Mount a GMail account as Filesystem using gmailfs

Warning: my experience with gmailfs was not excellent! It was a bit slow and you always risk to lose data you stored on that account.

based on IMAP:
(it used to be but this was based on the Webinterface and that changed often)

gmailfs works with FUSE. So make sure Fuse is installed and works:

Add user philipp to group fuse, install the python-fuse Ubuntu package and get the gmailfs code:

sudo usermod -aG fuse philipp
sudo aptitude install python-fuse
cd ~/Downloads
git clone git://

you also need from libgmail. See

cd ~/Downloads/gmailfs

set up the config file (get it here: ) and put it in the folder /etc/gmailfs/ :

# this goes in /etc/gmailfs/gmailfs.conf
# The proxy URL
#proxy = http://user:pass@proxyhost:port
# or just 
#proxy = http://proxyhost:port

# The number or retries for the proxy connection.
#retries = 3

username =
password = s33kr1t

fsname = linux_fs_4

# reference = filesystem:username:password

# Change this to DEBUG for verbose output (useful for debugging)
level = INFO

# if you'd like logs to go to stdout, comment out this variable.
# For logging to, say, stderr, use /dev/stderr of your system's
# equivalent for it
logfile = ~/.gmailfs.log

set up a folder to mount the filesystem:

mkdir gmail-mnt

and run (to mount):

python ~/Downloads/gmailfs/ -o allow_root none ~/gmail-mnt