XML::DOM::BagOfTricks and manipulating Mbox folders

TeeJay on 2004-12-15T18:35:58

Yesterday I released XML::DOM::BagOfTricks, it is a small library that I am using to generate and manipulate XML using XML::DOM.

Any suggestions for improvements or new features much appreciated.

I have also spent the afternoon looking for a way to handle an Mbox folder for our mailing list system at work. Email::Folder is really nice, but is read-only (although casey said adding a way to delete messages is at the top of his todo list)

Next I tried Mail::Folder as that appeared to have a method to delete messages, but that won't install on my machine, and is so ruled out.

Which leaves Mail::Box..

Installing Mail::Box I said 'yes, install everything you think you might need'.. so it is, and on and all of Mail::* later.. hopefully the tests will pass..

I guess I will Thanks but No Thanks, when I install that on the staging and production servers.

..BREAKING NEWS... BLUNKETT RESIGNS.. David Blunkett, the no longer Home Secretary has resigned after being warned that evidence had been found linking him to a fast-tracked visa for his married lovers nanny. This makes him a liar as well as an adulterer and authoritarian bully boy.. good riddance

Mail::Box seems to have passed all its 100's of tests and installed.. joy


A few comments

mir on 2004-12-15T19:07:37

just from reading the docs:

  • You left XML::Xerces:: in several places in the doc, I guess the Xerces part should be removed,
  • I am really confused about the getWhatever methods: do they get existing nodes or do they create new nodes? If they create new nodes, as I think they do, then why not call them createWhatever or (better I think) newWhatever?
  • they're called "Red Hot Chili Peppers"
  • if you want ideas of methods to add to the module, you can have a look at XML::DOM::Twig an old attempt at extracting methods that made sense from XML::Twig and using them with XML::DOM.

Re:A few comments

TeeJay on 2004-12-16T09:18:18

>>You left XML::Xerces:: in several places in the doc<<

oops, so I did. Sorry. Will fix that later today

yes, the getFoo methods should perhaps be createFoo, or getNewFoo

meh - chili, shmilli ;)

XML::DOM::Twig is noted and will be assimilated.

ta muchly

Progress with mail thanks to google and cpan

TeeJay on 2004-12-16T11:22:08

Part of the mailshot management system we are building (CDBI,mysql,TT natch) is catching bounces and unsubscribe messages and coping with temporary problems like busy server or inbox quota limits, etc.

Luckily I think Mail::Box will allow me to manage an Mbox for each address quite nicely, once I get the drift of the Java style (lots of words, not much useful meaning.. no bloody examples!) documentation.

Also Mail::DeliveryStatus::BounceParser makes it easy to discover the message-id, addresses and type of bounce from an email. Very handy indeed.

Shame it took so long to find the right modules for the task tho. Still quicker than writing and discovering all the pitfalls for myself.