summaryrefslogtreecommitdiff
path: root/src/leap/email
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-01-28 18:03:19 -0200
committerdrebs <drebs@leap.se>2013-01-28 18:03:19 -0200
commitc9ed6f3d7f368e3dc4a3027517c7d63be2176296 (patch)
tree0ca5d09916de4f09e59107fa68152a3a092c44f6 /src/leap/email
parentb164d5025a30ee5d47a6992502bbd80576de9a73 (diff)
Remove hard coded file dependency.
Diffstat (limited to 'src/leap/email')
-rw-r--r--src/leap/email/smtp/smtprelay.py16
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():