Skip to Content.
Sympa Menu

en - Re: [sympa-users] Creating statistics with sympa commands

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün <address@concealed>
  • To: José Manuel Bobba Ares <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Creating statistics with sympa commands
  • Date: Thu, 04 Dec 2008 14:33:47 +0100

Hi José Mauel,

Currently Sympa does not provide hooks to plug external code, however we have a feature request for that. You're welcome to complete the feature request to address your needs : https://sourcesup.cru.fr/tracker/?func=detail&group_id=23&aid=1322&atid=170

In the meanwhile, you can get some relevant data in the Sympa logs_table, see <http://www.sympa.org/manual/database#sympa_logs_in_the_database>. However it does not include the textmessage and we don't provide a trigger when a message is sent. Another option would be to make the archived.pl process run your script when archiving a new message. All you have to do is change the "mhonarc" sympa.conf parameter (see <http://www.sympa.org/manual/web-interface#mhonarc>) and use a wrapper instead of mhonarc directly. Your wrapper would run both your script and mhonarc.

José Manuel Bobba Ares a écrit :
Hello!! I have a problem; I want to make statistics with sympa, this is, when some mail is posted, I want to store some info in new database, let's say "statistics".
I want to store for example:
1) timestamp of post
2) IDmessage
3) IDuser
4) textmessage
5) # of subscriber in the list at this moment.

I don't know how to interact with sympa in this way!
I read in the manual the "Sympa commands" section, and for the 5) item I saw this :

http://my.server/wws/subscriber_count/mylist returns the number of members of "mylist".
I try and it works fine, but via web only, I need to use tha in a .pl file for using in a script.
Another issue is where to put the script for acting like a "trigger" for outgoing emails.

If anyone can help, I'll be very thankful

Cheers, Jose




Archive powered by MHonArc 2.6.19+.

Top of Page