git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Add a MIME-Version header to e-mails

From
Karl Hasselström <kha@treskal.com>
Date
Nov 6, 2006, 07:45 UTC
Message-ID
<20061106074532.10376.60478.stgit@localhost>
In-Reply-To
<eile19$p7r$1@sea.gmane.org>
From: Karl Hasselström <kha@treskal.com>

This is required by some mail servers that want to change the transfer encoding of the mail.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---

OK, this is a test to see if adding MIME-Version makes the problem go away. I don't have any other way to test this than sending a patch to the list. :-)

 stgit/commands/mail.py |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py
index 45f7438..c428d67 100644
--- a/stgit/commands/mail.py
+++ b/stgit/commands/mail.py
@@ -271,13 +271,11 @@ def __get_signers_list(msg):
     return addr_list
 
 def __build_extra_headers():
-    """Build extra headers like content-type etc.
-    """
-    headers  = 'Content-Type: text/plain; charset=utf-8; format=fixed\n'
-    headers += 'Content-Transfer-Encoding: 8bit\n'
-    headers += 'User-Agent: StGIT/%s\n' % version.version
-
-    return headers
+    """Build extra headers like content-type etc."""
+    return ('MIME-Version: 1.0\n'
+            'Content-Type: text/plain; charset=utf-8; format=fixed\n'
+            'Content-Transfer-Encoding: 8bit\n'
+            'User-Agent: StGIT/%s\n' % version.version)
 
 def edit_message(msg):
Previous: Jakub NarebskiNext: Karl Hasselström
Message 2 of 10 in “Re: [PATCH] Allow hand-editing of patches before sending”
  1. Jakub NarebskiNov 5, 2006
  2. Add a MIME-Version header to e-mailsKarl Hasselström, Nov 6, 2006
  3. Karl HasselströmNov 6, 2006
  4. Catalin MarinasNov 7, 2006
  5. Catalin MarinasNov 7, 2006
  6. Karl HasselströmNov 8, 2006
  7. Catalin MarinasNov 8, 2006
  8. Karl HasselströmNov 8, 2006
  9. Karl HasselströmNov 11, 2006
  10. Catalin MarinasNov 16, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.