diff --git a/inbox.py b/inbox.py
index b7ba31976..204aeb1b3 100644
--- a/inbox.py
+++ b/inbox.py
@@ -1708,8 +1708,12 @@ def gitPatchNotify(baseDir: str, handle: str,
patchFile = accountDir + '/.newPatch'
with open(patchFile, 'w') as fp:
fp.write(subject)
+ contentStr = content.replace('
', '\n').replace('
', '\n')
+ contentStr = contentStr.replace('
', '').replace('
', '\n') + if 'From ' in contentStr: + contentStr = contentStr.split('From ', 1)[1] with open(patchFile + 'Content', 'w') as fp: - fp.write(content) + fp.write(contentStr) def groupHandle(baseDir: str, handle: str) -> bool: