{

if (($dovecot{'LogActions'} || 'disabled') eq 'enabled'){
    push @plugins, 'mail_log';
    push @plugins, 'notify';
    my $string = <<'HERE';

plugin {
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mailbox_create flag_change
  mail_log_fields = uid box msgid from subject flags
}

HERE

    push @conf, $string;
    $OUT .= '';
}
else{
    $OUT .= "# Actions loging is disabled\n";
}
}
