initial import of p5-Log-Procmail-0.11
-- The Log::Procmail module processes procmail(1) logfiles and returns the abstracts. You can get all the useful information by using the methods from(), date(), subject(), folder() and size() on the returned Log::Procmail::Abstract object.
This commit is contained in:
parent
94b0e00e60
commit
61d581f2bb
18
mail/p5-Log-Procmail/Makefile
Normal file
18
mail/p5-Log-Procmail/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/12/26 23:56:04 avsm Exp $
|
||||
|
||||
COMMENT= "perl module for reading procmail logs"
|
||||
|
||||
DISTNAME= Log-Procmail-0.11
|
||||
CATEGORIES= mail textproc
|
||||
|
||||
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
||||
|
||||
# GPL/Artistic
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODULES= cpan
|
||||
|
||||
.include <bsd.port.mk>
|
4
mail/p5-Log-Procmail/distinfo
Normal file
4
mail/p5-Log-Procmail/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (Log-Procmail-0.11.tar.gz) = 4dc172c6ba974fb96505509f47528732
|
||||
RMD160 (Log-Procmail-0.11.tar.gz) = 5a76e093d9ac650ca2903e4ef0870ed79fcf29e0
|
||||
SHA1 (Log-Procmail-0.11.tar.gz) = e47f89d963d387223ed14a4a506cb9a97310ec50
|
||||
SIZE (Log-Procmail-0.11.tar.gz) = 14934
|
21
mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm
Normal file
21
mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-lib_Log_Procmail_pm,v 1.1.1.1 2006/12/26 23:56:04 avsm Exp $
|
||||
--- lib/Log/Procmail.pm.orig Tue Dec 26 23:00:16 2006
|
||||
+++ lib/Log/Procmail.pm Tue Dec 26 23:00:49 2006
|
||||
@@ -57,7 +57,7 @@ sub next {
|
||||
};
|
||||
|
||||
# assert: $read == 2;
|
||||
- /^ Subject: (.*)/i && do {
|
||||
+ /^ Subject:\s*(.*)/i && do {
|
||||
push @{$log->{buffer}}, Log::Procmail::Abstract->new()
|
||||
unless @{$log->{buffer}};
|
||||
$log->{buffer}[0]->subject($1);
|
||||
@@ -67,7 +67,7 @@ sub next {
|
||||
# procmail tabulates with tabs and spaces... :-(
|
||||
# assert: $read == 3;
|
||||
# Folder means the end of this record
|
||||
- /^ Folder: (.*?)\s+(\d+)$/ && do {
|
||||
+ /^ Folder:\s*(.*?)\s+(\d+)$/ && do {
|
||||
push @{$log->{buffer}}, Log::Procmail::Abstract->new()
|
||||
unless @{$log->{buffer}};
|
||||
|
5
mail/p5-Log-Procmail/pkg/DESCR
Normal file
5
mail/p5-Log-Procmail/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
The Log::Procmail module processes procmail(1) logfiles and returns
|
||||
the abstracts. You can get all the useful information by using the
|
||||
methods from(), date(), subject(), folder() and size() on the
|
||||
returned Log::Procmail::Abstract object.
|
||||
|
6
mail/p5-Log-Procmail/pkg/PLIST
Normal file
6
mail/p5-Log-Procmail/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/12/26 23:56:04 avsm Exp $
|
||||
bin/mailstat.pl
|
||||
${P5SITE}/Log/
|
||||
${P5SITE}/Log/Procmail.pm
|
||||
@man man/man1/mailstat.pl.1
|
||||
@man man/man3p/Log::Procmail.3p
|
Loading…
Reference in New Issue
Block a user