GetLive is a perl script that fetches mail from your Hotmail

Live account. The mail is then presented to any filter (typically 
procmail) for further processing or dropping in a local mailbox.

This port replaces mail/gotmail (which doesn't work with Hotmail Live)

"commit it if it works" steven@
This commit is contained in:
merdely 2007-10-10 15:17:49 +00:00
parent 99b591798d
commit 050868fbb5
7 changed files with 103 additions and 0 deletions

48
mail/p5-GetLive/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/10 15:17:49 merdely Exp $
COMMENT= automatically fetch hotmail.com email
DISTNAME= GetLive_0_54
PKGNAME= p5-GetLive-0.54
CATEGORIES= mail perl5
EXTRACT_SUFX= .tgz
MAINTAINER= Michael Erdely <merdely@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=getlive/}
RUN_DEPENDS= :curl->=7.15.5:net/curl \
::mail/procmail \
::www/p5-URI
PKG_ARCH= *
NO_BUILD= Yes
NO_REGRESS= Yes
PROGS= GetLive SmtpAuthForward SmtpForward
DOCS= License Manual
WRKDIST= ${WRKDIR}
post-patch:
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},' \
${WRKSRC}/{GetLive.pl,Manual}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/GetLive.pl ${PREFIX}/bin/GetLive
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/GetLive
${INSTALL_SCRIPT} ${WRKSRC}/SmtpAuthForward.pl \
${PREFIX}/share/examples/GetLive/
${INSTALL_SCRIPT} ${WRKSRC}/SmtpForward.pl \
${PREFIX}/share/examples/GetLive/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/GetLive
${INSTALL_DATA} ${WRKSRC}/{License,Manual} ${PREFIX}/share/doc/GetLive
.include <bsd.port.mk>

5
mail/p5-GetLive/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (GetLive_0_54.tgz) = lj1m0yH4zZKLjSyIKpzK/Q==
RMD160 (GetLive_0_54.tgz) = LOMszjv4i70rLB2L2geAk5FAByU=
SHA1 (GetLive_0_54.tgz) = XGiH7ZeVIan5A8oTS+p2y9P106Y=
SHA256 (GetLive_0_54.tgz) = 7aMgG+VopjTNhscE9e0rDujTF6OCH9vPGu97GsryA2M=
SIZE (GetLive_0_54.tgz) = 24872

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-GetLive_pl,v 1.1.1.1 2007/10/10 15:17:49 merdely Exp $
--- GetLive.pl.orig Sat Sep 8 14:23:33 2007
+++ GetLive.pl Wed Oct 10 07:59:06 2007
@@ -53,7 +53,7 @@ my $Password = "";
my $Domain = 'hotmail.com';
my $CurlCommand = 'curl -k';
my $Verbosity = 1; # 0:Silent; 1:Normal; 2:Verbose; 10:debug; 100:heavy debug
-my $MailProcessor = '/usr/bin/procmail'; # Any program taking mbox formatted at stdin will do.
+my $MailProcessor = '!!LOCALBASE!!/bin/procmail'; # Any program taking mbox formatted at stdin will do.
my $DownloadedIdsFile = ""; # Local file with Ids of already downloaded messages.
my $RetryLimit = 2;
my $MarkRead = "No"; # No,Yes : But never when downloaded before !

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-Manual,v 1.1.1.1 2007/10/10 15:17:49 merdely Exp $
--- Manual.orig Sat Sep 8 14:23:33 2007
+++ Manual Wed Oct 10 07:59:19 2007
@@ -47,15 +47,15 @@ Following are the possible options :
web page via curl (the webpage fetcher behind the
scenes)
CurlBin = CommandForCurl ('curl -k' by default).
- Processor = FilterCommand ('/usr/bin/procmail' by default). Any
+ Processor = FilterCommand ('!!LOCALBASE!!/bin/procmail' by default). Any
filtercommand taking the message in mbox format on its
stdin and doing something with it.
*) '/bin/cat - >> FetchedMail' might be another
interesting one to drop directly in a mbox file.
- *) The distribution contains also SmtpForward.pl and
- SmtpAuthForward.pl. Those can be used as
+ *) The distribution contains also SmtpForward and
+ SmtpAuthForward. Those can be used as
'Processor' to forward the mails to an SMTP server.
Folder = FolderName. Folders that need to be fetched.

View File

@ -0,0 +1,3 @@
GetLive is a perl script that fetches mail from your Hotmail
Live account. The mail is then presented to any filter (typically
procmail) for further processing or dropping in a local mailbox.

View File

@ -0,0 +1,5 @@
Refer to ${PREFIX}/share/doc/GetLive/Manual for configuration file
options.
To use GetLive with SMTP as a delivery mechanism, see the scripts in
${PREFIX}/share/examples/GetLive.

View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/10 15:17:49 merdely Exp $
bin/GetLive
share/doc/GetLive/
share/doc/GetLive/License
share/doc/GetLive/Manual
share/examples/GetLive/
share/examples/GetLive/SmtpAuthForward.pl
share/examples/GetLive/SmtpForward.pl