~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mail_client.py

  • Committer: Christophe Troestler
  • Date: 2008-06-21 15:50:00 UTC
  • mto: (3533.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3534.
  • Revision ID: christophe.troestler@umh.ac.be-20080621155000-noms4eiymhpqqiqv
Remove the temporary elisp file created for attachments by EmacsMail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
        # Try to attach a MIME attachment using our wrapper function
395
395
        if attach_path is not None:
396
396
            # Do not create a file if there is no attachment
397
 
            lmmform = '(load "%s")' % self._prepare_send_function()
 
397
            elisp = self._prepare_send_function()
 
398
            lmmform = '(load "%s")' % elisp
398
399
            mmform  = '(bzr-add-mime-att "%s")' % \
399
400
                self._encode_path(attach_path, 'attachment')
 
401
            rmform = '(delete-file "%s")' % elisp
400
402
            commandline.append(lmmform)
401
403
            commandline.append(mmform)
 
404
            commandline.append(rmform)
402
405
 
403
406
        return commandline
404
407