| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
18
|
|
|
18
|
|
11418
|
use strict; |
|
|
18
|
|
|
|
|
37
|
|
|
|
18
|
|
|
|
|
867
|
|
|
2
|
|
|
|
|
|
|
package Siesta::Deferred; |
|
3
|
18
|
|
|
18
|
|
100
|
use base qw( Siesta::DBI ); |
|
|
18
|
|
|
|
|
32
|
|
|
|
18
|
|
|
|
|
8989
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
__PACKAGE__->set_up_table('deferred'); |
|
6
|
|
|
|
|
|
|
__PACKAGE__->has_a(who => 'Siesta::Member' ); |
|
7
|
|
|
|
|
|
|
__PACKAGE__->has_a(message => 'Siesta::Message', |
|
8
|
|
|
|
|
|
|
deflate => 'as_string', |
|
9
|
|
|
|
|
|
|
); |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Siesta::Deferred - a deferred message in the system |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 METHODS |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 resume |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
release a deferred message and continue it's processing |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub resume { |
|
26
|
1
|
|
|
1
|
1
|
145663
|
my $self = shift; |
|
27
|
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
26
|
my $mail = $self->message; |
|
29
|
2
|
|
|
|
|
706
|
$mail->plugins([ map { |
|
30
|
1
|
|
|
|
|
78
|
Siesta::Plugin->retrieve( $_ )->promote |
|
31
|
|
|
|
|
|
|
} split /,/, $self->plugins ]); |
|
32
|
|
|
|
|
|
|
|
|
33
|
1
|
|
|
|
|
758
|
$self->delete; |
|
34
|
1
|
|
|
|
|
129366
|
$mail->process; |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |