Skip to content

Commit

Permalink
mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A…
Browse files Browse the repository at this point in the history
… U Thor)'

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
  • Loading branch information
Kirill Smelkov authored and Junio C Hamano committed Jan 28, 2009
1 parent ddfb369 commit 806d5e9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5100-mailinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_expect_success 'split sample box' \
'git mailsplit -o. ../t5100/sample.mbox >last &&
last=`cat last` &&
echo total is $last &&
test `cat last` = 12'
test `cat last` = 13'

for mail in `echo 00*`
do
Expand Down
5 changes: 5 additions & 0 deletions t/t5100/info0013
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Author: A U Thor
Email: a.u.thor@example.com
Subject: a patch
Date: Fri, 9 Jun 2006 00:44:16 -0700

Empty file added t/t5100/msg0013
Empty file.
Empty file added t/t5100/patch0013
Empty file.
5 changes: 5 additions & 0 deletions t/t5100/sample.mbox
Original file line number Diff line number Diff line change
Expand Up @@ -556,3 +556,8 @@ index 3fd3afb..0ee807e 100644
#. на своей машине: отредактировать /etc/sudoers (команда ``visudo``) примерно следующим образом::
--
1.5.6.5
From nobody Mon Sep 17 00:00:00 2001
From: <a.u.thor@example.com> (A U Thor)
Date: Fri, 9 Jun 2006 00:44:16 -0700
Subject: [PATCH] a patch

0 comments on commit 806d5e9

Please sign in to comment.