]> git.cworth.org Git - sup/commit
SentManager: rework handling to allow for user specified source
authorBen Walton <bwalton@artsci.utoronto.ca>
Thu, 7 May 2009 02:44:24 +0000 (22:44 -0400)
committerBen Walton <bwalton@artsci.utoronto.ca>
Thu, 28 May 2009 15:27:21 +0000 (11:27 -0400)
commit5057149d9c3b57c6b5c4d0964a0aae9d490aaa38
tree5a0188bd22eaa2db25920e28da46c8ff5a443e9d
parent167907a8ff0e9a87fc83612d48cdf09b3218b362
SentManager: rework handling to allow for user specified source

* The handling of SentManager now allows for a parameter in config.yaml
  called sent_source.  This parameter should be the URI of the source
  that the users wishes to store outbound mail in.

* The default is sup://sent

* A FatalSourceError is raised in the event that sent_source is
  set to a source type that doesn't support the store_message() method.

* SentManager and SentLoader have been somewhat decoupled.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
bin/sup
lib/sup.rb
lib/sup/sent.rb