Your message dated Mon, 2 Oct 2006 16:07:42 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Patch switching --date to cutoff date merged in archivemail
0.6.2
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: archivemail
Version: 0.6.1-1
Severity: wishlist
Tags: patch
Let's use a sample, you archive mail once a month, like this:
archivemail --date=30 --suffix=_%Y-%b mailbox
If you run that on November, you get an archive called:
mailbox_2002_Nov.gz
Which in fact holds October messages because the current date is used
for the suffix.
With the following patch, the suffix uses the cut date, which is a
better aproximation of the date of the contents of the archive:
--- archivemail.orig 2002-11-16 12:05:12.000000000 +0100
+++ archivemail 2002-11-16 12:10:24.000000000 +0100
@@ -998,8 +998,13 @@
os.umask(077) # saves setting permissions on mailboxes/tempfiles
# allow the user to embed time formats such as '%B' in the suffix string
+ if options.date_old_max == None:
+ parsed_suffix_time = time.time() - options.days_old_max*24*60*60
+ else:
+ parsed_suffix_time = options.date_old_max
+
parsed_suffix = time.strftime(options.archive_suffix,
- time.localtime(time.time()))
+ time.localtime(parsed_suffix_time))
if options.archive_name:
final_archive_name = options.archive_name
Even something like mailbox_DateOfFirstMessage_DateOfLastMessage could
be usefull. But that would take a little more work. If you find this
idea interesting, I could try to implement it.
Thanks
ranty
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux hell 2.4.19 #1 Thu Oct 17 14:49:59 CEST 2002 i686
Locale: LANG=C, LC_CTYPE=es_ES
Versions of packages archivemail depends on:
ii python 2.2.2-1 An interactive object-oriented scr
-- no debconf information
--
--- Manuel Estrada Sainz <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
------------------------ <[EMAIL PROTECTED]> -------------------
Let us have the serenity to accept the things we cannot change, courage to
change the things we can, and wisdom to know the difference.
--- End Message ---
--- Begin Message ---
Version: 0.6.2-1
See subject. Upstream CVS has merged this patch ages ago, but there was
no release since then. This has changed now, and archivemail 0.6.2
finally has it. I don't think the change was documented, though. I
will update the manpage accordingly for the next release.
Thanks,
Nikolaus
--- End Message ---