Re: [PATCH 2/2] add edit function to resume postponed emails
authorAntoine Beaupré <anarcat@koumbit.org>
Wed, 20 Jul 2011 21:36:43 +0000 (17:36 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:11 +0000 (09:39 -0800)
d5/62cdadb9677eff79cb6289c327dcf4f502e3d4 [new file with mode: 0644]

diff --git a/d5/62cdadb9677eff79cb6289c327dcf4f502e3d4 b/d5/62cdadb9677eff79cb6289c327dcf4f502e3d4
new file mode 100644 (file)
index 0000000..cfcf2ad
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <anarcat@anarcat.ath.cx>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 50EAF431FD0\r
+       for <notmuch@notmuchmail.org>; Wed, 20 Jul 2011 14:36:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+       tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id CEePVyVkmSwZ for <notmuch@notmuchmail.org>;\r
+       Wed, 20 Jul 2011 14:36:48 -0700 (PDT)\r
+Received: from marcos.anarcat.ath.cx (H144.C72.B0.tor.eicat.ca [72.0.72.144])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1793A431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 20 Jul 2011 14:36:48 -0700 (PDT)\r
+Received: by marcos.anarcat.ath.cx (Postfix, from userid 1000)\r
+       id 5EA65761D1; Wed, 20 Jul 2011 17:36:47 -0400 (EDT)\r
+From: Antoine =?utf-8?Q?Beaupr=C3=A9?= <anarcat@koumbit.org>\r
+To: Austin Clements <amdragon@mit.edu>\r
+Subject: Re: [PATCH 2/2] add edit function to resume postponed emails\r
+In-Reply-To:\r
+ <CAH-f9Wtff0noP2-jxSmmhMRDWebt6G10Pe+3r-m6WvhDm_--ow@mail.gmail.com>\r
+References: <1310807540-29960-1-git-send-email-anarcat@koumbit.org>\r
+       <1310841685-29167-1-git-send-email-anarcat@koumbit.org>\r
+       <CAH-f9Wtff0noP2-jxSmmhMRDWebt6G10Pe+3r-m6WvhDm_--ow@mail.gmail.com>\r
+User-Agent: Notmuch/0.6+nmu1 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Wed, 20 Jul 2011 17:36:43 -0400\r
+Message-ID: <874o2gskgk.fsf@marcos.anarcat.ath.cx>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 20 Jul 2011 21:36:49 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Sat, 16 Jul 2011 15:31:31 -0400, Austin Clements <amdragon@mit.edu> wrot=\r
+e:\r
+> I think this could be simplified a lot and many of the known issues\r
+> addressed if this were narrowed to *only* resuming from drafts.\r
+> message-mode draft files aren't MIME messages (or, at least, they're\r
+> never multipart, and message-mode has its own special annotations over\r
+> basic RFC 822), so rather than treating the draft as a MIME message\r
+> and trying to transform it back into a message-mode-compatible draft\r
+> (which, in full generality, would be somewhere between hard and\r
+> impossible), what about just dumping the raw contents of the draft\r
+> file into a buffer and pointing message-mode at it?  If the draft file\r
+> is available, you could even open it directly (this wouldn't work for\r
+> remote usage, but remote drafts introduce many other problems, too).\r
+\r
+I think this is a great idea. Unfortunately, I had a lot of trouble\r
+making message-mode digest an existing buffer. For example, if you take\r
+any existing buffer and call (message-mode) on it, you will notice it\r
+will clear the buffer completely.\r
+\r
+I guess I would need to look at how (notmuch-mua-edit-mail) does it but\r
+it was the blocker i had when i tried to figure this out..\r
+\r
+Any suggestions?\r
+\r
+A.\r
+\r
+=2D-=20\r
+To be naive and easily deceived is impermissible, today more than\r
+ever, when the prevailing untruths may lead to a catastrophe because\r
+they blind people to real dangers and real possibilities.\r
+                        - Erich Fromm\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJOJ0psAAoJEHkhUlJ7dZIe99wP/0I8MM5HcvnYwqSojK1Dl8HD\r
+FJXG4M9HzQijS8H3vCtK7oe9bKy9chzHEhlNvb4lB/lk9fwCjIBzgALYgCwSzwzO\r
+c5l4EFyRN8nqsUevm/GuTAIbSLhiqwxqUq+TsUXVh7+N3hD8RISFHmoOeb1CXugE\r
+1EOFQLizNvDtzU5M2SftgMoj92tHQ8d65TPAdq6GVJPEkX1JSAIvMt04JQ0YNpal\r
+MDl8J5WjxzowlZ6uPoEaC4XG+Jw+n76KkEFvd0M7LmSDSRNhmimou+5rhhQ8jz3k\r
+wbtDQCKXJtn/450/BmGEffBIJ7hGzgjo+4U5APBIFPDq8Lo+PGL22eJRup9ynX+G\r
+wq8zRBzg5PagTlT851CQUaVon/E/Eh2xvAb5xUu8jspz1ydX7XA5PlHgw188FWxm\r
+MZ5vyM8Rj4RFSoBFcPSwnvRtyUDFpkpI2jDAB5RWeuy1mZJ3PODZiqru7xjqtHmV\r
+0EzOSPIiAArjLy7UBuiIlrZbeH7jfvfLTuT0jZWbJcjAxzLnu2RJFkXtSYKGRKDX\r
+xY+qduuW9lmxrgEZBPdir3xGNGvoCj/P9OBMXbsBc/k81jipum1Jv0j9Za2CEKYX\r
+s8kzD/sD9kbC3OP/KmfJeYRE9Bet+/piU4BPJYmnUZDw59HtsEnIXe6jHIsJhCyk\r
+sq5m6w4fbsaLrSylQI6k\r
+=aXay\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r