diff options
Diffstat (limited to 'Demo/scripts/from.py')
-rwxr-xr-x | Demo/scripts/from.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/scripts/from.py b/Demo/scripts/from.py index 21ca081..8e663f1 100755 --- a/Demo/scripts/from.py +++ b/Demo/scripts/from.py @@ -24,13 +24,13 @@ except RuntimeError: while 1: line = mail.readline() if not line: break # EOF - if line[:5] = 'From ': + if line[:5] == 'From ': # Start of message found print line[:-1], while 1: line = mail.readline() if not line: break # EOF - if line = '\n': break # Blank line ends headers - if line[:8] = 'Subject:': + if line == '\n': break # Blank line ends headers + if line[:8] == 'Subject:': print `line[9:-1]`, print |