"only one of $pkey, $ckey, or $ikey may be defined in $state\n";
if (defined $command) {
- $self->_run_for_each($command, $tip, $new)
+ $self->_run_for_each_msg($command, $tip, $new)
} elsif (defined $path) {
- $self->_deliver_each($path, $tip, $new);
+ $self->_deliver_each_msg($path, $tip, $new);
} elsif (defined $imap) {
- $self->_imap_deliver_each($tip, $new);
+ $self->_imap_deliver_each_msg($tip, $new);
} else {
die "neither $pkey, $ckey, nor $ikey are defined in $state\n";
}
# folder (via Email::FolderType) via trailing trailing slash for maildir
# (and lack of trailing slash for mbox). Ezmlm and MH formats are not
# currently supported by Email::LocalDelivery.
-sub _deliver_each {
+sub _deliver_each_msg {
my ($self, $dest, $tip, $new) = @_;
my $git = $self->{git};
foreach my $path (@$new) {
# just pipe the blob message to $command, bypassing Perl,
# so there's no validation at all
-sub _run_for_each {
+sub _run_for_each_msg {
my ($self, $command, $tip, $new) = @_;
my $git = $self->{git};
foreach my $path (@$new) {
}
}
-sub _imap_deliver_each {
+sub _imap_deliver_each_msg {
my ($self, $tip, $new) = @_;
my $git = $self->{git};
require Ssoma::IMAP;