summaryrefslogtreecommitdiff
path: root/mail.remote
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-01-27 15:49:55 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-01-27 15:49:55 +0000
commit6b9f7ed98b4bdb0a21c54aaf9eb5cfefc48cbc71 (patch)
tree760b1bb535fc6f500171a2bae1e8d65e53ce4c3b /mail.remote
parentd4de53bb22818c8a7ffa97daa5deeff2e849deff (diff)
downloadmailutils-6b9f7ed98b4bdb0a21c54aaf9eb5cfefc48cbc71.tar.gz
mailutils-6b9f7ed98b4bdb0a21c54aaf9eb5cfefc48cbc71.tar.bz2
(mail_remote_test):Added OPTION statement
Diffstat (limited to 'mail.remote')
-rw-r--r--mail.remote/testsuite/lib/mail.remote.exp2
-rw-r--r--mail.remote/testsuite/mail.remote/send.exp8
2 files changed, 9 insertions, 1 deletions
diff --git a/mail.remote/testsuite/lib/mail.remote.exp b/mail.remote/testsuite/lib/mail.remote.exp
index 14d3620ac..b1d6ac9a8 100644
--- a/mail.remote/testsuite/lib/mail.remote.exp
+++ b/mail.remote/testsuite/lib/mail.remote.exp
@@ -1,6 +1,6 @@
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
diff --git a/mail.remote/testsuite/mail.remote/send.exp b/mail.remote/testsuite/mail.remote/send.exp
index dfbf561ec..21e2ee52e 100644
--- a/mail.remote/testsuite/mail.remote/send.exp
+++ b/mail.remote/testsuite/mail.remote/send.exp
@@ -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 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 "^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 }

Return to:

Send suggestions and report system problems to the System administrator.