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
365371c6
...
365371c6c08c8148698768520ee972cb94c9fd3b
authored
2002-08-25 12:40:40 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap4d_test): Added new switches: -literal and -noliteral
1 parent
81ccae08
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
imap4d/testsuite/lib/imap4d.exp
imap4d/testsuite/lib/imap4d.exp
View file @
365371c
...
...
@@ -155,6 +155,11 @@ proc imap4d_command { cmd } {
return
[
mu_command
[
imap4d_make_command
$cmd
]]
}
proc
imap4d_uidvalidity
{}
{
regsub
"(
\[
0-9
\]
*)
\[
0-9
\]
"
"
[
clock
seconds
]
"
"
\\
1
\[
0-9
\]
"
val
return
$val
}
proc
imap4d_exit
{}
{
if
[
imap4d_test
"LOGOUT"
\
"BYE Session terminating."
\
...
...
@@ -217,15 +222,22 @@ proc imap4d_test { args } {
if
{
$len
>= 2
}
{
set regexp 0
set literal 0
for
{
set
i 1
}
{
$i
<=
[
expr
$len
- 1
]}
{
incr
i
}
{
switch -regexp --
"
[
lindex
$args
$i
]
"
{
-re.*$ -
--
{
set item
"
[
lindex
$args
$i
]
"
;
set regexp 1
}
default
{
if
{
$regexp
}
{
^-re.*$ -
^--
{
set item
"
[
lindex
$args
$i
]
"
;
set regexp 1
}
^-literal
{
set literal 1
;
continue
}
^-noliteral
{
set literal 0
;
continue
}
default
{
if
{
!$literal
}
{
if
{
$regexp
}
{
set item
"
\\
*
[
lindex
$args
$i
]
"
}
else
{
set item
"*
[
lindex
$args
$i
]
"
}
}
else
{
set item
[
lindex
$args
$i
]
}
set regexp 0
}
}
...
...
Please
register
or
sign in
to post a comment