37 |
if (@args > 1 and $args[1] =~ /^(\d+)$/) { |
if (@args > 1 and $args[1] =~ /^(\d+)$/) { |
38 |
$self->{_imap_port} = $1; |
$self->{_imap_port} = $1; |
39 |
} |
} |
40 |
+ if (@args > 2 and ($args[3] eq "enable_smtp" ) ) { |
+ if (@args > 2 and ($args[2] eq "enable_smtp" ) ) { |
41 |
+ $self->{_enable_smtp}= $args[4] || 'no'; |
+ $self->{_enable_smtp}= $args[3] || 'no'; |
42 |
+ } |
+ } |
43 |
+ if (@args > 4 and ( $args[5] eq "enable_ssmtp" )) { |
+ if (@args > 4 and ( $args[4] eq "enable_ssmtp" )) { |
44 |
+ $self->{_enable_ssmtp} = $args[6] || 'yes'; |
+ $self->{_enable_ssmtp} = $args[5] || 'yes'; |
45 |
+ } |
+ } |
46 |
$self->log(LOGWARN, "WARNING: Ignoring additional arguments.") |
$self->log(LOGWARN, "WARNING: Ignoring additional arguments.") |
47 |
- if (@args > 2); |
- if (@args > 2); |