Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

connection notes

4 views
Skip to first unread message

Matt Simerson

unread,
Jun 1, 2012, 11:25:26 PM6/1/12
to qpsmtpd ML

Which is preferred within a plugin?

$self->qp->connection->notes

or

$self->connection->notes

The code in lib uses only the latter. Code in plugins uses a mixture, but mostly the former. Because I'm mildly obsessed with consistency, I'd like to make them all the same.

Matt

`````````````````````````````````````````````````````````````````````````
Matt Simerson http://matt.simerson.net/
Systems Engineer http://www.tnpi.net/

Mail::Toaster - http://mail-toaster.org/
NicTool - http://www.nictool.com/
`````````````````````````````````````````````````````````````````````````

Ask Bjørn Hansen

unread,
Jun 1, 2012, 11:34:31 PM6/1/12
to Matt Simerson, qpsmtpd ML
On Jun 1, 2012, at 20:25, Matt Simerson <ma...@tnpi.net> wrote:

> Which is preferred within a plugin?
>
> $self->qp->connection->notes
>
> or
>
> $self->connection->notes

Assuming the second method is just a proxy for the first, then use the shorter version.


Ask

Matt Simerson

unread,
Jun 2, 2012, 12:56:41 AM6/2/12
to Ask Bjørn Hansen, qpsmtpd ML
0 new messages