pylirc question: clearing the queue

2008-04-07 Thread jesse . k . rosenthal
Hi all, Is there a way in the pylirc module to either (a) get it to stop listening for a period of time, or (b) clear the queue of any stored up commands? I have a script that starts mplayer, and I use my remote while I'm running mplayer. The shell script waits (subrpocess.Popen.wait()) for the mp

mailbox module, Maildir, and flags

2007-09-10 Thread jesse . k . rosenthal
Dear all, I'm trying to figure out if mailbox will let me get the flags of a Maildir message without running get_message on it, and reading the whole message. It seems like it should work by doing this: >>> import mailbox >>> mybox = mailbox.Maildir('~/Maildir/', mailbox.MaildirMessage) >>> myfol