##################################################################
#EN# Carbons configuration
#RU#  

#EN# For detailed description of all available keywords
#EN# see chapter 3.7 of hpt manual
#RU#     
#RU#     3.7 .

#EN# Enable CC for outgoing mail. Default off.
#RU#      .
#RU#   - .
CarbonOut on

#EN# This statement restricts CC to a first matching rule only.
#EN# By default message can be subject of more than one CC rule.
#RU#  ""  ,     
#RU# .
#RU#        
#RU# , ..   .
#CarbonAndQuit on

#EN# Don't carbon in passthrough areas
#RU#      (passthrough) .
ExcludePassthroughCarbon

#EN# Exclude " * Forward from area " string
#RU#    " * Forward from area "    .
CarbonExcludeFwdFrom off

#EN# Keep seen-by's and path
#RU#     (seen-by  path)
CarbonKeepSb


#EN# Every carbon rule consists of two parts. First is a carbon
#EN# pattern. Messages are checked against this pattern.
#EN# Second is an action. The action is executed on messages that
#EN# match appropriate pattern.
#RU#      .  -  .
#RU#      .
#RU#   -  ,  , 
#RU#   .
#EN# For one pattern there is one and only one action.
#EN# Yet the pattern itself can be complex, i.e. consists of
#EN# many actual patterns molded together with logical operators.
#RU#         .
#RU#    , ..    ,
#RU#     .


#EN# Let's overview available keywords:
#RU#    :
#
#EN# Patterns:
#RU# :
#
#EN# CarbonAddr: make carbonCopy using from address of msg
#RU# CarbonAddr:  carbonCopy,   
#EN# CarbonFrom: make carbonCopy using from-field of msg
#RU# CarbonFrom:  carbonCopy,    From 
#EN# CarbonFromArea: carbon messages from area
#RU# CarbonFromArea:      
#EN# CarbonGroups: make carbonbonCopy from this groups
#RU# CarbonGroups:     
#EN# CarbonKludge: make carbonCopy using kludge lines of msg
#RU# CarbonKludge:  carbonCopy,   
#EN# CarbonSubj: make carbonCopy using subject-field of msg
#RU# CarbonSubj:  carbonCopy,   
#EN# CarbonText: make carbonCopy using text-field of msg
#RU# CarbonText:  carbonCopy,   
#EN# CarbonTo: make carbonCopy using to-field of msg
#RU# CarbonTo:  carbonCopy,   To 
#
#EN# Logical operator:
#RU#  :
#
#EN# CarbonRule <AND|OR|NOT> : how to combine Carbon patterns (NOT = AND NOT)
#RU# CarbonRule <AND|OR|NOT> :  ,      
#RU#                            (NOT = AND NOT)
#
#EN# Actions:
#RU# :
#
#EN# CarbonCopy: specify the area where the carbon copies go into
#RU# CarbonCopy: ,  ,    
#EN# CarbonDelete: specify that the carbon msg should be deleted
#RU# CarbonDelete: , ,    
#RU#                
#EN# CarbonExtern: specify the external program to pass msg text to
#RU# CarbonExtern: ,   -
#RU#                
#EN# NetmailExtern: specify the external Program to pass netmail msgs to
#RU# NetmailExtern: ,   -
#RU#                 
#EN# CarbonMove: specify the area where the carbon msg get moved into
#RU# CarbonMove: ,  ,   

#EN# One additional keyword exists that is not the pattern but also
#EN# not exactly the action:
#RU#     ,    
#RU# ,  :
#
# CarbonReason
#
#EN# It precedes action itself and sets string for @REASON kludge that
#EN# is added for copied or moved messages.
#RU#       
#RU#   @REASON,      .

#EN# Example:
#RU# :

# CarbonFrom Overmind
# CarbonReason smart one, read it
# CarbonCopy

#EN# How to write complex patterns?
#RU#    ?

#EN# For those who are familiar with boolean algebra it is easy.
#EN# Just keep in mind:
#RU#  ,     ,  ...
#RU# :
#EN# 1) NOT between patterns = AND NOT, if you want OR NOT then write
#RU# 1) NOT   = AND NOT,    OR NOT, :

# CarbonRule OR
# CarbonRule NOT

#EN# 2) AND and NOT have higher priority than OR
#RU# 2) AND  NOT   ,  OR
#EN# 3) There is NO BRACES, so if you want to write something
#EN# like A && (B || C) then write it as A && B || A && C.
#EN# Note also that A && NOT (B || C) is equivalent to A && NOT B && NOT C.
##EN# That's all.
#RU# 3)  _ _,    - 
#RU# A && (B || C),   : A && B || A && C.
#RU#   ,  A && NOT (B || C)  A && NOT B && NOT C.
#RU#   ӣ.

#EN# If you don't know wtf is boolean algebra then you should
#EN# search for better teacher than me. :-P
#RU#    " " -    ,
#RU#    ,  . :-P

#EN# If someone can explain it for newbe -- do it.
#RU#       --  .




#EN# Define typical carbon rule that will CC all messages
#EN# addressed to Yeti except those in areas YETI.*
#RU#      ,   
#RU#   Yeti  ,    YETI.*
CarbonTo       Yeti
CarbonRule NOT
CarbonFromArea YETI.*
CarbonCopy     YETI.CC
