2014-09-19 30 views
1

我正在升級服務器,現有的perl CGI程序需要IMAP::Sieve perl模塊。 我的問題是,我無法在互聯網上找到任何參考。 是否有人知道它是否已被替換爲別的東西和/或我能找到它?在哪裏可以找到舊的IMAP :: Sieve perl模塊

我們使用的現有perl CGI程序是websieve(可在SourceForge上找到)。 我們不想使用別的東西,因爲我們對它進行了定製,而且它工作得很完美。 該腳本也使用IMAP::Admin

非常感謝任何提示或建議。

回答

2

通常對於舊模塊去的地方是backpan,但是這看起來像它實際上part of something elselives 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,它提示測試服務器的標準,我沒有一個。

+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

+0

事實上,我只是將Sieve.pm複製到/usr/local/share/perl/5.14.2/IMAP/並且它立即工作在Sieve.pm中的小錯誤) – 2014-09-19 14:01:03

+0

@DenisBUCHER好消息,我很高興現在適合你。上面的例子是針對windows的,所以使用dmake是正確的。我測試過使用Linux和perl 5.16,使用make而不是dmake,並且不能重現你提到的錯誤。我從來沒有使用過這個模塊或工具,所以不能保證它的質量。謝謝 – 2014-09-19 14:01:30

相關問題