This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# Based on: https://bbs.archlinux.org/viewtopic.php?pid=962423#p962423 | |
# This version is modified to handle mailboxes with spaces in the names | |
import pyinotify | |
import pynotify | |
from os.path import expanduser | |
from mailbox import MaildirMessage | |
from email.header import decode_header | |
from gtk.gdk import pixbuf_new_from_file |