コード例 #1
0
ファイル: attachment.py プロジェクト: HieronymusCH/TaskCoach
 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)
コード例 #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)
コード例 #3
0
ファイル: attachment.py プロジェクト: dfraser74/taskcoach
 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)