curse python mailer
Benjamin Sergeant
bsergean at gmail.com
Thu Jan 4 01:57:37 EST 2007
Hi,
Follwing this post:
http://lists.canonical.org/pipermail/kragen-hacks/2006-November/000441.html
I just gave a try to the emailer and am very interested in it. I am a
pine user that would like to hook some more features, and hacking old
C code from pine does not look like a cool option.
I created a project on google hosting about that:
http://code.google.com/p/bine/
With some features or thought on an email client I'd like:
* LDAP
* easy gpg signing
* using an external editor
* better bogofilter integration
* send mail from command line (like sendmail)
* integrated smtp
* unicode handling
* contact completion (a la bash)
Also I wasn't able to start the emacs composer that you are talking about.
And my terminal is an iso-latin so some characters have a bad look
(convert to unicode ?)
A cool feature would also be to span a program associated with the
attachment mime type when parsing attachments.
For HTML mails, one solution may be to use lynx -dump.
And I'd also wonder if your program could switch from one mailbox to
another, by hitting the left arrow one more time from the thread mode.
The other good python curses project that I went through was called
cplay and was a mp3 player. I wrote once a small project based on it,
and to handle resize, ...
# - adjust to screen resizing
# - probably not possible without modifying Python curses binding to
# support resizeterm(3NCURSES). Maybe use ctypes?
# - how does Urwid do it? (at first glance, it looks like it
looks for 410 KEY_RESIZE)
... here what the cplay author does:
In his main
signal.signal(signal.SIGWINCH, self.handler_resize)
With this handler:
def handler_resize(self, sig, frame):
# curses trickery
while 1:
try: curses.endwin(); break
except: time.sleep(1)
self.w.refresh()
self.win_root.resize()
self.win_root.update()
Maybe it can help.
I see that you are using darcs, is there a way to clone your
repository if I want to try
to work on your code.
Benjamin.
More information about the Kragen-discuss
mailing list