#!/usr/bin/python

import os

OUT=os.fdopen(3, 'w')

print 'Common issues with reportbug:'
print
print 'EMAIL ADDRESS SETTING: See the manual page reportbug(1) for'
print '   how to set your email address, if reportbug is unable to figure'
print '   it out for you.'
print
print 'EDITORS: See the manual page reportbug(1) for how to choose an editor.'
print '   You probably will want to have this setting for other tools as well.'
print '   As an alternative, some mail programs can be configured to be used'
print '   as the editor, which may be preferable.'
print
print 'To continue, press ENTER.'
raw_input()

OUT.write('Environment settings:\n')
for var in ['EDITOR', 'VISUAL', 'REPORTBUGEMAIL', 'DEBEMAIL', 'EMAIL',
            'DEBFULLNAME', 'DEBNAME', 'NAME']:
    if os.environ.has_key(var):
        OUT.write('%s="%s"\n' % (var, os.environ[var]))
