Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1861e5c6
...
1861e5c6a8d5c28cce82f364fdf0e6746a14496a
authored
2002-11-19 13:52:02 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(sieve_test): Pass --verbose switch to sieve. Added -retcode option.
1 parent
aafe991b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
sieve/testsuite/lib/sieve.exp
sieve/testsuite/lib/sieve.exp
View file @
1861e5c
...
...
@@ -30,17 +30,19 @@ proc sieve_test {args} {
global top_builddir
set default
""
set sw
[
list
"-M sendmail:
$top
_builddir/examples/mta"
\
set sw
[
list
"--verbose"
\
"-M sendmail:
$top
_builddir/examples/mta"
\
"--email foobar@nonexistent.net"
]
set reuse_spool 0
set retcode 0
for
{
set
i 0
}
{
$i
<
[
llength
$args
]}
{
incr
i
}
{
set a
[
lindex
$args
$i
]
if
{
"
$a
"
==
"-default"
}
{
set default
[
lindex
$args
[
expr
$i
+ 1
]]
incr i
set default
[
lindex
$args
$i
]
}
else
if
{
"
$a
"
==
"-message"
}
{
set message
[
lindex
$args
[
expr
$i
+ 1
]]
incr i
set message
[
lindex
$args
$i
]
}
else
if
{
"
$a
"
==
"-pattern"
}
{
incr i
set pattern
[
lrange
$args
$i
end
]
...
...
@@ -48,6 +50,9 @@ proc sieve_test {args} {
}
else
if
{
"
$a
"
==
"-reuse-spool"
}
{
set reuse_spool 1
break
}
else
if
{
"
$a
"
==
"-retcode"
}
{
incr i
set retcode
[
lindex
$args
$i
]
}
else
{
set sw
[
concat
$sw
[
lindex
$args
$i
]]
}
...
...
@@ -71,9 +76,10 @@ proc sieve_test {args} {
if
[
info
exists pattern
]
{
mu_exec -default
$default
-message
$message
-arg-list
$sw
\
-pattern
$pattern
-pattern
$pattern
-retcode
$retcode
}
else
{
mu_exec -default
$default
-message
$message
-arg-list
$sw
mu_exec -default
$default
-message
$message
-arg-list
$sw
\
-retcode
$retcode
}
#FIXME: examine the output mailbox
}
...
...
Please
register
or
sign in
to post a comment