To: notmuch@notmuchmail.org
Date: Tue, 17 Nov 2009 14:00:54 -0500
+[ multipart/mixed ]
+[ multipart/signed ]
+[ text/plain ]
I saw the LWN article and decided to take a look at notmuch. I'm
currently using mutt and mairix to index and read a collection of
Maildir mail folders (around 40,000 messages total).
To: notmuch@notmuchmail.org
Date: Wed, 18 Nov 2009 01:02:38 +0600
+ [ multipart/mixed ]
+ [ multipart/signed ]
+ [ text/plain ]
Twas brillig at 14:00:54 17.11.2009 UTC-05 when lars@seas.harvard.edu did gyre and gimble:
Cc: notmuch@notmuchmail.org
Date: Tue, 17 Nov 2009 15:33:01 -0500
+ [ multipart/mixed ]
+ [ multipart/signed ]
+ [ text/plain ]
> See the patch just posted here.
Is the list archived anywhere? The obvious archives
Cc: notmuch@notmuchmail.org
Date: Tue, 17 Nov 2009 19:50:40 -0500
+ [ multipart/mixed ]
+ [ multipart/signed ]
+ [ text/plain ]
> I've also pushed a slightly more complicated (and complete) fix to my
> private notmuch repository
Date: Tue, 05 Jan 2001 15:43:57 -0000
\fheader}
\fbody{
-\fpart{ ID: 1, Content-type: text/plain
+\fpart{ ID: 1, Content-type: multipart/signed
+\fpart}
+\fpart{ ID: 2, Content-type: multipart/mixed
+\fpart}
+\fpart{ ID: 3, Content-type: text/plain
This is an inline text part.
\fpart}
-\fattachment{ ID: 2, Content-type: text/plain
+\fattachment{ ID: 4, Content-type: text/plain
Attachment: attachment (text/plain)
This is a text attachment.
\fattachment}
-\fpart{ ID: 3, Content-type: text/plain
+\fpart{ ID: 5, Content-type: text/plain
And this message is signed.
-Carl
\fpart}
-\fpart{ ID: 4, Content-type: application/pgp-signature
+\fpart{ ID: 6, Content-type: application/pgp-signature
Non-text part: application/pgp-signature
\fpart}
\fbody}
test_begin_subtest "Show multipart MIME message (--format=json)"
output=$(notmuch show --format=json 'id:87liy5ap00.fsf@yoom.home.cworth.org')
-test_expect_equal "$output" '[[[{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "filename": "/home/cworth/src/notmuch/test/tmp.multipart/mail/multipart", "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","unread"], "headers": {"Subject": "Multipart message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Cc": "", "Bcc": "", "Date": "Tue, 05 Jan 2001 15:43:57 -0000"}, "body": [{"id": 1, "content-type": "text/plain", "content": "This is an inline text part.\n"}, {"id": 2, "content-type": "text/plain", "filename": "attachment", "content": "This is a text attachment.\n"}, {"id": 3, "content-type": "text/plain", "content": "And this message is signed.\n\n-Carl\n"}, {"id": 4, "content-type": "application/pgp-signature"}]}, []]]]'
+test_expect_equal "$output" '[[[{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "filename": "/home/cworth/src/notmuch/test/tmp.multipart/mail/multipart", "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","unread"], "headers": {"Subject": "Multipart message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Cc": "", "Bcc": "", "Date": "Tue, 05 Jan 2001 15:43:57 -0000"}, "body": [{"id": 1, "content-type": "multipart/signed"}, {"id": 2, "content-type": "multipart/mixed"}, {"id": 3, "content-type": "text/plain", "content": "This is an inline text part.\n"}, {"id": 4, "content-type": "text/plain", "filename": "attachment", "content": "This is a text attachment.\n"}, {"id": 5, "content-type": "text/plain", "content": "And this message is signed.\n\n-Carl\n"}, {"id": 6, "content-type": "application/pgp-signature"}]}, []]]]'
test_done