Skip to content

Commit

Permalink
BUGFIX: ID generation
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
  • Loading branch information
awieser committed Mar 9, 2012
1 parent 5dc95f5 commit 423aeb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions memacs/lib/mailparser.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Time-stamp: <2012-01-02 17:56:33 armin>
# Time-stamp: <2012-03-09 14:47:00 armin>

import time
import logging
Expand Down Expand Up @@ -63,7 +63,8 @@ def parse_message(message, add_body=False):
headers[key] = value
if key not in not_properties:
properties.add(key, value.replace("\n", ""))
if key == "Message-ID":

if key.upper() == "MESSAGE-ID":
properties.set_id(value)

notes = ""
Expand Down
4 changes: 2 additions & 2 deletions memacs/lib/orgproperty.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Time-stamp: <2011-12-29 15:28:19 armin>
# Time-stamp: <2012-03-09 14:39:17 armin>
import hashlib


Expand Down Expand Up @@ -73,7 +73,7 @@ def __unicode__(self):

if self.__properties == {} and \
self.__data_for_hashing == "" and \
self.__id != None:
self.__id == None:
raise Exception("No data for hashing specified, and no " + \
"property was given. Cannot generate unique ID.")

Expand Down

0 comments on commit 423aeb3

Please sign in to comment.