1

我正在升级服务器,而现有的 perl CGI 程序需要IMAP::Sieveperl 模块。我的问题是我在互联网上找不到任何参考。有人知道它是否已被其他东西取代和/或我在哪里可以找到它?

我们使用的现有 perl CGI 程序是websieve(可以在 SourceForge 上找到)。我们不想使用其他东西,因为我们对其进行了定制,并且它运行良好。该脚本也使用IMAP::Admin.

非常感谢任何提示或建议。

4

1 回答 1

2

通常对于旧模块来说,去的地方是backpan,但是这看起来它实际上是其他东西的一部分并且生活在 sourceforge而不是 cpan 上:

websieve 使用的 Perl 模块,用于在 Cyrus IMAP 邮件服务器上创建 Sieve 脚本。有时也称为“perlsieve”。

万维网:http: //sourceforge.net/projects/websieve

在最新版本的 tarball 中有一个 perlsieve-0.4.9 的 tarball,它的 make 文件内容如下:

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'  => 'IMAP::Sieve',
    'VERSION_FROM' => 'Sieve.pm', # finds $VERSION
);

所以只需以老式方式安装它:

D:\websieve-063a\perlsieve-0.4.9>dmake install
Installing D:\perl\perl\site\lib\IMAP\Sieve.pm
Installing D:\perl\perl\site\lib\IMAP\testssl.pl
Appending installation info to D:\perl\perl\lib/perllocal.pod

D:\websieve-063a\perlsieve-0.4.9>perl Makefile.PL
Generating a dmake-style Makefile
Writing Makefile for IMAP::Sieve
Writing MYMETA.yml and MYMETA.json

D:\websieve-063a\perlsieve-0.4.9>dmake
Skip blib\lib\IMAP\testssl.pl (unchanged)
Skip blib\lib\IMAP\Sieve.pm (unchanged)

D:\websieve-063a\perlsieve-0.4.9>dmake install
Appending installation info to D:\perl\perl\lib/perllocal.pod

D:\websieve-063a\perlsieve-0.4.9>

随意dmake test之前dmake install,它会提示测试服务器标准,我没有。

于 2014-09-19T13:34:21.510 回答