1 Return-Path: <awg@lagos.xvx.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 0937D431FD5
\r
6 for <notmuch@notmuchmail.org>; Sun, 18 Mar 2012 09:33:16 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id tQ3qspsK5UyH for <notmuch@notmuchmail.org>;
\r
16 Sun, 18 Mar 2012 09:33:13 -0700 (PDT)
\r
17 Received: from smtp-out-04.shaw.ca (smtp-out-04.shaw.ca [64.59.134.12])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 9BCA2431E84
\r
19 for <notmuch@notmuchmail.org>; Sun, 18 Mar 2012 09:33:02 -0700 (PDT)
\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml1no-ssvc.prod.shaw.ca)
\r
22 by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 18 Mar 2012 10:33:00 -0600
\r
23 X-Cloudmark-SP-Filtered: true
\r
24 X-Cloudmark-SP-Result: v=1.1 cv=Cufqhujp69hR+MhiHu40yK/USb/hlYs0+irVU46A6+k=
\r
26 a=Y7FDB8yiQi8A:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17
\r
27 a=7343-z1_AAAA:8 a=V2sgnzSHAAAA:8 a=SuFOw32sAAAA:8 a=pGLkceISAAAA:8
\r
28 a=uZvujYp8AAAA:8 a=_ctWjzdLAAAA:8 a=nOEEH0Fb0bOd6fSySZkA:9
\r
29 a=iIAeZ2hzIst34ig0xTEA:7 a=0BPXsuqt4rsA:10 a=-xelrQF7p3AA:10
\r
30 a=0c-eHkXYtrgA:10 a=Gb7Eya4fYr0A:10 a=MSl-tDqOz04A:10
\r
31 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
\r
32 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])
\r
33 by pd6ml1no-dmz.prod.shaw.ca with ESMTP; 18 Mar 2012 10:33:00 -0600
\r
34 Received: by lagos.xvx.ca (Postfix, from userid 1000)
\r
35 id 856208004838; Sun, 18 Mar 2012 10:33:00 -0600 (MDT)
\r
36 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
37 To: notmuch@notmuchmail.org
\r
38 Subject: [PATCH v8 09/11] test: Add broken tests for new emacs reply
\r
40 Date: Sun, 18 Mar 2012 10:32:41 -0600
\r
41 Message-Id: <1332088363-22476-10-git-send-email-awg+notmuch@xvx.ca>
\r
42 X-Mailer: git-send-email 1.7.5.4
\r
43 In-Reply-To: <1332088363-22476-1-git-send-email-awg+notmuch@xvx.ca>
\r
44 References: <87fwd6kqtv.fsf@zancas.localnet>
\r
45 <1332088363-22476-1-git-send-email-awg+notmuch@xvx.ca>
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Sun, 18 Mar 2012 16:33:16 -0000
\r
60 Add tests for creating nice replies to multipart messages, including
\r
61 those with HTML parts. These tests are expected to fail for now.
\r
63 test/emacs | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\r
64 1 files changed, 97 insertions(+), 0 deletions(-)
\r
66 diff --git a/test/emacs b/test/emacs
\r
67 index 29a489c..01afdb6 100755
\r
70 @@ -273,6 +273,103 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
\r
72 test_expect_equal_file OUTPUT EXPECTED
\r
74 +test_begin_subtest "Reply within emacs to a multipart/mixed message"
\r
75 +test_subtest_known_broken
\r
76 +test_emacs '(notmuch-show "id:20091118002059.067214ed@hikari")
\r
77 + (notmuch-show-reply)
\r
79 +cat <<EOF >EXPECTED
\r
80 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
81 +To: Adrian Perez de Castro <aperez@igalia.com>, notmuch@notmuchmail.org
\r
82 +Subject: Re: [notmuch] Introducing myself
\r
83 +In-Reply-To: <20091118002059.067214ed@hikari>
\r
84 +Fcc: ${MAIL_DIR}/sent
\r
85 +--text follows this line--
\r
86 +Adrian Perez de Castro <aperez@igalia.com> writes:
\r
90 +> I have just heard about Not Much today in some random Linux-related news
\r
91 +> site (LWN?), my name is Adrian Perez and I work as systems administrator
\r
92 +> (although I can do some code as well :P). I have always thought that the
\r
93 +> ideas behind Sup were great, but after some time using it, I got tired of
\r
94 +> the oddities that it has. I also do not like doing things like having to
\r
95 +> install Ruby just for reading and sorting mails. Some time ago I thought
\r
96 +> about doing something like Not Much and in fact I played a bit with the
\r
97 +> Python+Xapian and the Python+Whoosh combinations, because I find relaxing
\r
98 +> to code things in Python when I am not working and also it is installed
\r
99 +> by default on most distribution. I got to have some mailboxes indexed and
\r
100 +> basic searching working a couple of months ago. Lately I have been very
\r
101 +> busy and had no time for coding, and them... boom! Not Much appears -- and
\r
102 +> it is almost exactly what I was trying to do, but faster. I have been
\r
103 +> playing a bit with Not Much today, and I think it has potential.
\r
105 +> Also, I would like to share one idea I had in mind, that you might find
\r
106 +> interesting: One thing I have found very annoying is having to re-tag my
\r
107 +> mail when the indexes get b0rked (it happened a couple of times to me while
\r
108 +> using Sup), so I was planning to mails as read/unread and adding the tags
\r
109 +> not just to the index, but to the mail text itself, e.g. by adding a
\r
110 +> "X-Tags" header field or by reusing the "Keywords" one. This way, the index
\r
111 +> could be totally recreated by re-reading the mail directories, and this
\r
112 +> would also allow to a tools like OfflineIMAP [1] to get the mails into a
\r
113 +> local maildir, tagging and indexing the mails with the e-mail reader and
\r
114 +> then syncing back the messages with the "X-Tags" header to the IMAP server.
\r
115 +> This would allow to use the mail reader from a different computer and still
\r
116 +> have everything tagged finely.
\r
122 +> [1] http://software.complete.org/software/projects/show/offlineimap
\r
125 +> Adrian Perez de Castro <aperez@igalia.com>
\r
126 +> Igalia - Free Software Engineering
\r
127 +> _______________________________________________
\r
128 +> notmuch mailing list
\r
129 +> notmuch@notmuchmail.org
\r
130 +> http://notmuchmail.org/mailman/listinfo/notmuch
\r
132 +test_expect_equal_file OUTPUT EXPECTED
\r
134 +test_begin_subtest "Reply within emacs to a multipart/alternative message"
\r
135 +test_subtest_known_broken
\r
136 +test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com")
\r
137 + (notmuch-show-reply)
\r
139 +cat <<EOF >EXPECTED
\r
140 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
141 +To: Alex Botero-Lowry <alex.boterolowry@gmail.com>, notmuch@notmuchmail.org
\r
142 +Subject: Re: [notmuch] preliminary FreeBSD support
\r
143 +In-Reply-To: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com>
\r
144 +Fcc: ${MAIL_DIR}/sent
\r
145 +--text follows this line--
\r
146 +Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:
\r
148 +> I saw the announcement this morning, and was very excited, as I had been
\r
149 +> hoping sup would be turned into a library,
\r
150 +> since I like the concept more than the UI (I'd rather an emacs interface).
\r
152 +> I did a preliminary compile which worked out fine, but
\r
153 +> sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on
\r
154 +> FreeBSD, so notmuch_config_open segfaulted.
\r
156 +> Attached is a patch that supplies a default buffer size of 64 in cases where
\r
159 +> http://www.opengroup.org/austin/docs/austin_328.txt - seems to indicate this
\r
160 +> is acceptable behavior,
\r
161 +> and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically
\r
164 +> _______________________________________________
\r
165 +> notmuch mailing list
\r
166 +> notmuch@notmuchmail.org
\r
167 +> http://notmuchmail.org/mailman/listinfo/notmuch
\r
169 +test_expect_equal_file OUTPUT EXPECTED
\r
171 test_begin_subtest "Quote MML tags in reply"
\r
172 message_id='test-emacs-mml-quoting@message.id'
\r
173 add_message [id]="$message_id" \
\r