1 Star 0 Fork 13

a75929 / OTRS

forked from Gitee 极速下载 / OTRS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.mailfilter.dist 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
Manuel Hecht 提交于 2018-01-01 21:36 . Updated copyright.
# --
# Copyright (C) 2001-2018 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
#SYS_HOME=/opt/otrs
SYS_HOME=$HOME
import DEFAULT
LOCALDEFAULT=$DEFAULT
DEFAULT=${SYS_HOME}/var/spool/`date +%s`${FROM}${SIZE}
MONTHFOLDER=`date +%Y-%m`
YEARFOLDER=`date +%Y`
# Remove all X-OTRS Header (allow this only for trusted email)
# e. g. from *@example.com
if (/^To:.*@example.com/)
{
xfilter "grep -vi '^X-OTRS-'"
}
# or just no emails with "X-OTRS-Ident: ahfiw2Fw32r230dddl2foeo3r" header!
#if (/^X-OTRS-Ident: ahfiw2Fw32r230dddl2foeo3r/)
#{
# xfilter "grep -vi '^X-OTRS-'"
#}
# Examples for queue presorting.
if (/^To:.*@example.com/)
{
xfilter "formail -I \"X-OTRS-Queue: example\""
}
if (/^List-Id:.*OpenAntiVirus/)
{
xfilter "formail -I \"X-OTRS-Queue: OpenAntiVirus\""
}
# Example for add free form key and value (max 3).
if (/^To:.*@example.com/)
{
xfilter "formail -I \"X-OTRS-ArticleKey1: Test\""
xfilter "formail -I \"X-OTRS-ArticleValue1: True!\""
}
# Backup of all incoming emails.
# It's always better to have a backup of all incoming emails!
cc ${SYS_HOME}/var/INBOX.Backup.${MONTHFOLDER}
# Pipe all email into the PostMaster process.
xfilter "${SYS_HOME}/bin/otrs.Console.pl Maint::PostMaster::Read"
# spool all the rest (which the otrs.PostMaster.pl can't process!)
# If the database is down or the otrs.PostMaster.pl exit was not '0'!
to $DEFAULT
# end of .mailfilter
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/a75929/OTRS.git
git@gitee.com:a75929/OTRS.git
a75929
OTRS
OTRS
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891