Commit 6b9f7ed9 6b9f7ed98b4bdb0a21c54aaf9eb5cfefc48cbc71 by Sergey Poznyakoff

(mail_remote_test):Added OPTION statement

1 parent d4de53bb
1 # -*- tcl -*- 1 # -*- tcl -*-
2 # This file is part of Mailutils testsuite. 2 # This file is part of Mailutils testsuite.
3 # Copyright (C) 2002, Free Software Foundation 3 # Copyright (C) 2002, 2004, Free Software Foundation
4 # 4 #
5 # This program is free software; you can redistribute it and/or modify 5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by 6 # it under the terms of the GNU General Public License as published by
......
...@@ -28,11 +28,15 @@ for {gets $chan line} {![eof $chan]} {gets $chan line} { ...@@ -28,11 +28,15 @@ for {gets $chan line} {![eof $chan]} {gets $chan line} {
28 verbose "MAIL FROM $from" 1 28 verbose "MAIL FROM $from" 1
29 verbose "MAIL TO $to" 1 29 verbose "MAIL TO $to" 1
30 verbose "INPUT $input" 1 30 verbose "INPUT $input" 1
31 verbose "OPTIONS $options" 1
31 verbose "PATTERN $pattern" 1 32 verbose "PATTERN $pattern" 1
32 set args "" 33 set args ""
33 if {$from != ""} { 34 if {$from != ""} {
34 append args " --from $from" 35 append args " --from $from"
35 } 36 }
37 if {$options != ""} {
38 append args " $options"
39 }
36 if {$to != ""} { 40 if {$to != ""} {
37 append args " $to" 41 append args " $to"
38 } 42 }
...@@ -44,6 +48,7 @@ for {gets $chan line} {![eof $chan]} {gets $chan line} { ...@@ -44,6 +48,7 @@ for {gets $chan line} {![eof $chan]} {gets $chan line} {
44 regexp "^MESSAGE (.*)" $line dummy message 48 regexp "^MESSAGE (.*)" $line dummy message
45 set from "" 49 set from ""
46 set to "" 50 set to ""
51 set options ""
47 set input [list] 52 set input [list]
48 set pattern [list] 53 set pattern [list]
49 set state 1 54 set state 1
...@@ -54,6 +59,9 @@ for {gets $chan line} {![eof $chan]} {gets $chan line} { ...@@ -54,6 +59,9 @@ for {gets $chan line} {![eof $chan]} {gets $chan line} {
54 "^TO" { 59 "^TO" {
55 regexp "^TO (.*)" $line dummy to 60 regexp "^TO (.*)" $line dummy to
56 } 61 }
62 "^OPTIONS" {
63 regexp "^OPTIONS (.*)" $line dummy options
64 }
57 "^BODY BEGIN" { 65 "^BODY BEGIN" {
58 set state 2 66 set state 2
59 } 67 }
......