From e70607e3e33701cc3b7fcc4cc952f57097a0ac12 Mon Sep 17 00:00:00 2001 From: Abdo Roig-Maranges Date: Thu, 20 Nov 2014 14:18:35 +0100 Subject: [PATCH] Warn about a tricky piece of code in addmessageheader As requested by Nicholas Sebrecht. Signed-off-by: Abdo Roig-Maranges --- offlineimap/folder/Base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index 4b30d8c..106c390 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -401,6 +401,9 @@ class BaseFolder(object): """ Adds new header to the provided message. + WARNING: This function is a bit tricky, and modifying it in the wrong way, + may easily lead to data-loss. + Arguments: - content: message content, headers and body as a single string - linebreak: string that carries line ending