address_notes - add a notes method to Qpsmtpd::Address


This plugin adds a notes method to the Qpsmtpd::Address class. This allows arbitrary data to be attached to an address similar to the connection and transaction notes. One possible use would be to use it to pass per-recipient configuration between plugins.

$address->notes([$key [, $value]])

The notes method can be called with 0, 1, or 2 parameters. If both a key and a value is given, the note with the given key is set to the given value. If only a key is given, the note with this key is returned. If neither is given, a list of keys is returned.