-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric, I think you've found another bug ;) could you open a BZ entry on this? - --j. Eric A. Hall writes: > Eric A. Hall wrote: > > > I'm storing the session variables (such as login status) as part of $self, > > and storing message variables with $permsgstatus. But where do I put the > > logout/disconnect code? DESTROY seems to get called after every message > > ("seems to" but I'm fairly blurry at this point), which causes the session > > to get killed after every message. Where am I supposed to put this stuff? > > Got around to looking at this some more. DESTROY() does actually get > called when everything is being zapped, but that is way too late to do > anything useful (Net::LDAP is already dead, for example). > > http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Plugin.html > says "$plugin->finish() called when the Mail::SpamAssassin object is > destroyed" but that is wrong or there is a bug because near as I can tell > finish() never gets called, and it doesn't appear to even get probed (as > opposed to $plugin->parse_config which shows up in debug probes, and even > gets called). Is this a bug? > > Frankly I'm not sure that finish() would work, since the description > sounds like it happens the same time as DESTROY() which is no different. > What would be really useful here would be something that SA calls after it > is done hitting all of the rules that it's going to. That probably ought > to be finish(), and maybe it is, dunno. > > I can post this on bugzilla so it can be ignored there too. :o -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Exmh CVS iD8DBQFCP66uMJF5cimLx9ARAoOHAKC84mdwAhEOJaksFct6SObPAVrnYACfTfBW rw7v51jEooJ9sSKWkbmv/ak= =mTml -----END PGP SIGNATURE-----