From 1d6b49561f50d6cde1b473f9887e37748e49c02c Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 25 May 2011 18:01:20 -0700 Subject: tag signed/encrypted during notmuch new This patch adds the tag "signed" to messages with any multipart/signed parts, and the tag "encrypted" to messages with any multipart/encrypted parts. This only occurs when messages are indexed during notmuch new, so a database rebuild is required to have old messages tagged. --- test/crypto | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/crypto') diff --git a/test/crypto b/test/crypto index ead05829..21a60139 100755 --- a/test/crypto +++ b/test/crypto @@ -46,7 +46,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["inbox","signed"], "headers": {"Subject": "test signed message 001", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", @@ -76,7 +76,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["inbox","signed"], "headers": {"Subject": "test signed message 001", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", @@ -106,7 +106,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["inbox","signed"], "headers": {"Subject": "test signed message 001", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", @@ -141,7 +141,7 @@ output=$(notmuch show --format=text --decrypt subject:"test encrypted message 00 | sed -e 's|"created": [1234567890]*|"created": 946728000|') expected=' message{ id:XXXXX depth:0 match:1 filename:XXXXX header{ -Notmuch Test Suite (2000-01-01) (inbox) +Notmuch Test Suite (2000-01-01) (encrypted inbox) Subject: test encrypted message 001 From: Notmuch Test Suite To: test_suite@notmuchmail.org @@ -172,7 +172,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["encrypted","inbox"], "headers": {"Subject": "test encrypted message 001", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", @@ -223,7 +223,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["encrypted","inbox"], "headers": {"Subject": "test encrypted message 001", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", @@ -258,7 +258,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["encrypted","inbox"], "headers": {"Subject": "test encrypted message 002", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", @@ -309,7 +309,7 @@ expected='[[[{"id": "XXXXX", "filename": "YYYYY", "timestamp": 946728000, "date_relative": "2000-01-01", - "tags": ["inbox"], + "tags": ["inbox","signed"], "headers": {"Subject": "test signed message 001", "From": "Notmuch Test Suite ", "To": "test_suite@notmuchmail.org", -- cgit v1.2.3