copy00.at 1.67 KB
# This file is part of GNU Mailutils. -*- Autotest -*-
# Copyright (C) 2015 Free Software Foundation, Inc.
#
# GNU Mailutils is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3, or (at
# your option) any later version.
#
# GNU Mailutils is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.

AT_SETUP([copy to stdout])
AT_KEYWORDS([copy copy00])

# Description: Check if COLUMNS setting is honored
# Reported-By: Dan Jacobson <jidanni@jidanni.org>
# References: <87vbgemcc7.fsf@jidanni.org>,
#    http://lists.gnu.org/archive/html/bug-mailutils/2015-04/msg00002.html

AT_CHECK([
test -f /dev/stdout || AT_SKIP_TEST
MUT_MBCOPY($abs_top_srcdir/testsuite/spool/mbox)
unset MAILRC
echo 'copy 1 /dev/stdout' | MUT_MAIL_CMD -N -E 'set readonly' -f ./mbox | sed 's/  *$//;/^Held 1 message/d';
],
[0],
[From gray@example.net Tue Jul 16 12:11:35 2002
Organization: Mailutils-tests
Received: from example.net (localhost [[127.0.0.1]]) 
	by example.net with ESMTP id g6G9BZb00791
	for <gray@example.net>; Tue, 16 Jul 2002 12:11:35 +0300
Message-Id: <200207160911.g6G9BZb00791@example.net>
To: Bar <bar@dontmailme.org>
Subject: MBOX
Date: Tue, 16 Jul 2002 12:11:35 +0300
From: Sergey Poznyakoff <gray@example.net>


This is a sample user's mbox.

"/dev/stdout"  14/438

])

AT_CLEANUP