1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# This file is part of GNU Mailutils. -*- Autotest -*-
# Copyright (C) 2011-2012 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([append with flags])
AT_KEYWORDS([append00])
AT_DATA([input],
[1 APPEND mbox (\Seen) {300+}
Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
From: Fred Foobar <foobar@Blurdybloop.COM>
Subject: afternoon meeting
To: mooch@owatagu.siam.edu
Message-Id: <B27397-0100000@Blurdybloop.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Hello Joe, do you think we can meet at 3:30 tomorrow
X LOGOUT
])
AT_CHECK([
> mbox
imap4d IMAP4D_OPTIONS < input | tr -d '\r'
echo "=="
awk 'NR==1 {print "1:",$1,$2; next} NF==0 {print NR":"; next} {print NR":",$0}' mbox
],
[0],
[* PREAUTH IMAP4rev1 Test mode
1 OK APPEND Completed
* BYE Session terminating.
X OK LOGOUT Completed
==
1: From foobar@Blurdybloop.COM
2: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
3: From: Fred Foobar <foobar@Blurdybloop.COM>
4: Subject: afternoon meeting
5: To: mooch@owatagu.siam.edu
6: Message-Id: <B27397-0100000@Blurdybloop.COM>
7: MIME-Version: 1.0
8: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
9:
10: Hello Joe, do you think we can meet at 3:30 tomorrow
11:
])
AT_CLEANUP
|