Ejemplo n.º 1
0
 def __init__(self, location, *args, **kwargs):
     if location.startswith('message:') and 'subject' not in kwargs:
         if self.settings.getboolean('os_darwin', 'getmailsubject'):
             subject = mailer.getSubjectOfMail(location[8:])
             if subject:
                 kwargs['subject'] = subject
         else:
             kwargs['subject'] = _('Mail.app message')
     super(URIAttachment, self).__init__(location, *args, **kwargs)
Ejemplo n.º 2
0
 def __init__(self, location, *args, **kwargs):
     if location.startswith('message:') and 'subject' not in kwargs:
         if self.settings.getboolean('os_darwin', 'getmailsubject'):
             subject = mailer.getSubjectOfMail(location[8:])
             if subject:
                 kwargs['subject'] = subject
         else:
             kwargs['subject'] = _('Mail.app message')
     super(URIAttachment, self).__init__(location, *args, **kwargs)
Ejemplo n.º 3
0
 def __init__(self, location, *args, **kwargs):
     if location.startswith('message:'):
         subject = mailer.getSubjectOfMail(location[8:])
         if subject:
             kwargs['subject'] = subject
     super(URIAttachment, self).__init__(location, *args, **kwargs)