~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mail_client.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-03 17:54:53 UTC
  • mfrom: (4669.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090903175453-3l05mwwkt0dwgees
(vila) Fix all known selftest leaks in /tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
 
425
425
    _client_commands = ['emacsclient']
426
426
 
 
427
    def __init__(self, config):
 
428
        super(EmacsMail, self).__init__(config)
 
429
        self.elisp_tmp_file = None
 
430
 
427
431
    def _prepare_send_function(self):
428
432
        """Write our wrapper function into a temporary file.
429
433
 
500
504
        if attach_path is not None:
501
505
            # Do not create a file if there is no attachment
502
506
            elisp = self._prepare_send_function()
 
507
            self.elisp_tmp_file = elisp
503
508
            lmmform = '(load "%s")' % elisp
504
509
            mmform  = '(bzr-add-mime-att "%s")' % \
505
510
                self._encode_path(attach_path, 'attachment')