On Thu, Jul 2, 2009 at 7:39 AM, Ben Walton<[email protected]> wrote: > Excerpts from Jim Cheetham's message of Wed Jul 01 05:48:30 -0400 2009: >> I'd like to be able to save outgoing email into the mailstore for the >> matching account; can anyone suggest some way to do this? Hacking code >> is an option, although I'd appreciate some pointers ... > > This is an interesting idea. I think the best way to do it might be > to implement a sent_source hook that can override the global default.
'best' or 'simplest'? There already exists logic for determining which account a given outgoing message belongs to, because that's how the :sendmail: target is being used. If you are arguing that having a different sent_source per (outgoing) message is useful, then perhaps a hook makes sense; but the simpler case probably doesn't need it. > It would be wise to either a) not use mbox or b) have dedicated mboxes > for this purpose...until I finally get around to finishing the lock > manager to make shared access safe. Certainly the sent_source mbox shouldn't be subject to something inconvenient like delivery of new mail while we're updating it :-) but I'm not sure that mbox people would be unhappy having sent mail in a separate file ... ? -jim _______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
