diff options
author | drebs <drebs@leap.se> | 2013-01-28 18:03:19 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-01-28 18:03:19 -0200 |
commit | c9ed6f3d7f368e3dc4a3027517c7d63be2176296 (patch) | |
tree | 0ca5d09916de4f09e59107fa68152a3a092c44f6 /src/leap | |
parent | b164d5025a30ee5d47a6992502bbd80576de9a73 (diff) |
Remove hard coded file dependency.
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/email/smtp/smtprelay.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/leap/email/smtp/smtprelay.py b/src/leap/email/smtp/smtprelay.py index 5123db25..7a647717 100644 --- a/src/leap/email/smtp/smtprelay.py +++ b/src/leap/email/smtp/smtprelay.py @@ -152,12 +152,16 @@ class EncryptedMessage(): # this will be replaced by some other mechanism of obtaining credentials # for SMTP server. def getSMTPInfo(self): - f = open('/media/smtp-info.txt', 'r') - self.smtp_host = f.readline().rstrip() - self.smtp_port = f.readline().rstrip() - self.smtp_username = f.readline().rstrip() - self.smtp_password = f.readline().rstrip() - f.close() + #f = open('/media/smtp-info.txt', 'r') + #self.smtp_host = f.readline().rstrip() + #self.smtp_port = f.readline().rstrip() + #self.smtp_username = f.readline().rstrip() + #self.smtp_password = f.readline().rstrip() + #f.close() + self.smtp_host = '' + self.smtp_port = '' + self.smtp_username = '' + self.smtp_password = '' class GPGWrapper(): |