Skip to content

Commit 53b6958

Browse files
committed
Add Windows post module for reading/searching Outlook e-mail #4
1 parent 435c6ee commit 53b6958

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/post/windows/gather/outlook.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def run
116116
object = "HTMLBody"
117117
allow = datastore['A_TRANSLATION']
118118
allow_access_for = datastore['ACF_TRANSLATION']
119+
langNotSupported = false
119120

120121
# OS language check
121122
sysLang = client.sys.config.sysinfo['System Language']
122123
if sysLang != "en_US" and sysLang != "NL"
123-
print_error ("System language not supported, only English (en-US) and Dutch (NL) are supported, you can specify the targets system translations in the options A_TRANSLATION (Allow) and ACF_TRANSLATION (Allow access for)")
124-
abort()
124+
langNotSupported = true
125125
else
126126
atrans = A_HASH[sysLang]
127127
acftrans = ACF_HASH[sysLang]
@@ -130,6 +130,11 @@ def run
130130
if allow and allow_access_for
131131
atrans = allow
132132
acftrans = allow_access_for
133+
else
134+
if langNotSupported == true
135+
print_error ("System language not supported, only English (en-US) and Dutch (NL) are supported, you can specify the targets system translations in the options A_TRANSLATION (Allow) and ACF_TRANSLATION (Allow access for)")
136+
abort()
137+
end
133138
end
134139

135140
# Outlook installed

0 commit comments

Comments
 (0)