diff options
-rw-r--r-- | news2mail.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/news2mail.py b/news2mail.py index 4248be2..78d0ae4 100644 --- a/news2mail.py +++ b/news2mail.py @@ -116,6 +116,11 @@ class news2mail(object): # It should put a real user@domain self.heads_dict['Message-Id'] = 'pyg@puppapera.org' + if 'References' in self.message and \ + 'In-Reply-To' not in self.message: + refs = self.message['References'].split() + self.message['In-Reply-To'] = refs[-1] + except KeyError, message: print message |