# This file is part of GNU Mailutils. -*- Autotest -*- # Copyright (C) 2011-2021 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 . AT_SETUP([append with envelope date]) AT_KEYWORDS([append01]) AT_CHECK([ > mbox IMAP4D_RUN([1 APPEND mbox "25-Aug-2002 18:00:00 +0200" {274+} Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) From: Fred Foobar Subject: afternoon meeting again To: mooch@owatagu.siam.edu Message-Id: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Better yet at 04:00? X LOGOUT ]) echo "==" sed -e '/^X-/d' -e /^Status:/d mbox | awk 'NF==0 {print NR":"; next} {print NR":",$0}' ], [0], [* PREAUTH IMAP4rev1 Test mode 1 OK APPEND Completed * BYE Session terminating. X OK LOGOUT Completed == 1: From foobar@Blurdybloop.COM Sun Aug 25 18:00:00 2002 2: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) 3: From: Fred Foobar 4: Subject: afternoon meeting again 5: To: mooch@owatagu.siam.edu 6: Message-Id: 7: MIME-Version: 1.0 8: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII 9: 10: Better yet at 04:00? 11: ]) AT_CLEANUP