通常对于旧模块去的地方是backpan,但是这看起来像它实际上part of something else和lives on sourceforge,而不是CPAN:
用于在赛勒斯 IMAP邮件创建过滤脚本使用websieve
Perl模块服务器。有时也被称为'perlsieve'。
WWW:http://sourceforge.net/projects/websieve
压缩包为最新的版本里面有对perlsieve-0.4.9的压缩包,为此,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
0,它提示测试服务器的标准,我没有一个。
哇!非常感谢您的详细帮助。你是对的,这个IMAP :: Sieve确实包含在websieve中。 我的安装过程中遇到的唯一问题是: 在/usr/share/perl/5.14/ExtUtils/Install中使用“strict refs”时,无法使用字符串(“testssl.pl”)作为HASH ref。 .pm line 1194. dmake:错误代码2,同时使'pm_to_blib' – 2014-09-19 13:53:30
事实上,我只是将Sieve.pm复制到/usr/local/share/perl/5.14.2/IMAP/并且它立即工作在Sieve.pm中的小错误) – 2014-09-19 14:01:03
@DenisBUCHER好消息,我很高兴现在适合你。上面的例子是针对windows的,所以使用dmake是正确的。我测试过使用Linux和perl 5.16,使用make而不是dmake,并且不能重现你提到的错误。我从来没有使用过这个模块或工具,所以不能保证它的质量。谢谢 – 2014-09-19 14:01:30