Oh, I'm sorry, You are correct, I should have opened up the ReipientData field. Phpmyadmin only shows partial of the data. Thanks again..This program rocks..
On Fri, Nov 5, 2010 at 2:29 PM, dingni <[email protected]> wrote: > > In DEBUG log, I do see the very last RecipientData key contains value of a > list of recipients. That's exactly what I want. I can't get my head around > the code to extract it. Plus I only need the email address part. At first, > I thought by making Recipent as empty array then loop through its key to > get its value, something like $recipeint_array = array(), then while > $recipient_array['Recipient'] to get all its value. Yes, I'm a beginner in > PHP. Perhaps you can shed some light. Thanks. > > On Thu, Nov 4, 2010 at 11:00 PM, Nigel Kukard <[email protected]> wrote: > >> >> Although I can track how many emails a user have sent by counting the >> Sender field in the session_tracking table, it is not entirely correct >> because each matching policy only records a row to the session_tracking >> table. Whereas an email can send to multiple recipients. I want to add a >> Recipient field to session_tracking table so that I can track every >> recipient or preferable a comma split list of recipients. >> I've tried to modify the code in /usr/lib/policyd-2.0/cbp/tracking.pm by >> inserting a Recipient field with some success, but with my very limited Perl >> skill, it only records one of many recipients. >> >> >> The column RecipientData contains a list of recipients along with which >> policies was matched for each one. >> >> -N >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.policyd.org/mailman/listinfo/users >> >> >
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users
