作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
从 Ubuntu Server 12.04 升级到 Ubuntu 14.04 LTS 后,我开始遇到解析问题
与我的 otrs 安装。
我使用 mysql 5.5 和 perl 5.18 运行 OTRS 3.1.1。
我认为这可能是因为我有一个旧的 OTRS 版本,所以请按照以下步骤操作
OTRS 手册决定升级到 OTRS 3.2.1、mysql 5.6 并将几乎所有的 perl 模块 + apache 升级到 2.4.7
我这样做了,一切正常,但解析问题仍然存在。
OTRS 通过 cronjob 使用脚本从邮箱中获取电子邮件并创建票证。
在许多票证上,它无法解析它们导致系统卡在特定邮件上
并连续打开同一张票,然后死掉(不解析队列中的其他邮件)。
有任何想法吗 ?
# /opt/otrs/bin/otrs.PostMasterMailbox.pl -f 1
Useless use of '\'; doesn't escape metacharacter '{' at /opt/otrs/Kernel/System/VariableCheck.pm line 290.
In '(?...)', splitting the initial '(?' is deprecated in regex; marked by <-- HERE in m/
( # $1 greater-than and less-than sign
> | < | \s+ | \#{6} |
(?: &[a-zA-Z0-9]+; ) # get html entities
)
( # $2
(?: # http or only www
(?: (?: http s? | ftp ) :\/\/) | # http://,https:// and ftp://
(?: (?: www | ftp ) \.) # www. and ftp.
)
)
( # $3
(?: [a-z0-9\-]+ \. )* # get subdomains, optional
[a-z0-9\-]+ # get top level domain
(?: # file path element
[\/\.]
| [a-zA-Z0-9\-]
)*
(?: # param string
[\?] # if param string is there, "?" must be present
[a-zA-Z0-9&;=%]* # param string content, this will also catch entities like &
)?
(?: # link hash string
[\#] #
[a-zA-Z0-9&;=%]* # hash string content, this will also catch entities like &
)?
)
( # $4
? <-- HERE =(?:
[\?,;!\.\)] (?: \s | $ ) # \)\s this construct is because of bug# 2450
| \"
| \]
| \s+
| '
| > # greater-than and less-than sign
| < # "
| (?: &[a-zA-Z0-9]+; )+ # html entities
| $ # bug# 2715
)
| \#{6} # ending LinkHash
)
/ at /opt/otrs/Kernel/System/HTMLUtils.pm line 867.
IMAP: Connection to mailserver closed.
IMAP: Connection to mailserver closed.
IMAP: Connection to mailserver closed.
IMAP: Connection to mailserver closed.
IMAP: Connection to mailserver closed.
IMAP: Message 1/5 (account/mailserver )
No valid 'utf-8' string: ' ....
...
open body: Invalid argument at /opt/otrs/Kernel/cpan-lib/MIME/Entity.pm line 1872.
[Sat Jun 21 19:44:20 2014] GeneralCatalog.pm: Subroutine ItemAdd redefined at /opt/otrs/Kernel/System/GeneralCatalog.pm line 461.
[Sat Jun 21 19:44:20 2014] GeneralCatalog.pm: Subroutine ItemUpdate redefined at /opt/otrs/Kernel/System/GeneralCatalog.pm line 569.
[Sat Jun 21 19:44:20 2014] GeneralCatalog.pm: Subroutine GeneralCatalogPreferencesSet redefined at /opt/otrs/Kernel/System/GeneralCatalog.pm line 678.
[Sat Jun 21 19:44:20 2014] GeneralCatalog.pm: Subroutine GeneralCatalogPreferencesGet redefined at /opt/otrs/Kernel/System/GeneralCatalog.pm line 697.
[Sat Jun 21 19:44:20 2014] LayoutImportExport.pm: Subroutine ImportExportFormInputCreate redefined at /opt/otrs//Kernel/Output/HTML/LayoutImportExport.pm line 31.
[Sat Jun 21 19:44:20 2014] LayoutImportExport.pm: Subroutine ImportExportFormDataGet redefined at /opt/otrs//Kernel/Output/HTML/LayoutImportExport.pm line 66.
[Sat Jun 21 19:44:20 2014] LayoutImportExport.pm: Subroutine _ImportExportLoadLayoutBackend redefined at /opt/otrs//Kernel/Output/HTML/LayoutImportExport.pm line 100.
[Sat Jun 21 19:44:20 2014] PreferencesDB.pm: Subroutine new redefined at /opt/otrs//Kernel/System/GeneralCatalog/PreferencesDB.pm line 72.
[Sat Jun 21 19:44:20 2014] PreferencesDB.pm: Subroutine GeneralCatalogPreferencesSet redefined at /opt/otrs//Kernel/System/GeneralCatalog/PreferencesDB.pm line 105.
[Sat Jun 21 19:44:20 2014] PreferencesDB.pm: Subroutine GeneralCatalogPreferencesGet redefined at /opt/otrs//Kernel/System/GeneralCatalog/PreferencesDB.pm line 152.
最佳答案
您发布了很长的错误消息,主要是 perl 5.18 中正则表达式功能的折旧警告。
实际问题是这样的:
open body: Invalid argument at /opt/otrs/Kernel/cpan-lib/MIME/Entity.pm line 1872.
关于perl - OTRS PostmasterMailbox.pl 解析/MIME 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24344004/
从 Ubuntu Server 12.04 升级到 Ubuntu 14.04 LTS 后,我开始遇到解析问题 与我的 otrs 安装。 我使用 mysql 5.5 和 perl 5.18 运行 OTR
我是一名优秀的程序员,十分优秀!