?

Log in

No account? Create an account
Trevor Stone's Journal
Those who can, do. The rest hyperlink.
[MyMH] An API Lacking 
19th-Oct-2005 12:23 am
mathnet - to cogitate and to solve
More API disappointment -- Email::Folder doesn't have a method for adding messages. You can delete with Email::Delete, but there's no Email::Add, so the refile operation is important. Without the ability to move messages from one folder to another, a complete mail system cannot be built.

On the performance front, scan over a 1925 message maildir with Email::Folder took 13 seconds, Mail::Box takes 47 seconds. show took 8 seconds with Email::Folder while Mail::Box took only 3. Finally a random-access payoff, though still a bit sluggish.

Another option would be to have my own personal mail daemon which listens to my mh commands and delivers results. That way I'd only have to pay the folder overhead cost when opening that folder.
This page was loaded Apr 23rd 2018, 9:27 am GMT.