Skip to Content.
Sympa Menu

en - Re: [sympa-users] Logging successful emails

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: address@concealed
  • To: address@concealed
  • Subject: Re: [sympa-users] Logging successful emails
  • Date: Thu, 6 Oct 2016 16:05:47 -0400

Hello Alex

I've noticed the exact same issue with 6.2.16 after upgrading from 5.2.4.
Here's my patch to log something when a message is successfully distributed:

--- lib/Sympa/Spindle/ToList.pm.orig 2016-10-06 15:17:00.075363410 -0400
+++ lib/Sympa/Spindle/ToList.pm 2016-10-06 15:20:12.059060373 -0400
@@ -120,6 +120,17 @@
$messageid,
$message->{'size'}
);
+ $log->db_log(
+ 'robot' => $list->{'domain'},
+ 'list' => $list->{'name'},
+ 'action' => 'DoMessage',
+ 'parameters' => $message->get_id,
+ 'target_email' => '',
+ 'msg_id' => $messageid,
+ 'status' => 'success',
+ 'error_type' => '',
+ 'user_email' => $sender
+ );

return 1;
}


Francis

> On Apr 20, 2016, at 9:27 AM, address@concealed wrote:
>
> We recently upgraded from Sympa 5 to the latest version (6.2.14). We have
> one
> issue, which is that the logs_table in the database does not record any
> messages that were delivered to mailing lists. For example, if I run this
> SQL
> against the database:
>
> SELECT * FROM logs_table WHERE action_logs = "DoMessage" and status_logs =
> "success" ORDER BY date_logs
>
> there are no new rows since the upgrade was performed. However, other events
> are recorded, including messages which were rejected.
>
> Is there a new setting that needs changing to record these events or is
> this a
> bug?
>
> Thanks,
> Alex




  • Re: [sympa-users] Logging successful emails, francis, 10/06/2016

Archive powered by MHonArc 2.6.19+.

Top of Page