mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-27 21:27:58 +01:00
test: add two new messages to corpus with iso-8859-1 encoding
One is quoted printable, the other users 8 bit encoding. The latter triggers a bug in the python bindings due to missing call to g_mime_init. The corresponding test is marked broken in this commit.
This commit is contained in:
parent
bebf80ea68
commit
7da6733e89
10 changed files with 85 additions and 7 deletions
39
test/corpus/cur/52:2,
Normal file
39
test/corpus/cur/52:2,
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
Message-ID: <4EFC743A.3060609@april.org>
|
||||||
|
Date: Thu, 29 Dec 2010 15:07:54 +0100
|
||||||
|
From: "=?ISO-8859-1?Q?Fran=E7ois_Boulogne?=" <boulogne.f@gmail.com>
|
||||||
|
User-Agent: Mozilla/5.0 (X11; Linux i686;
|
||||||
|
rv:9.0) Gecko/20111224 Thunderbird/9.0.1
|
||||||
|
MIME-Version: 1.0
|
||||||
|
To: Allan McRae <allan@archlinux.org>,
|
||||||
|
"Discussion about the Arch User Repository (AUR)" <aur-general@archlinux.org>
|
||||||
|
References: <4EFC3931.6030007@april.org> <4EFC3D62.4030202@archlinux.org>
|
||||||
|
In-Reply-To: <4EFC3D62.4030202@archlinux.org>
|
||||||
|
Content-Type: text/plain; charset=ISO-8859-1
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
Subject: Re: [aur-general] Guidelines: cp, mkdir vs install
|
||||||
|
|
||||||
|
Le 29/12/2011 11:13, Allan McRae a écrit :
|
||||||
|
> On 29/12/11 19:56, François Boulogne wrote:
|
||||||
|
>> Hi,
|
||||||
|
>>
|
||||||
|
>> Looking to improve the quality of my packages, I read again the guidelines.
|
||||||
|
>> https://wiki.archlinux.org/index.php/Arch_Packaging_Standards
|
||||||
|
>>
|
||||||
|
>> However, it don't see anything about the install command like
|
||||||
|
>> install -d $pkgdir/usr/{bin,share/man/man1,share/locale}
|
||||||
|
>>
|
||||||
|
>> Some contributors on AUR use cp or mkdir to install files/dir (when no
|
||||||
|
>> makefile is provided) and others use install command.
|
||||||
|
>>
|
||||||
|
>> What's the opinion of TU on this point?
|
||||||
|
>>
|
||||||
|
>
|
||||||
|
> Use install with -m specifying the correct permissions
|
||||||
|
>
|
||||||
|
|
||||||
|
Thank you Allan
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
François Boulogne.
|
||||||
|
https://www.sciunto.org
|
20
test/corpus/cur/53:2,
Normal file
20
test/corpus/cur/53:2,
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
From: Olivier Berger <olivier.berger@it-sudparis.eu>
|
||||||
|
To: olivier.berger@it-sudparis.eu
|
||||||
|
Subject: Essai =?iso-8859-1?Q?accentu=E9?=
|
||||||
|
User-Agent: Notmuch/0.10.1 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)
|
||||||
|
X-Draft-From: ("nnimap+localdovecot:INBOX" 44228)
|
||||||
|
Date: Fri, 16 Dec 2010 16:49:59 +0100
|
||||||
|
Message-ID: <877h1wv7mg.fsf@inf-8657.int-evry.fr>
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=iso-8859-1
|
||||||
|
Content-Transfer-Encoding: quoted-printable
|
||||||
|
|
||||||
|
Du texte accentu=E9 pour =E7a ...
|
||||||
|
|
||||||
|
=E0 la bonne heure !
|
||||||
|
--=20
|
||||||
|
Olivier BERGER=20
|
||||||
|
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
|
||||||
|
Ingenieur Recherche - Dept INF
|
||||||
|
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Welcome to notmuch. You have 50 messages.
|
Welcome to notmuch. You have 52 messages.
|
||||||
|
|
||||||
Saved searches: [edit]
|
Saved searches: [edit]
|
||||||
|
|
||||||
50 inbox 50 unread
|
52 inbox 52 unread
|
||||||
|
|
||||||
Search:
|
Search:
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Welcome to notmuch. You have 50 messages.
|
Welcome to notmuch. You have 52 messages.
|
||||||
|
|
||||||
Search:
|
Search:
|
||||||
|
|
||||||
|
|
|
@ -20,4 +20,6 @@
|
||||||
2009-11-18 [1/1] Alexander Botero-Lowry [notmuch] request for pull (inbox unread)
|
2009-11-18 [1/1] Alexander Botero-Lowry [notmuch] request for pull (inbox unread)
|
||||||
2009-11-18 [2/2] Keith Packard, Alexander Botero-Lowry [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)
|
2009-11-18 [2/2] Keith Packard, Alexander Botero-Lowry [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)
|
||||||
2009-11-18 [1/1] Chris Wilson [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)
|
2009-11-18 [1/1] Chris Wilson [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)
|
||||||
|
2010-12-16 [1/1] Olivier Berger Essai accentué (inbox unread)
|
||||||
|
2010-12-29 [1/1] François Boulogne [aur-general] Guidelines: cp, mkdir vs install (inbox unread)
|
||||||
End of search results.
|
End of search results.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Welcome to notmuch. You have 50 messages.
|
Welcome to notmuch. You have 52 messages.
|
||||||
|
|
||||||
Saved searches: [edit]
|
Saved searches: [edit]
|
||||||
|
|
||||||
50 inbox 50 unread 0 empty
|
52 inbox 52 unread 0 empty
|
||||||
|
|
||||||
Search:
|
Search:
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
2010-12-29 [1/1] François Boulogne [aur-general] Guidelines: cp, mkdir vs install (inbox unread)
|
||||||
|
2010-12-16 [1/1] Olivier Berger Essai accentué (inbox unread)
|
||||||
2009-11-18 [1/1] Chris Wilson [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)
|
2009-11-18 [1/1] Chris Wilson [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)
|
||||||
2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)
|
2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)
|
||||||
2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth [notmuch] [PATCH] Typsos (inbox unread)
|
2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth [notmuch] [PATCH] Typsos (inbox unread)
|
||||||
|
|
|
@ -5,6 +5,7 @@ test_description="python bindings"
|
||||||
add_email_corpus
|
add_email_corpus
|
||||||
|
|
||||||
test_begin_subtest "compare thread ids"
|
test_begin_subtest "compare thread ids"
|
||||||
|
test_subtest_known_broken
|
||||||
test_python <<EOF
|
test_python <<EOF
|
||||||
import notmuch
|
import notmuch
|
||||||
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
|
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
|
||||||
|
|
|
@ -81,6 +81,8 @@ test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; s
|
||||||
test_begin_subtest 'Search for all messages ("*")'
|
test_begin_subtest 'Search for all messages ("*")'
|
||||||
notmuch search '*' | notmuch_search_sanitize > OUTPUT
|
notmuch search '*' | notmuch_search_sanitize > OUTPUT
|
||||||
cat <<EOF >EXPECTED
|
cat <<EOF >EXPECTED
|
||||||
|
thread:XXX 2010-12-29 [1/1] François Boulogne; [aur-general] Guidelines: cp, mkdir vs install (inbox unread)
|
||||||
|
thread:XXX 2010-12-16 [1/1] Olivier Berger; Essai accentué (inbox unread)
|
||||||
thread:XXX 2009-11-18 [1/1] Chris Wilson; [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)
|
thread:XXX 2009-11-18 [1/1] Chris Wilson; [notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)
|
||||||
thread:XXX 2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)
|
thread:XXX 2009-11-18 [2/2] Alex Botero-Lowry, Carl Worth; [notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)
|
||||||
thread:XXX 2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth; [notmuch] [PATCH] Typsos (inbox unread)
|
thread:XXX 2009-11-18 [2/2] Ingmar Vanhassel, Carl Worth; [notmuch] [PATCH] Typsos (inbox unread)
|
||||||
|
|
|
@ -29,6 +29,8 @@ thread:THREADID
|
||||||
thread:THREADID
|
thread:THREADID
|
||||||
thread:THREADID
|
thread:THREADID
|
||||||
thread:THREADID
|
thread:THREADID
|
||||||
|
thread:THREADID
|
||||||
|
thread:THREADID
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file OUTPUT EXPECTED
|
test_expect_equal_file OUTPUT EXPECTED
|
||||||
|
|
||||||
|
@ -56,6 +58,8 @@ cat <<EOF >EXPECTED
|
||||||
"THREADID",
|
"THREADID",
|
||||||
"THREADID",
|
"THREADID",
|
||||||
"THREADID",
|
"THREADID",
|
||||||
|
"THREADID",
|
||||||
|
"THREADID",
|
||||||
"THREADID"]
|
"THREADID"]
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file OUTPUT EXPECTED
|
test_expect_equal_file OUTPUT EXPECTED
|
||||||
|
@ -63,6 +67,8 @@ test_expect_equal_file OUTPUT EXPECTED
|
||||||
test_begin_subtest "--output=messages"
|
test_begin_subtest "--output=messages"
|
||||||
notmuch search --output=messages '*' >OUTPUT
|
notmuch search --output=messages '*' >OUTPUT
|
||||||
cat <<EOF >EXPECTED
|
cat <<EOF >EXPECTED
|
||||||
|
id:4EFC743A.3060609@april.org
|
||||||
|
id:877h1wv7mg.fsf@inf-8657.int-evry.fr
|
||||||
id:1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk
|
id:1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk
|
||||||
id:877htoqdbo.fsf@yoom.home.cworth.org
|
id:877htoqdbo.fsf@yoom.home.cworth.org
|
||||||
id:878we4qdqf.fsf@yoom.home.cworth.org
|
id:878we4qdqf.fsf@yoom.home.cworth.org
|
||||||
|
@ -119,7 +125,9 @@ test_expect_equal_file OUTPUT EXPECTED
|
||||||
test_begin_subtest "--output=messages --format=json"
|
test_begin_subtest "--output=messages --format=json"
|
||||||
notmuch search --format=json --output=messages '*' >OUTPUT
|
notmuch search --format=json --output=messages '*' >OUTPUT
|
||||||
cat <<EOF >EXPECTED
|
cat <<EOF >EXPECTED
|
||||||
["1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk",
|
["4EFC743A.3060609@april.org",
|
||||||
|
"877h1wv7mg.fsf@inf-8657.int-evry.fr",
|
||||||
|
"1258544095-16616-1-git-send-email-chris@chris-wilson.co.uk",
|
||||||
"877htoqdbo.fsf@yoom.home.cworth.org",
|
"877htoqdbo.fsf@yoom.home.cworth.org",
|
||||||
"878we4qdqf.fsf@yoom.home.cworth.org",
|
"878we4qdqf.fsf@yoom.home.cworth.org",
|
||||||
"87aaykqe24.fsf@yoom.home.cworth.org",
|
"87aaykqe24.fsf@yoom.home.cworth.org",
|
||||||
|
@ -175,6 +183,8 @@ test_expect_equal_file OUTPUT EXPECTED
|
||||||
test_begin_subtest "--output=files"
|
test_begin_subtest "--output=files"
|
||||||
notmuch search --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT
|
notmuch search --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT
|
||||||
cat <<EOF >EXPECTED
|
cat <<EOF >EXPECTED
|
||||||
|
MAIL_DIR/cur/52:2,
|
||||||
|
MAIL_DIR/cur/53:2,
|
||||||
MAIL_DIR/cur/50:2,
|
MAIL_DIR/cur/50:2,
|
||||||
MAIL_DIR/cur/49:2,
|
MAIL_DIR/cur/49:2,
|
||||||
MAIL_DIR/cur/48:2,
|
MAIL_DIR/cur/48:2,
|
||||||
|
@ -232,7 +242,9 @@ test_expect_equal_file OUTPUT EXPECTED
|
||||||
test_begin_subtest "--output=files --format=json"
|
test_begin_subtest "--output=files --format=json"
|
||||||
notmuch search --format=json --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT
|
notmuch search --format=json --output=files '*' | sed -e "s,$MAIL_DIR,MAIL_DIR," >OUTPUT
|
||||||
cat <<EOF >EXPECTED
|
cat <<EOF >EXPECTED
|
||||||
["MAIL_DIR/cur/50:2,",
|
["MAIL_DIR/cur/52:2,",
|
||||||
|
"MAIL_DIR/cur/53:2,",
|
||||||
|
"MAIL_DIR/cur/50:2,",
|
||||||
"MAIL_DIR/cur/49:2,",
|
"MAIL_DIR/cur/49:2,",
|
||||||
"MAIL_DIR/cur/48:2,",
|
"MAIL_DIR/cur/48:2,",
|
||||||
"MAIL_DIR/cur/47:2,",
|
"MAIL_DIR/cur/47:2,",
|
||||||
|
|
Loading…
Reference in a new issue