diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-10-15 13:28:56 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-10-15 13:28:56 (GMT) |
commit | 65c8b940a5dc2616d0949de55955c85457632615 (patch) | |
tree | ab0cc3a43dd139818fb9e7f28bd67ce7bf594e50 | |
parent | 5aef33636cd40374abb5e96f56dfa11366c2f0c7 (diff) |
-rwxr-xr-x | git-gmail | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -14,6 +14,7 @@ from getpass import getpass import re import email import subprocess +import time import libgmail @@ -54,6 +55,9 @@ def _write_patch(message): patch_file.write(full_message) patch_file.close() + sent_date = time.mktime(email.utils.parsedate(email_message['Date'])) + os.utime(file_path, (sent_date, sent_date)) + if __name__ == "__main__": call_args = ['git', 'config', 'user.gmail'] |