Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37866351
en ru br
ALT Linux repositórios
S:0.9.0-alt3
5.0: 0.7.2-alt2
4.1: 0.7.2-alt2
4.0: 0.7.0-alt1

Outros repositórios
Upstream:0.7.2

Group :: Ferramentas de Arquivo
RPM: archivemail

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: archivemail-0.9.0-alt3.patch
Download


 .gear/archivemail.spec                             | 90 ++++++++++++++++++++++
 .gear/rules                                        |  4 +
 .../tags/dbb16815719b36e53eaca144e798676d6e3bfb7a  |  6 ++
 .gear/tags/list                                    |  1 +
 archivemail                                        |  6 +-
 db2html.xsl                                        |  2 +-
 db2man.xsl                                         |  2 +-
 test_archivemail                                   |  2 +-
 8 files changed, 109 insertions(+), 4 deletions(-)
diff --git a/.gear/archivemail.spec b/.gear/archivemail.spec
new file mode 100644
index 0000000..907f81e
--- /dev/null
+++ b/.gear/archivemail.spec
@@ -0,0 +1,90 @@
+%def_disable check
+
+Name: archivemail
+Version: 0.9.0
+Release: alt3
+
+Summary: Archive and compress old email
+License: GPLv2+
+Group: File tools
+
+BuildArch: noarch
+
+Url: http://archivemail.sourceforge.net/
+
+Source0: %name-%version.tar
+Patch: %name-%version-%release.patch
+
+BuildPreReq: python-modules python-devel tidy xsltproc
+BuildPreReq: docbook-style-xsl
+
+%description 
+archivemail is a tool written in python(1) for archiving and compressing
+old email in mailboxes. By default it will read the mailbox MAILBOX,
+moving messages that are older that the specified number of days (180 by
+default) to a mbox-format mailbox in the same directory that is
+compressed with gzip(1).
+
+archivemail supports reading IMAP, Maildir, MH and mbox-format mailboxes, but
+it will always write archive files to mbox-format mailboxes that are compressed
+with gzip(1).
+
+%prep
+%setup
+%patch -p1
+
+%check
+./test_archivemail
+
+%build
+%make doc
+
+%install
+#mkdir -p %buildroot{%_bindir,%_man1dir}
+#install -p -m755 %name %buildroot%_bindir/%name
+#install -p -m644 %name.1 %buildroot%_man1dir
+%python_build_install
+
+rm %buildroot%python_sitelibdir/archivemail-*.egg-info
+
+%files
+%_bindir/*
+%_man1dir/*
+%doc CHANGELOG FAQ NEWS README TODO test_archivemail examples/
+
+%changelog
+* Sat Apr 27 2019 Vitaly Lipatov <lav@altlinux.ru> 0.9.0-alt3
+- disable check
+
+* Tue Mar 26 2019 Vitaly Lipatov <lav@altlinux.ru> 0.9.0-alt2
+- fix build: apply patch from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724043
+
+* Wed Sep 03 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1
+- Version 0.9.0
+
+* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.8.0-alt1.1
+- Rebuild with Python-2.7
+
+* Wed Aug 11 2010 Andrey Rahmatullin <wrar@altlinux.org> 0.8.0-alt1
+- 0.8.0
+- re-enable tests (and move them to %%check)
+
+* Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.7.2-alt2.1
+- Rebuilt with python 2.6
+
+* Sat Mar 22 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.7.2-alt2
+- disable tests
+
+* Sun Nov 11 2007 Andrey Rahmatullin <wrar@altlinux.ru> 0.7.2-alt1
+- 0.7.2
+- remove manual Requires
+
+* Sun Nov 05 2006 Andrey Rahmatullin <wrar@altlinux.ru> 0.7.0-alt1
+- 0.7.0
+
+* Wed Aug 23 2006 Andrey Rahmatullin <wrar@altlinux.ru> 0.6.2-alt1
+- 0.6.2
+
+* Sat Jun 10 2006 Andrey Rahmatullin <wrar@altlinux.ru> 0.6.1-alt0.1
+- initial build
+
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..7e70a1a
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+spec: .gear/archivemail.spec
+tar: v0_9_0:.
+diff: v0_9_0:. .
+
diff --git a/.gear/tags/dbb16815719b36e53eaca144e798676d6e3bfb7a b/.gear/tags/dbb16815719b36e53eaca144e798676d6e3bfb7a
new file mode 100644
index 0000000..31f6b67
--- /dev/null
+++ b/.gear/tags/dbb16815719b36e53eaca144e798676d6e3bfb7a
@@ -0,0 +1,6 @@
+object e3f0440305fef5f576424c54b8dd3efd0c94ace0
+type commit
+tag v0_9_0
+tagger Nikolaus Schulz <microschulz@web.de> 1310250030 +0200
+
+Tagging v0.9.0
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..de3aa63
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+dbb16815719b36e53eaca144e798676d6e3bfb7a v0_9_0
diff --git a/archivemail b/archivemail
index 26b9aca..b958203 100755
--- a/archivemail
+++ b/archivemail
@@ -1030,7 +1030,7 @@ def is_older_than_time(time_message, max_time):
     return False
 
 
-def is_older_than_days(time_message, max_days):
+def is_older_than_days(time_message, max_days, debugtime=False):
     """Return true if a message is older than the specified number of days,
     false otherwise.
 
@@ -1046,6 +1046,10 @@ def is_older_than_days(time_message, max_days):
     secs_old_max = (max_days * 24 * 60 * 60)
     days_old = (time_now - time_message) / 24 / 60 / 60
     vprint("message is %.2f days old" % days_old)
+    if debugtime:
+        print "time_message=%.8f time_now=%.8f secs_old_max=%.8f old=%s" % \
+                (time_message, time_now, secs_old_max,
+                 time_message + secs_old_max < time_now)
     if ((time_message + secs_old_max) < time_now):
         return True
     return False
diff --git a/db2html.xsl b/db2html.xsl
index d3be5f6..7f71e8c 100644
--- a/db2html.xsl
+++ b/db2html.xsl
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
-  <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl"/>
+  <xsl:import href="/usr/share/xml/docbook/xsl-stylesheets/html/docbook.xsl"/>
   <xsl:param name="html.stylesheet">manpage.css</xsl:param>
   <xsl:template name="user.header.content">
       <h1>archivemail</h1>
diff --git a/db2man.xsl b/db2man.xsl
index bcc3f61..9e3aceb 100644
--- a/db2man.xsl
+++ b/db2man.xsl
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
-  <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl"/>
+  <xsl:import href="/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl"/>
 
   <!-- Use .TP list for the variablelist describing the strtime() directives. -->
   <!-- This hack aligns the indented paragraphs horizontally with their -->
diff --git a/test_archivemail b/test_archivemail
index 7bf700f..f609fc7 100755
--- a/test_archivemail
+++ b/test_archivemail
@@ -518,7 +518,7 @@ class TestIsTooOld(unittest.TestCase):
         for minutes in range(0, 61):
             time_msg = time.time() - (25 * 60 * 60) + (minutes * 60)
             assert archivemail.is_older_than_days(time_message=time_msg,
-                max_days=1)
+                max_days=1, debugtime=(minutes == 60))
 
     def testNotOld(self):
         """with max_days=9, should be false for these dates < 9 days"""
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009