From bd1a6a6a94075e10cffcb840d18197c7f5f0b5a6 Mon Sep 17 00:00:00 2001 From: Jeff Connelly Date: Mon, 9 Jun 2008 18:43:18 -0700 Subject: [PATCH] Rename SecureInbox to SecureMail, since it is used for not only ingoing but also outgoing messages. --- SecureInbox.py => SecureMail.py | 4 ++-- cli.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename SecureInbox.py => SecureMail.py (98%) diff --git a/SecureInbox.py b/SecureMail.py similarity index 98% rename from SecureInbox.py rename to SecureMail.py index ebb4384..d6533c6 100644 --- a/SecureInbox.py +++ b/SecureMail.py @@ -9,7 +9,7 @@ import smtplib import getpass import email -class SecureInbox(object): +class SecureMail(object): def __init__(self, username=None, password=None): """Prompt for login and password, or using stored values if possible, then login.""" @@ -126,7 +126,7 @@ class SecureInbox(object): self.mail_out.quit() def main(): - ms = SecureInbox("shellreef", getpass.getpass()) + ms = SecureMail("shellreef", getpass.getpass()) for m in ms.get_messages(): print m["sender"], m["subject"] diff --git a/cli.py b/cli.py index 2f019e0..47312ed 100644 --- a/cli.py +++ b/cli.py @@ -4,7 +4,7 @@ # # CLI for EasyOTP -import SecureInbox +import SecureMail import cotp import getpass import sys @@ -19,7 +19,7 @@ r# Read message number # """ def main(): - ms = SecureInbox.SecureInbox() + ms = SecureMail.SecureMail() msgs = [] -- 2.11.4.GIT