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 EDE39431FC0
\r
6 for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 22:46:48 -0800 (PST)
\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 APXpIFgy7mdu for <notmuch@notmuchmail.org>;
\r
16 Tue, 21 Feb 2012 22:46:46 -0800 (PST)
\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 E5CEF431FC2
\r
19 for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 22:46:45 -0800 (PST)
\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd5ml1no-ssvc.prod.shaw.ca)
\r
22 by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 21 Feb 2012 23:46:45 -0700
\r
23 X-Cloudmark-SP-Filtered: true
\r
24 X-Cloudmark-SP-Result: v=1.1 cv=bD0CuDYpMgGTku+nVSbZuKP/9fNjspX1F8zuwcoBWhM=
\r
26 a=Io8jr-P4wQsA: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 pd5ml1no-dmz.prod.shaw.ca with ESMTP; 21 Feb 2012 23:46:45 -0700
\r
34 Received: by lagos.xvx.ca (Postfix, from userid 1000)
\r
35 id 14EBC8095C5A; Tue, 21 Feb 2012 23:46:45 -0700 (MST)
\r
36 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
37 To: notmuch@notmuchmail.org
\r
38 Subject: [PATCH v6 09/10] test: Add broken tests for new emacs reply
\r
40 Date: Tue, 21 Feb 2012 23:46:38 -0700
\r
41 Message-Id: <1329893199-21630-10-git-send-email-awg+notmuch@xvx.ca>
\r
42 X-Mailer: git-send-email 1.7.5.4
\r
43 In-Reply-To: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca>
\r
44 References: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca>
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Wed, 22 Feb 2012 06:46:49 -0000
\r
59 Add tests for creating nice replies to multipart messages, including
\r
60 those with HTML parts. These tests are expected to fail for now.
\r
62 test/emacs | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\r
63 1 files changed, 97 insertions(+), 0 deletions(-)
\r
65 diff --git a/test/emacs b/test/emacs
\r
66 index d4a8d30..c3a75e9 100755
\r
69 @@ -273,6 +273,103 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
\r
71 test_expect_equal_file OUTPUT EXPECTED
\r
73 +test_begin_subtest "Reply within emacs to a multipart/mixed message"
\r
74 +test_subtest_known_broken
\r
75 +test_emacs '(notmuch-show "id:20091118002059.067214ed@hikari")
\r
76 + (notmuch-show-reply)
\r
78 +cat <<EOF >EXPECTED
\r
79 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
80 +To: Adrian Perez de Castro <aperez@igalia.com>, notmuch@notmuchmail.org
\r
81 +Subject: Re: [notmuch] Introducing myself
\r
82 +In-Reply-To: <20091118002059.067214ed@hikari>
\r
83 +Fcc: ${MAIL_DIR}/sent
\r
84 +--text follows this line--
\r
85 +Adrian Perez de Castro <aperez@igalia.com> writes:
\r
89 +> I have just heard about Not Much today in some random Linux-related news
\r
90 +> site (LWN?), my name is Adrian Perez and I work as systems administrator
\r
91 +> (although I can do some code as well :P). I have always thought that the
\r
92 +> ideas behind Sup were great, but after some time using it, I got tired of
\r
93 +> the oddities that it has. I also do not like doing things like having to
\r
94 +> install Ruby just for reading and sorting mails. Some time ago I thought
\r
95 +> about doing something like Not Much and in fact I played a bit with the
\r
96 +> Python+Xapian and the Python+Whoosh combinations, because I find relaxing
\r
97 +> to code things in Python when I am not working and also it is installed
\r
98 +> by default on most distribution. I got to have some mailboxes indexed and
\r
99 +> basic searching working a couple of months ago. Lately I have been very
\r
100 +> busy and had no time for coding, and them... boom! Not Much appears -- and
\r
101 +> it is almost exactly what I was trying to do, but faster. I have been
\r
102 +> playing a bit with Not Much today, and I think it has potential.
\r
104 +> Also, I would like to share one idea I had in mind, that you might find
\r
105 +> interesting: One thing I have found very annoying is having to re-tag my
\r
106 +> mail when the indexes get b0rked (it happened a couple of times to me while
\r
107 +> using Sup), so I was planning to mails as read/unread and adding the tags
\r
108 +> not just to the index, but to the mail text itself, e.g. by adding a
\r
109 +> "X-Tags" header field or by reusing the "Keywords" one. This way, the index
\r
110 +> could be totally recreated by re-reading the mail directories, and this
\r
111 +> would also allow to a tools like OfflineIMAP [1] to get the mails into a
\r
112 +> local maildir, tagging and indexing the mails with the e-mail reader and
\r
113 +> then syncing back the messages with the "X-Tags" header to the IMAP server.
\r
114 +> This would allow to use the mail reader from a different computer and still
\r
115 +> have everything tagged finely.
\r
121 +> [1] http://software.complete.org/software/projects/show/offlineimap
\r
124 +> Adrian Perez de Castro <aperez@igalia.com>
\r
125 +> Igalia - Free Software Engineering
\r
126 +> _______________________________________________
\r
127 +> notmuch mailing list
\r
128 +> notmuch@notmuchmail.org
\r
129 +> http://notmuchmail.org/mailman/listinfo/notmuch
\r
131 +test_expect_equal_file OUTPUT EXPECTED
\r
133 +test_begin_subtest "Reply within emacs to a multipart/alternative message"
\r
134 +test_subtest_known_broken
\r
135 +test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com")
\r
136 + (notmuch-show-reply)
\r
138 +cat <<EOF >EXPECTED
\r
139 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
140 +To: Alex Botero-Lowry <alex.boterolowry@gmail.com>, notmuch@notmuchmail.org
\r
141 +Subject: Re: [notmuch] preliminary FreeBSD support
\r
142 +In-Reply-To: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com>
\r
143 +Fcc: ${MAIL_DIR}/sent
\r
144 +--text follows this line--
\r
145 +Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:
\r
147 +> I saw the announcement this morning, and was very excited, as I had been
\r
148 +> hoping sup would be turned into a library,
\r
149 +> since I like the concept more than the UI (I'd rather an emacs interface).
\r
151 +> I did a preliminary compile which worked out fine, but
\r
152 +> sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on
\r
153 +> FreeBSD, so notmuch_config_open segfaulted.
\r
155 +> Attached is a patch that supplies a default buffer size of 64 in cases where
\r
158 +> http://www.opengroup.org/austin/docs/austin_328.txt - seems to indicate this
\r
159 +> is acceptable behavior,
\r
160 +> and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically
\r
163 +> _______________________________________________
\r
164 +> notmuch mailing list
\r
165 +> notmuch@notmuchmail.org
\r
166 +> http://notmuchmail.org/mailman/listinfo/notmuch
\r
168 +test_expect_equal_file OUTPUT EXPECTED
\r
170 test_begin_subtest "Quote MML tags in reply"
\r
171 message_id='test-emacs-mml-quoting@message.id'
\r
172 add_message [id]="$message_id" \
\r