-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor mail notifications, add support for SSL servers, add default…
… mail config
- Loading branch information
Showing
4 changed files
with
29 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,13 +91,14 @@ def __init__(self): | |
self.__dict__['disable_tor_redirection'] = False | ||
self.__dict__['disable_gettor'] = False | ||
self.__dict__['avoid_rewriting_visible_data'] = False | ||
self.__dict__['smtp_user'] = '' | ||
self.__dict__['smtp_pass'] = '' | ||
self.__dict__['smtp_mail'] = '' | ||
self.__dict__['smtpuser'] = 'hey_you_should_change_me' | ||
self.__dict__['smtppass'] = 'yes_you_really_should_change_me' | ||
self.__dict__['smtpmail'] = '[email protected]' | ||
self.__dict__['smtpmailto_exceptions'] = '[email protected]' | ||
self.__dict__['smtpmailto_notifications'] = '[email protected]' | ||
self.__dict__['smtpdomain'] = '' | ||
self.__dict__['smtpport'] = 587 | ||
self.__dict__['smtpdomain'] = 'demo.globaleaks.org' | ||
self.__dict__['smtpport'] = 9267 | ||
self.__dict__['smtpsecurity'] = 'TLS' | ||
self.__dict__['exit_node_list_refresh'] = 600 | ||
self.__dict__['automatic_blocklist_updates_source'] = '' | ||
self.__dict__['automatic_blocklist_updates_refresh'] = 600 | ||
|
@@ -143,7 +144,6 @@ def load(self): | |
exit(1) | ||
|
||
try: | ||
|
||
self._parser.read([self._file]) | ||
|
||
for name in self._parser.options(self._section): | ||
|
@@ -199,7 +199,6 @@ def splitlist(self, line): | |
|
||
def parse(self, name): | ||
try: | ||
|
||
value = self._parser.get(self._section, name) | ||
|
||
# strip any boundry whitespace just in case | ||
|
@@ -231,7 +230,6 @@ def __setattr__(self, name, value): | |
return | ||
|
||
try: | ||
|
||
# XXX: Automagically discover variable type | ||
self._parser.set(self._section, name, value) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters