Blogot - 旅とF1と車と男の嗜み


Gmail を Linux へマウントする


GmailFS provides a mountable Linux filesystem which uses your Gmail account as its storage medium. GmailFS is a Python application and uses the FUSE userland filesystem infrastructure to help provide the filesystem, and libgmail to communicate with Gmail.

GmailファイルシステムLinux にマウントする Python のライブラリが話題を集めています。

Reference implemantation は以下の通り。

import libgmail

ga = libgmail.GmailAccount("", "mymailismypass")


folder = ga.getMessagesByFolder('inbox')

for thread in folder:

 print, len(thread), thread.subject

 for msg in thread:

  print " ",, msg.number, msg.subject

  print msg.source

GmailFS - Gmail Filesystem