This is killing me. I'm setting a note in one plugin, and can read
it back in the same plugin, but no other plugin can find it.
(Still on 0.26)
The first plugin does this in a "connect" hook:
$self->qp->connection->notes( 'test', '1' ) ;
my test = $self->qp->connection->notes( 'test' ) ;
$self->log( 2, "TEST:$test" ) ;
This produces the results:
connect plugin: TEST:1
In another plugin with a "rcpt" hook, at the top of the
rcpt_handler subroutine:
my ( $self, $transaction, $rcpt ) = @_ ;
Then:
my $test = $transaction->notes( 'test' ) ;
Or:
my $test = $self->qp->transaction->notes( 'test' ) ;
And then:
$test ||= '' ;
$self->log( 2, "TEST:$test" ) ;
This produces the results:
rcpt plugin: TEST:
I've been over this so many times I can't see the forest for the
trees. I'm doing similar notes passing elsewhere, and there doesn't seem
to be a problem. Can anyone else see what might be wrong with this?
(The last similar issue I had was the difference between
"connection" and "transaction" notes, and my understanding is that
"transaction" notes should be able to be set and read between any plugins
- providing the setting plugin runs first, of course.)
Thanks.
--
Roger Walker
"HIS Pain - OUR Gain"