Your message dated Fri, 07 Nov 2008 02:47:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#504079: fixed in logrotate 3.7.7-1
has caused the Debian Bug report #504079,
regarding Logrotate: Mailfirst + delaycompress + dateext = error.
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
504079: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504079
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: logrotate
Version: 3.7.1-3 
 
- System information:

# uname -a
Linux correo 2.6.18-6-amd64 #1 SMP Mon Oct 13 18:13:07 UTC 2008 x86_64 GNU/Linux

# dpkg -s libc6 | grep ^Version
Version: 2.3.6.ds1-13etch7

- Description:

When you configure logrotate with mailfirst option and delaycompress, the 
program dont send the log to the specific email address, because it looks at 
for a .gz file, which doesnt exits (It hasn´t been compressed yet).

It´s something about this in this closed bugreport:
  
Refer: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=186818 
 
- Bug reprodution:

* Edit /etc/logrotate.conf and add this lines with a real format email address:
 
/var/log/mail.log {
        dateext
        mailfirst
        mail janzun.rosanegra dt rosanegra dt org
        missingok
        daily
        rotate 365
        create
        compress
        delaycompress
        start 0
} 
 
* Executing logrotate you´ll see the error line:

# logrotate /etc/logrotate.conf -f
error: failed to open /var/log/mail.log-20081030.gz for mailing: No such file 
or directory 
 
Obviously file *gz doesnt exist because delaycompress is active and "yesterday" 
log isnt compressed.
 
- Bad solution: Comment delaycompress directive, but i dont like this.
 
- Temporary solution for me is to comment "mail" directive and run a tiny 
postrotate script like this:
 
/var/log/mail.log {
        dateext
#        mailfirst
#        mail [EMAIL PROTECTED]
        missingok
        daily
        rotate 365
        create
        compress
        delaycompress
        start 0
        postrotate
 
                T_FILE="${1}-$(date +%Y%m%d)"
                bzip2 -k $T_FILE
                uuencode ${T_FILE}.bz2 ${T_FILE}.bz2 |mail -s "Mail log subject 
here" [EMAIL PROTECTED]
                rm ${T_FILE}.bz2
 
        endscript
 
}

Its some different that the original function, because I have "yesterday" log 
decompressed in the system but compressed in backup email, and archive.log is 
adjunted, not printed in body message.

- For a real and origin function reproduction, it should be:

# Script

postrotate

        T_FILE="${1}-$(date +%Y%m%d)"
        echo $T_FILE |mail -s "Mail log subject here" [EMAIL PROTECTED] 

endscript

# /Script
                  
Thank you very much for your effor maintaining this package, and sorry for my 
english.

Regards,
 
Jesús Feliz Fernández.
 



--- End Message ---
--- Begin Message ---
Source: logrotate
Source-Version: 3.7.7-1

We believe that the bug you reported is fixed in the latest version of
logrotate, which is due to be installed in the Debian FTP archive:

logrotate_3.7.7-1.diff.gz
  to pool/main/l/logrotate/logrotate_3.7.7-1.diff.gz
logrotate_3.7.7-1.dsc
  to pool/main/l/logrotate/logrotate_3.7.7-1.dsc
logrotate_3.7.7-1_i386.deb
  to pool/main/l/logrotate/logrotate_3.7.7-1_i386.deb
logrotate_3.7.7.orig.tar.gz
  to pool/main/l/logrotate/logrotate_3.7.7.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Paul Martin <[EMAIL PROTECTED]> (supplier of updated logrotate package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 07 Nov 2008 02:27:18 +0000
Source: logrotate
Binary: logrotate
Architecture: source i386
Version: 3.7.7-1
Distribution: experimental
Urgency: low
Maintainer: Paul Martin <[EMAIL PROTECTED]>
Changed-By: Paul Martin <[EMAIL PROTECTED]>
Description: 
 logrotate  - Log rotation utility
Closes: 285858 339502 410420 416177 433496 463581 504079
Changes: 
 logrotate (3.7.7-1) experimental; urgency=low
 .
   * New upstream release (based on upstream 3.7.7-1)
     + The source code has been run through "indent" which makes looking
       for differences "interesting".
     + Debian patches no longer required:
       - compress-499502.patch: upstream has fix.
       - globfix-277652: upstream has a fix. In addition, logrotate will
         attempt to continue rather than stopping dead if there are any
         errors in its config files. (Closes: #285858)
       - script-argument.patch: upstream has fixed this.
       - rh-dateext.patch: upstream has it.
       - rh-maxage.patch: upstream has it.
       - rh-noTMPDIR.patch: upstream has it.
       - rh-selinux.patch: upstream has it.
       - taboo-to-debug.patch: upstream has it.
       - scripterrors.patch: upstream has fix.
       - man-lastaction.patch: upstream has it.
       - man-mailtypo.patch: upstream has it.
       - man-rh-1.patch: upstream has it.
       - man-333996.patch: upstream has fix.
     + New features:
       - yearly rotations
       - minsize
       - optionally use shred when deleting files
       - dateformat, to control the date format when using dateext
       - Tabooexts can be wildcards.
     + Upstream fixes:
       - Manpage fixed for example using /var/log/news. (Closes: #339502)
 .
   * dateext-504079.patch: If dateext is used with delaycompress and
     mailfirst, the wrong filename (one that has compressext added) is
     attempted to be mailed. (Closes: #504079,#433496)
   * dst.patch: Update to add the current "hour" to the struct tm, so
     that DST changes don't cause the date to be off by one.
     (Closes: #416177)
   * Corrected upstream URL (Closes: #410420)
   * deb-taboos.patch: added .cfsaved to taboo list. (Closes: #463581)
Checksums-Sha1: 
 224a024ee334b90bc43ab6d1d6d6d0a3ba8f4740 1024 logrotate_3.7.7-1.dsc
 da6aadf20ffe289d93611864cbeb5a5f6a82a440 42867 logrotate_3.7.7.orig.tar.gz
 32a7382ed4116605e685fa01a969ef10fb73facf 17687 logrotate_3.7.7-1.diff.gz
 b2600f6dcb08b6fdc150562cf123026efb179f9a 40572 logrotate_3.7.7-1_i386.deb
Checksums-Sha256: 
 6865ef411cf733936bf4dc20782856eadbfeb70a86f562fed7b9289252250ad2 1024 
logrotate_3.7.7-1.dsc
 b281c1f318417184caf2588979a04793809f2c6f558c6249248ebb07494cc93f 42867 
logrotate_3.7.7.orig.tar.gz
 afea9b3e946671d8bf271b8a83cc06899cfaf6a1a3836a69397967de66a83ff5 17687 
logrotate_3.7.7-1.diff.gz
 7c3e1efc27be17dec296b239052580f76b75b8d649b13a1d9bb27a3cc2cfb73f 40572 
logrotate_3.7.7-1_i386.deb
Files: 
 012ea87bf690b800beb2b4e75214ab8a 1024 admin important logrotate_3.7.7-1.dsc
 431e135abb7f3fe19de4c6a65bb66823 42867 admin important 
logrotate_3.7.7.orig.tar.gz
 cfcdd547653adaf7a51f47c8d79dc73a 17687 admin important 
logrotate_3.7.7-1.diff.gz
 15e2b5b461d0d7d99fe65ad6293f72dc 40572 admin important 
logrotate_3.7.7-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJE6i6+gi+rt7UWRIRAgRnAJwNP1IeVGqCULBI/Mh73Hzi3AJoaACfXpc9
oEeWc/4BhsB386As+rRu46M=
=k7Tv
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to