- if config.has_option('stgit', 'authname') \
- and config.has_option('stgit', 'authemail'):
+ if config.has_option('stgit', 'sender'):
+ return config.get('stgit', 'sender')
+ elif config.has_option('stgit', 'authname') \
+ and config.has_option('stgit', 'authemail'):