From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Artem Pastukhov Organization: YAM International To: community@altlinux.ru Date: Thu, 23 Dec 2004 13:19:02 +0300 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_WupyBRTskNllgqv" Message-Id: <200412231319.02034.past@yam.ru> Subject: [Comm] maildrop &maildroprc X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 10:19:07 -0000 X-List-Received-Date: Thu, 23 Dec 2004 10:19:07 -0000 Archived-At: List-Archive: List-Post: --Boundary-00=_WupyBRTskNllgqv Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: base64 Content-Disposition: inline 5M/C0tnKIMTFztguCgr81M8gz9DR1Ngg0SDJIM/Q0dTYINDSzyBtYWlsZHJvcArLwcst1M8gz84g 09TSwc7OzyDSwcLP1MHF1C4gCunNxcXNIG1haWxkcm9wcmMo1yDB1NTB3sUpCtPFy8PJ0SDTIHhm aWx0ZXIgz9TSwcLB1NnXwcXULCDBIM/T1MHM2M7PxSDOxdQsIM7J3sXHzyDOINDPzsnNwcAuCuvU zy3OycLVxNggzc7FINLB09TPzMvVxdQg1yDexc0gxMXMzz8KLS0gCvMg1dfB1sXOycXNIArh0tTF zSDwwdPU1cjP1ywgcGFzdCAoYXQpIHlhbS5ydQpZQU0gSW50ZXJuYXRpb25hbAo= --Boundary-00=_WupyBRTskNllgqv Content-Type: text/plain; charset="koi8-r"; name="maildroprc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="maildroprc" # ## MAILDROPRC # # test for vacation file, if it exists, send autoresponse # `test -f vacation.txt` if ($RETURNCODE=3D=3D0) { =9A =9A# test for vacation message subject, use it if found =9A =9A# =9A =9A`test -f vacation_subject.txt` =9A =9Aif ($RETURNCODE=3D=3D0) =9A =9A{ =9A =9A =9A SUBJECT=3D`cat vacation_subject.txt` =9A =9A =9A cc "| mailbot -t vacation.txt -A 'From: $LOGNAME' -A 'Subject: = $SUBJECT' /usr/sbin/sendmail -f ''" =9A =9A# otherwise, regular "Re:" syntax for subject is automatic =9A =9A# =9A =9A} =9A =9Aelse =9A =9A{ =9A =9A =9A cc "| mailbot -t vacation.txt -A 'From: $LOGNAME' /usr/sbin/sen= dmail -f ''" =9A =9A} =9A =9A# test for any cc addresses, forward to those addresses if present =9A =9A# =9A =9A`test -f vacation_cc_addresses.txt` =9A =9Aif ($RETURNCODE=3D=3D0) =9A =9A{ =9A =9A =9A # grab cc addresses =9A =9A =9A # =9A =9A =9A CCADDRESSES=3D`cat vacation_cc_addresses.txt` =9A =9A =9A # do we need to keep a copy of messages in this account or not? =9A =9A =9A # =9A =9A =9A `test -f vacation_keep_messages.txt` =9A =9A =9A if ($RETURNCODE=3D=3D0) =9A =9A =9A { =9A =9A =9A =9A =9Acc "! -f \"$FROM\" $CCADDRESSES" =9A =9A =9A } =9A =9A =9A else =9A =9A =9A { =9A =9A =9A =9A =9Ato "! -f \"$FROM\" $CCADDRESSES" =9A =9A =9A } =9A =9A} } =9A exception { =9A =9Axfilter "/usr/bin/spamoracle -f /var/spool/spamoracle/spamoracle.db = mark " =9A =9A =9A =9A} --Boundary-00=_WupyBRTskNllgqv--