summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-22 12:15:51 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-22 12:15:51 +0100
commitd6dc8e7e96292e55883d9b25fba7c8b83b585af2 (patch)
treef5456999400e336a4b473e93668c9ed1208aa492 /alot
parent4e6a8e97c94042fb2f74803351d32e2922f75643 (diff)
cleanup & pep8 fixes
Diffstat (limited to 'alot')
-rw-r--r--alot/__init__.py3
-rw-r--r--alot/commands/thread.py2
-rw-r--r--alot/db.py7
3 files changed, 6 insertions, 6 deletions
diff --git a/alot/__init__.py b/alot/__init__.py
index 8d2b1835..729637f8 100644
--- a/alot/__init__.py
+++ b/alot/__init__.py
@@ -17,11 +17,10 @@ along with notmuch. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2011 Patrick Totzke <patricktotzke@gmail.com>
"""
__productname__ = 'alot'
-__version__ = '0.11'
+__version__ = '0.11-dev'
__copyright__ = "Copyright (C) 2011 Patrick Totzke"
__author__ = "Patrick Totzke"
__author_email__ = "patricktotzke@gmail.com"
__description__ = "Command-line MUA using notmuch mail"
__url__ = "https://github.com/pazz/alot"
__license__ = "Licensed under the GNU GPL v3+."
-
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index d8b6575f..4dc38e64 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -293,7 +293,7 @@ class PipeCommand(Command):
for mail in mails:
headertext = extract_headers(mail)
bodytext = extract_body(mail)
- msg = '%s\n\n %s' % (headertext, bodytext)
+ msg = '%s\n\n%s' % (headertext, bodytext)
mailstrings.append(msg.encode('utf-8'))
else:
mailstrings = [e.as_string() for e in mails]
diff --git a/alot/db.py b/alot/db.py
index d904c3be..c1c76657 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -207,11 +207,12 @@ class Thread(object):
try:
self._oldest_date = datetime.fromtimestamp(ts)
- except ValueError: # year is out of range
+ except ValueError: # year is out of range
self._oldest_date = None
try:
- self._newest_date = datetime.fromtimestamp(thread.get_newest_date())
- except ValueError: # year is out of range
+ timestamp = thread.get_newest_date()
+ self._newest_date = datetime.fromtimestamp(timestamp)
+ except ValueError: # year is out of range
self._newest_date = None
self._tags = set([t for t in thread.get_tags()])