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