Group
Extension

Matches 3

Mail-MtPolicyd ( B/BE/BENNING/Mail-MtPolicyd-2.05.tar.gz, BENNING, 2020; MetaCPAN )
Mail-MtPolicyd/lib/Mail/MtPolicyd/Profiler.pm ( view source; MetaCPAN )
ngs;

use MooseX::Singleton;
use namespace::autoclean;

use Mail::MtPolicyd::Profiler::Timer;
use JSON;

our $VERSION = '2.05'; # VERSION
# ABSTRACT: a application level profiler for mtpolicyd

has 'r
Mail-MtPolicyd ( B/BE/BENNING/Mail-MtPolicyd-2.05.tar.gz, BENNING, 2020; MetaCPAN )
Mail-MtPolicyd/lib/Mail/MtPolicyd/Cookbook/HowtoAccountingQuota.pod ( view source; MetaCPAN )
{"quota_count":"100000"} |
  +--------------------------+
  1 row in set (0.00 sec)

To load the (JSON) configuration into the mtpolicyd session variables use the SqlUserConfig plugin and this SQL sta
Mail-MtPolicyd ( B/BE/BENNING/Mail-MtPolicyd-2.05.tar.gz, BENNING, 2020; MetaCPAN )
Mail-MtPolicyd/lib/Mail/MtPolicyd/Plugin/SqlUserConfig.pm ( view source; MetaCPAN )
lugin::Result;
use JSON;

has 'sql_query' => (
	is => 'rw', isa => 'Str',
	default => 'SELECT config FROM user_config WHERE address=?',
);

has '_json' => (
	is => 'ro', isa => 'JSON', lazy => 1,
	def
ault => sub {
		return JSON->new;
	}
);

has 'field' => ( is => 'rw', isa => 'Str', default => 'recipient' );

with 'Mail::MtPolicyd::Role::Connection' => {
  name => 'db',
  type => 'Sql',
};
with 'M
self->sql_query, $key );
	my ( $json ) = $sth->fetchrow_array;
	if( ! defined $json ) {
		die( 'no user-config found for '.$key );
	}
	return $self->_json->decode( $json );
}

sub run {
	my ( $self, $

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.