mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
test: Set all times to UTC
In order to have repeatable test suite, all times in messages are set to UTC time zone to match the time zone (TZ variable) set in test-lib.sh. Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
This commit is contained in:
parent
5398e6966a
commit
7a72999fad
5 changed files with 52 additions and 52 deletions
|
@ -3,17 +3,17 @@ test_description="naming of threads with changing subject"
|
|||
. ./test-lib.sh
|
||||
test_expect_success 'Generate some messages' '
|
||||
add_message "[subject]=\"thread-naming: Initial thread subject\"" \
|
||||
"[date]=\"Fri, 05 Jan 2001 15:43:56 -0800\"" &&
|
||||
"[date]=\"Fri, 05 Jan 2001 15:43:56 -0000\"" &&
|
||||
first=${gen_msg_cnt} &&
|
||||
parent=${gen_msg_id} &&
|
||||
add_message "[subject]=\"thread-naming: Older changed subject\"" \
|
||||
"[date]=\"Sat, 06 Jan 2001 15:43:56 -0800\"" \
|
||||
"[date]=\"Sat, 06 Jan 2001 15:43:56 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
add_message "[subject]=\"thread-naming: Newer changed subject\"" \
|
||||
"[date]=\"Sun, 07 Jan 2001 15:43:56 -0800\"" \
|
||||
"[date]=\"Sun, 07 Jan 2001 15:43:56 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
add_message "[subject]=\"thread-naming: Final thread subject\"" \
|
||||
"[date]=\"Mon, 08 Jan 2001 15:43:56 -0800\"" \
|
||||
"[date]=\"Mon, 08 Jan 2001 15:43:56 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
final=${gen_msg_id}
|
||||
|
||||
|
@ -43,7 +43,7 @@ pass_if_equal "$output" "thread:XXX 2001-01-07 [2/4] Notmuch Test Suite; threa
|
|||
'
|
||||
test_expect_success "Ignore added reply prefix (Re:)" '
|
||||
add_message "[subject]=\"Re: thread-naming: Initial thread subject\"" \
|
||||
"[date]=\"Tue, 09 Jan 2001 15:43:45 -0800\"" \
|
||||
"[date]=\"Tue, 09 Jan 2001 15:43:45 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
|
||||
pass_if_equal "$output" "thread:XXX 2001-01-09 [3/5] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
|
||||
|
@ -51,7 +51,7 @@ pass_if_equal "$output" "thread:XXX 2001-01-09 [3/5] Notmuch Test Suite; threa
|
|||
'
|
||||
test_expect_success "Ignore added reply prefix (Aw:)" '
|
||||
add_message "[subject]=\"Aw: thread-naming: Initial thread subject\"" \
|
||||
"[date]=\"Wed, 10 Jan 2001 15:43:45 -0800\"" \
|
||||
"[date]=\"Wed, 10 Jan 2001 15:43:45 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
|
||||
pass_if_equal "$output" "thread:XXX 2001-01-10 [4/6] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
|
||||
|
@ -59,7 +59,7 @@ pass_if_equal "$output" "thread:XXX 2001-01-10 [4/6] Notmuch Test Suite; threa
|
|||
'
|
||||
test_expect_success "Ignore added reply prefix (Vs:)" '
|
||||
add_message "[subject]=\"Vs: thread-naming: Initial thread subject\"" \
|
||||
"[date]=\"Thu, 11 Jan 2001 15:43:45 -0800\"" \
|
||||
"[date]=\"Thu, 11 Jan 2001 15:43:45 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
|
||||
pass_if_equal "$output" "thread:XXX 2001-01-11 [5/7] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
|
||||
|
@ -67,7 +67,7 @@ pass_if_equal "$output" "thread:XXX 2001-01-11 [5/7] Notmuch Test Suite; threa
|
|||
'
|
||||
test_expect_success "Ignore added reply prefix (Sv:)" '
|
||||
add_message "[subject]=\"Sv: thread-naming: Initial thread subject\"" \
|
||||
"[date]=\"Fri, 12 Jan 2001 15:43:45 -0800\"" \
|
||||
"[date]=\"Fri, 12 Jan 2001 15:43:45 -0000\"" \
|
||||
"[in-reply-to]=\<$parent\>" &&
|
||||
output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
|
||||
pass_if_equal "$output" "thread:XXX 2001-01-12 [6/8] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
|
||||
|
@ -81,7 +81,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (unread)
|
|||
Subject: thread-naming: Initial thread subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Fri, 05 Jan 2001 15:43:56 -0800
|
||||
Date: Fri, 05 Jan 2001 15:43:56 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -95,7 +95,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-06) (inbox unread)
|
|||
Subject: thread-naming: Older changed subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Sat, 06 Jan 2001 15:43:56 -0800
|
||||
Date: Sat, 06 Jan 2001 15:43:56 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -109,7 +109,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-07) (inbox unread)
|
|||
Subject: thread-naming: Newer changed subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Sun, 07 Jan 2001 15:43:56 -0800
|
||||
Date: Sun, 07 Jan 2001 15:43:56 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -123,7 +123,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-08) (unread)
|
|||
Subject: thread-naming: Final thread subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Mon, 08 Jan 2001 15:43:56 -0800
|
||||
Date: Mon, 08 Jan 2001 15:43:56 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -137,7 +137,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-09) (inbox unread)
|
|||
Subject: Re: thread-naming: Initial thread subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Tue, 09 Jan 2001 15:43:45 -0800
|
||||
Date: Tue, 09 Jan 2001 15:43:45 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -151,7 +151,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-10) (inbox unread)
|
|||
Subject: Aw: thread-naming: Initial thread subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Wed, 10 Jan 2001 15:43:45 -0800
|
||||
Date: Wed, 10 Jan 2001 15:43:45 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -165,7 +165,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-11) (inbox unread)
|
|||
Subject: Vs: thread-naming: Initial thread subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Thu, 11 Jan 2001 15:43:45 -0800
|
||||
Date: Thu, 11 Jan 2001 15:43:45 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
@ -179,7 +179,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-12) (inbox unread)
|
|||
Subject: Sv: thread-naming: Initial thread subject
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Fri, 12 Jan 2001 15:43:45 -0800
|
||||
Date: Fri, 12 Jan 2001 15:43:45 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
|
|
@ -6,7 +6,7 @@ test_expect_success "Basic reply" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
[to]=test_suite@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"basic reply test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -17,7 +17,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> basic reply test"
|
||||
|
||||
'
|
||||
|
@ -25,7 +25,7 @@ test_expect_success "Multiple recipients" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
"[to]=\"test_suite@notmuchmail.org, Someone Else <someone@example.com>\"" \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"Multiple recipients\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -36,7 +36,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> Multiple recipients"
|
||||
|
||||
'
|
||||
|
@ -45,7 +45,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
[to]=test_suite@notmuchmail.org \
|
||||
"[cc]=\"Other Parties <cc@example.com>\"" \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"reply with CC\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -57,7 +57,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> reply with CC"
|
||||
|
||||
'
|
||||
|
@ -65,7 +65,7 @@ test_expect_success "Reply from alternate address" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
[to]=test_suite_other@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"reply from alternate address\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -76,7 +76,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> reply from alternate address"
|
||||
|
||||
'
|
||||
|
@ -84,7 +84,7 @@ test_expect_success "Support for Reply-To" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
[to]=test_suite@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"support for reply-to\"" \
|
||||
"[reply-to]=\"Sender <elsewhere@example.com>\"" &&
|
||||
|
||||
|
@ -96,7 +96,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> support for reply-to"
|
||||
|
||||
'
|
||||
|
@ -104,7 +104,7 @@ test_expect_success "Un-munging Reply-To" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
"[to]=\"Some List <list@example.com>\"" \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"Un-munging Reply-To\"" \
|
||||
"[reply-to]=\"Evil Munging List <list@example.com>\"" &&
|
||||
|
||||
|
@ -116,13 +116,13 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> Un-munging Reply-To"
|
||||
'
|
||||
|
||||
test_expect_success "Message with header of exactly 200 bytes" '
|
||||
add_message "[subject]=\"This subject is exactly 200 bytes in length. Other than its length there is not much of note here. Note that the length of 200 bytes includes the Subject: and Re: prefixes with two spaces\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"200-byte header\"" &&
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
pass_if_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
|
@ -131,7 +131,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
|
||||
> 200-byte header"
|
||||
'
|
||||
test_done
|
||||
|
|
|
@ -6,7 +6,7 @@ test_expect_success "Magic from guessing (nothing to go on)" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
[to]=mailinglist@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -17,7 +17,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -26,7 +26,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
[to]=mailinglist@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[header]=\"Envelope-To: test_suite_other@notmuchmail.org\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -37,7 +37,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -46,7 +46,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
[to]=mailinglist@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[header]=\"X-Original-To: test_suite_other@notmuchmail.org\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -57,7 +57,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -68,7 +68,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
"[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
|
||||
by mail.notmuchmail.org (some MTA) with ESMTP id 12345678\
|
||||
for <test_suite_other@notmuchmail.org>; Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -79,7 +79,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -90,7 +90,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
"[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
|
||||
by mail.otherdomain.org (some MTA) with ESMTP id 12345678\
|
||||
Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -101,7 +101,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
|
||||
|
@ -114,7 +114,7 @@ test_expect_success "Magic from guessing (nothing to go on)" '
|
|||
add_message "[from]=\"Sender <sender@example.com>\"" \
|
||||
[to]=mailinglist@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -125,7 +125,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -134,7 +134,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
[to]=mailinglist@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[header]=\"Envelope-To: test_suite_other@notmuchmail.org\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -145,7 +145,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -154,7 +154,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
[to]=mailinglist@notmuchmail.org \
|
||||
[subject]=notmuch-reply-test \
|
||||
"[header]=\"X-Original-To: test_suite_other@notmuchmail.org\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -165,7 +165,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -176,7 +176,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
"[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
|
||||
by mail.notmuchmail.org (some MTA) with ESMTP id 12345678\
|
||||
for <test_suite_other@notmuchmail.org>; Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -187,7 +187,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
|
||||
'
|
||||
|
@ -198,7 +198,7 @@ add_message "[from]=\"Sender <sender@example.com>\"" \
|
|||
"[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
|
||||
by mail.otherdomain.org (some MTA) with ESMTP id 12345678\
|
||||
Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
|
||||
"[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
|
||||
"[body]=\"from guessing test\"" &&
|
||||
|
||||
output=$($NOTMUCH reply id:${gen_msg_id}) &&
|
||||
|
@ -209,7 +209,7 @@ Bcc: test_suite@notmuchmail.org
|
|||
In-Reply-To: <${gen_msg_id}>
|
||||
References: <${gen_msg_id}>
|
||||
|
||||
On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote:
|
||||
On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
|
||||
> from guessing test"
|
||||
'
|
||||
test_done
|
||||
|
|
|
@ -12,7 +12,7 @@ Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox unread)
|
|||
Subject: Test message #1
|
||||
From: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
To: Notmuch Test Suite <test_suite@notmuchmail.org>
|
||||
Date: Tue, 05 Jan 2001 15:43:57 -0800
|
||||
Date: Tue, 05 Jan 2001 15:43:57 -0000
|
||||
header}
|
||||
body{
|
||||
part{ ID: 1, Content-type: text/plain
|
||||
|
|
|
@ -311,7 +311,7 @@ generate_message ()
|
|||
fi
|
||||
|
||||
if [ -z "${template[date]}" ]; then
|
||||
template[date]="Tue, 05 Jan 2001 15:43:57 -0800"
|
||||
template[date]="Tue, 05 Jan 2001 15:43:57 -0000"
|
||||
fi
|
||||
|
||||
additional_headers=""
|
||||
|
|
Loading…
Reference in a new issue