Re: per-recipient configuration
[email protected] (David Nicol)
| Newsgroups | perl.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
> See in my mind, per-recipient config and persistent data storage are more
> separate. Maybe part of the reason I look at it this way is that in my
> own implementation, I never really write "config" for a recipient, I only
> read it (from my persistent storage, the db, of course). I don't see it
> necessary to be able to say $rcpt->config( spam_threshold => 10 ) from QP,
> I'd do it from the UI). "Stored" things are always written from QP
I have stuff that might wind up looking like
$rcpt->persistent->{statistics_receivedmsgs_total}++;
$rcpt->persistent->{statistics_receivedstatsbysender}{$NormalizedSenderAddress}++;
in addition to reading configuration.