代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/OTRS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# --
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。