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

Re: [PATCH 2/2] test mailinfo rfc3676 support

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 15, 2008, 11:01 UTC
Message-ID
<alpine.LSU.1.00.0802151058270.30505@racer.site>
In-Reply-To
<1203042077-11385-2-git-send-email-jaysoffian@gmail.com>
Hi,
On Thu, 14 Feb 2008, Jay Soffian wrote:
Show 14 quoted lines
> +@@ -20,6 +20,13 @@ static enum  {
> +static enum  {
> +	TYPE_TEXT, TYPE_OTHER,
> +} message_type;
> ++/* RFC 3676 Text/Plain Format and DelSp Parameters */
> ++static enum {
> ++	FORMAT_NONE, FORMAT_FIXED, FORMAT_FLOWED,
> ++} tp_format;
> ++static enum {
> ++	DELSP_NONE, DELSP_YES, DELSP_NO,
> ++} tp_delsp;
> +
> +static char charset[256];
> +static int patch_lines;

Hmm. Such a corrupt patch (lacking spaces at the beginning of the line) would not be accepted by git-apply. I briefly thought about teaching git-apply to grok that, with a flag. But now I think that mailsplit should handle that, no?

Question is: can you "de-corruptify" such a patch? (Note: it would probably need a validating step, too, i.e. count the lines it added a space to, and match that up with the numbers in the @@ lines)

Ciao, Dscho

Previous: Jay SoffianNext: Jay Soffian
Message 3 of 14 in “mailinfo: support rfc3676 (format=flowed) text/plain messages”
  1. 1/2 mailinfo: support rfc3676 (format=flowed) text/plain messagesJay Soffian, Feb 15, 2008
  2. 2/2 test mailinfo rfc3676 supportJay Soffian, Feb 15, 2008
  3. Johannes SchindelinFeb 15, 2008
  4. Jay SoffianFeb 15, 2008
  5. Johannes SchindelinFeb 15, 2008
  6. Jay SoffianFeb 15, 2008
  7. Jay SoffianFeb 15, 2008
  8. Johannes SchindelinFeb 16, 2008
  9. Junio C HamanoFeb 15, 2008
  10. Jay SoffianFeb 15, 2008
  11. Junio C HamanoFeb 16, 2008
  12. Jay SoffianFeb 16, 2008
  13. Junio C HamanoFeb 16, 2008
  14. Derek FawcusFeb 16, 2008

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.