[Mailman-Users] External Archiver + Frame Usability Patches

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Sat Dec 11 06:14:10 CET 1999


>>>>> "BR" == Bernhard Reiter <bernhard at uwm.edu> writes:

    BR> For people using the _external archiver_ feature in
    BR> mailman-1.1: I fixed problems with it.

For this one, try this (untested) patch instead.  I don't use an
external archiver so feedback is welcome!

-Barry

-------------------- snip snip --------------------
Index: Archiver.py
===================================================================
RCS file: /projects/cvsroot/mailman/Mailman/Archiver/Archiver.py,v
retrieving revision 1.16
diff -c -r1.16 Archiver.py
*** Archiver.py	1999/11/10 20:05:47	1.16
--- Archiver.py	1999/12/11 05:06:30
***************
*** 179,189 ****
              post.SetHeader('Date', olddate)
  
      def ExternalArchive(self, ar, txt):
!         d = SafeDict({'listname': self.real_name})
          cmd = ar % d
          extarch = os.popen(cmd, 'w')
          extarch.write(txt)
!         extarch.close()
  
      #
      # archiving in real time  this is called from list.post(msg)
--- 179,193 ----
              post.SetHeader('Date', olddate)
  
      def ExternalArchive(self, ar, txt):
!         d = SafeDict({'listname': self.internal_name()})
          cmd = ar % d
          extarch = os.popen(cmd, 'w')
          extarch.write(txt)
!         status = extarch.close()
!         if status:
!             self.LogMsg('error',
!                         'external archiver non-zero exit status: %d\n' %
!                         (status & 0xff00) >> 8)
  
      #
      # archiving in real time  this is called from list.post(msg)




More information about the Mailman-Users mailing list