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)
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)