1# This file is part of GNU Anubis testsuite.
2# Copyright (C) 2003-2014 The Anubis Team.
3#
4# GNU Anubis is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# GNU Anubis is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with GNU Anubis; if not, write to the Free Software Foundation,
16# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
18:TEST Modifying the message header
19:MODE SPAWN
20:OPTIONS --stdio
21:RCFILE mod-header.rc
22:RETCODE 0
23:PATTERN
24:EXPECT 220
25HELO localhost
26:EXPECT 250
27MAIL FROM:<polak@gnu.org>
28:EXPECT 250
29RCPT TO:<gray@gnu.org>
30:EXPECT 250
31DATA
32:EXPECT 354
33From: <polak@gnu.org>
34To: <gray@gnu.org>
35:DEL Subject: Hybrid Theory
36:ADD Subject: Meteora
37:DEL X-Mailer: Fake MTA
38:ADD X-Old-Mailer: Fake MTA
39:DEL X-LP-InTheEnd: rocks
40:ADD X-LP-Faint: rules!
41
42I can't feel the way I did before
43Don't turn your back on me
44I won't be ignored
45Time won't heal this damage anymore
46Don't turn your back on me
47I won't be ignored
48.
49:EXPECT 250
50MAIL FROM:<polak@gnu.org>
51:EXPECT 250
52RCPT TO:<gray@gnu.org>
53:EXPECT 250
54DATA
55:EXPECT 354
56From: <polak@gnu.org>
57To: <gray@gnu.org>
58:DEL Subject: Renegades of Funk
59:ADD Subject: [RATM & music] Renegades of Funk
60
61No matter how hard you try,
62you can't stop us now!
63.
64:EXPECT 250
65QUIT
66:EXPECT 221
67:END PATTERN
68:END TEST
69