Archive for January, 2005

Heh

Well I got the E-Check list problems sorted… Was reusing odd variables :-/

Improved preview functionality in the core and GUI, and added a message source viewer. Also populated the list of accounts properly with a wxCheckListBox that lets you select the accounts to check. All working nicely.

Someone told me I don’t talk enough in IRC… :P

E-Check v2 progress

Well today I got multiple accounts working as well as writing/reading to/from a config file thanks to the ConfigParser module.

Imporved the body retreival in the MailBox class so it doesn’t die when there’s an attachment or some other weird part of a multipart message. Also on the GUI side of things needed to sort out some problems with different character sets, so now non-ASCII messages are encoded to iso-8859-1as needed.

There seems to be some problem now with the message list box returning the incorrect message selection, so trying to preview the last message in the list results in the first one being previewed… heh.

Todo: Fix list problems, selecting of messages for deletion.

E-Check v2

Okay well I’ve been working on this for a while now - a new version of my aging “E-Check” application.

Brief into to E-Check: It’s a small utility that allows you to preview your POP3 mail accounts before downloading their contents into your email client. If there’s a message you don’t particularly like the look of, you can select it and have it deleted before it ever reaches your Inbox.

E-Check was written in Delphi 3 using the Indy (at that time it was knows as Winshoes) suite of networking components. There are currently a number of problems on Windows XP, and of corse, it doesn’t run on anything but Windows.

I’m re-writing it as modular as possible in Python. Currently I have a very nice “MailBox” class that connects and collects headers of all mail messages on the server. Extracting information from each of these messages is extremely basic, just call MailBox.GetSubject(msg_id) for example returns the subject of the message requested. Yes, I know Python has a whole suite of email utilities (and I am in fact making use of a couple of the funtions/objects it provides - thanks mithrandi), but this seems (to me anyway) a much more simplified way of managing and accessing email messages, plus you get the whole ‘mailbox’ effect…

Anyway, with that class doing it’s own thing, I can pretty much plug it into any GUI. Web-based mailbox previews? How about checking your mail via a WAP device? “Python for Delphi” would allow me to re-make it almost the same as it is now (bound to Windows still though). At the moment, I’m running with wxPython though. Had a bit of trouble getting to grips with sizers and stuff, but now I’m building most of the GUI by hand (tried loads of builders and things) and it’s working out pretty well indeed. Cross-platform too.

To-to for right now: Multiple account support and saving/loading config info to/from file.

« Previous Page