Skip to content

Commit a8b42ce

Browse files
committed
added new email formats
1 parent 803dcfa commit a8b42ce

File tree

5 files changed

+3
-1
lines changed

5 files changed

+3
-1
lines changed

InSpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
pstatus("{} Employees identified".format(len(employees.keys())))
8686
if employees:
8787
if args.emailformat:
88-
if args.emailformat[:args.emailformat.find('@')] in ['first.last', 'last.first', 'firstlast', 'lastfirst', 'first', 'last', 'firstl', 'lfirst', 'flast', 'lastf']:
88+
if args.emailformat[:args.emailformat.find('@')] in ['first.last', 'last.first', 'firstlast', 'lastfirst', 'first_last', 'last_first', 'first', 'last', 'firstl', 'lfirst', 'flast', 'lastf']:
8989
employee_html, employee_csv, employee_json = craft_employees(employees, args.emailformat)
9090
else:
9191
pwarning("You didn't provide a valid e-mail format. See help (-h) for acceptable formats.")

lib/__init__.pyc

131 Bytes
Binary file not shown.

lib/logger.pyc

2.01 KB
Binary file not shown.

lib/soupify.pyc

3.53 KB
Binary file not shown.

lib/workbench.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def format_email(format, first, last):
9595
'last.first': '{}.{}'.format(last,first),
9696
'firstlast': '{}{}'.format(first,last),
9797
'lastfirst': '{}{}'.format(last,first),
98+
'first_last': '{}_{}'.format(first,last),
99+
'last_first': '{}_{}'.format(last,first),
98100
'firstl':'{}{}'.format(first,last[0]),
99101
'lfirst':'{}{}'.format(last[0],first),
100102
'flast': '{}{}'.format(first[0],last),

0 commit comments

Comments
 (0)