All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Karl Hasselström" <kha@treskal.com>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org
Subject: [PATCH] Add a MIME-Version header to e-mails
Date: Mon, 06 Nov 2006 08:45:32 +0100	[thread overview]
Message-ID: <20061106074532.10376.60478.stgit@localhost> (raw)
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):

  reply	other threads:[~2006-11-06  7:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01  9:00 [PATCH] Allow hand-editing of patches before sending Karl Hasselström
2006-11-02 10:32 ` Catalin Marinas
2006-11-02 11:36   ` Karl Hasselström
2006-11-03  9:39     ` Catalin Marinas
2006-11-03  9:58       ` Karl Hasselström
2006-11-03 10:01         ` Karl Hasselström
2006-11-03 10:21           ` Petr Baudis
2006-11-03 10:31             ` Robin Rosenberg
2006-11-03 10:36             ` Andreas Ericsson
2006-11-03 10:53               ` Karl Hasselström
2006-11-03 11:21                 ` Junio C Hamano
2006-11-03 11:35                   ` Karl Hasselström
2006-11-03 12:56                   ` Catalin Marinas
2006-11-03 12:07           ` Andy Whitcroft
2006-11-03 12:36             ` Karl Hasselström
2006-11-03 14:03             ` Andy Whitcroft
2006-11-03 18:48               ` Linus Torvalds
2006-11-05 11:43                 ` Karl Hasselström
2006-11-05 16:44                   ` Linus Torvalds
2006-11-05 19:04                     ` Karl Hasselström
2006-11-05 19:29                       ` Jakub Narebski
2006-11-06  7:45                         ` Karl Hasselström [this message]
2006-11-06  7:56                           ` [PATCH] Add a MIME-Version header to e-mails Karl Hasselström
2006-11-07  9:53                           ` Catalin Marinas
2006-11-07 19:09                             ` Catalin Marinas
2006-11-08  8:40                               ` Karl Hasselström
2006-11-08  9:41                                 ` Catalin Marinas
2006-11-08 10:01                                   ` Karl Hasselström
2006-11-08 10:12                                     ` Catalin Marinas
2006-11-12 21:14                                       ` [StGIT PATCH 0/2] mail and import tests Karl Hasselström
2006-11-12 21:15                                         ` [StGIT PATCH 1/2] Regression test for "stg import" Karl Hasselström
2006-11-12 21:15                                         ` [StGIT PATCH 2/2] Regression test for "stg mail" Karl Hasselström
2006-11-11 12:24                               ` [PATCH] Add a MIME-Version header to e-mails Karl Hasselström
2006-11-16 17:24                                 ` Catalin Marinas
2006-11-03 12:44         ` [PATCH] Allow hand-editing of patches before sending Catalin Marinas
2006-11-03 13:02           ` Karl Hasselström
2006-11-03 13:16             ` Catalin Marinas
2006-11-03 13:25               ` Karl Hasselström
2006-11-03 13:25             ` Catalin Marinas
2006-11-03 13:33               ` Karl Hasselström
2006-11-03 13:42                 ` Karl Hasselström
2006-11-03 13:56                 ` Catalin Marinas
2006-11-03 14:37                   ` Catalin Marinas
2006-11-03 13:39               ` Petr Baudis
2006-11-03 14:01                 ` Catalin Marinas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061106074532.10376.60478.stgit@localhost \
    --to=kha@treskal.com \
    --cc=catalin.marinas@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.