Mail::SimpleList and Mail::TempAddress grew out of the same base idea: an e-mail can be an RPC call to a remote program. Consequently, they share quite a bit of code.
I've been refactoring the commonalities into a parent module. It needs a good name, though. My best idea so far is Mail::Command, though it's not completely satisfying. Mail::Action came to mind while writing the title. It's not bad.
Is there a better title?
Update: Here's a brief overview of the parent module.
address_field retrieves and cleans an address or list of addresses from a message field.
find_command looks for a command in the subject of the message and checks that the current object can handle that command.
reply sends a response message.
copy_headers copies message headers from an incoming message to an outgoing message.
process_body processes directives found in the body of a message, based on what the current address object can handle.
command_help responds to a help request with the "how to use this module" section of the documentation.
I'll probably also refactor out commonalities of the storage module and the actual address modules into two other parent classes. See Mail::SimpleList::Aliases versus Mail::TempAddress::Addresses and Mail::SimpleList::Alias versus Mail::TempAddress::Address, respectively.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Naming a Mail Action Module
by demerphq (Chancellor) on Nov 01, 2003 at 01:59 UTC | |
by Aristotle (Chancellor) on Nov 01, 2003 at 07:23 UTC | |
by sauoq (Abbot) on Nov 01, 2003 at 19:17 UTC | |
Re: Naming a Mail Action Module
by Ovid (Cardinal) on Oct 31, 2003 at 20:57 UTC | |
Re: Naming a Mail Action Module
by simonm (Vicar) on Nov 01, 2003 at 04:31 UTC | |
Re: Naming a Mail Action Module
by jZed (Prior) on Nov 01, 2003 at 19:09 UTC | |
Re: Naming a Mail Action Module
by Aristotle (Chancellor) on Nov 01, 2003 at 19:54 UTC |