-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric A. Hall writes:
> On 3/14/2005 12:32 PM, Daryl C. W. O'Shea wrote:
> 
> > There's no need to do your lookups more than once.  Save the results the 
> > first time you do the lookups/processing.
> > 
> > See the SPF.pm plugin for a good example.
> 
> Oh right, it's persistent. Duh.

yeah -- as discussed in the Plugin pod docs, the life-cycle of the objects
you have access to there is:

    - PerMsgStatus object: persistent throughout a single message's
      scanning, so good for this case.

    - Conf object: global and always available, so good for permanent
      state.  not good for state that may change between users though; to
      deal with that, use the signal_user_changed() hook if necessary.

Those are the two main places to store data if needed.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFCNd29MJF5cimLx9ARAvRSAJ41g19rPg9NmR4s0i/4120zXZumbwCeNPw9
oCrvOJPfGYJ7na6TeITSYbU=
=SaR5
-----END PGP SIGNATURE-----

Reply via email to