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
7894ac62
...
7894ac62ff8595f9620bc3de7ef372e9967510a8
authored
2002-12-20 12:06:21 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Documented text:[-][delimiter] extension.
1 parent
9957097f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
doc/texinfo/libsieve.texi
doc/texinfo/libsieve.texi
View file @
7894ac6
...
...
@@ -757,6 +757,35 @@ text:
This results in the contents of file @file{myresponse.txt} being read
and interpreted as the contents of the multiline string.
GNU libsieve extends the described syntax as follows. If the keyword
@code{text:} is immediately followed by a dash (@samp{-}), then all
leading tab characters are stripped from input lines and the line
containing delimiter (@samp{.}). This allows multiline strings within
scripts to be indented in a natural fashion.
Furthermore, if the @code{text:} (optionally followed by @samp{-}) is
immediately followed by a word, this word will be used as ending
delimiter of multiline string instead of the default dot. For
example:
@example
@group
if header "
from
" "
me
@@example
.
com
"
@{
reject text:-EOT
I do not accept messages from
this address.
.
.
EOT
# Notice that this the multiline string ends here.
# The single dots above will be part of it.
;
@}
@end group
@end example
@noindent
@item String Lists
A @dfn{string list} is a comma-delimited list of quoted strings, enclosed
...
...
@@ -1623,6 +1652,25 @@ This section summarizes the @sc{gnu} extensions to the sieve language
@enumerate
1
@item
Multiline
strings
syntax
GNU
libsieve
understands
the
following
multiline
string
syntax
:
@example
@group
text
:
[
-
][
@var
{
delimiter
}]
....
@var
{
delimiter
}
@end
group
@end
example
The
meaning
of
optional
flags
is
the
same
as
in
shell
``
here
document
''
construct
:
the
dash
strips
all
leading
tab
characters
from
the
string
body
,
thus
allowing
it
to
be
indented
in
a
natural
fashion
;
@var
{
delimiter
}
introduces
the
new
end
-
of
-
text
delimiter
instead
of
the
default
dot
.
If
@var
{
delimiter
}
starts
with
a
backslash
,
no
preprocessing
will
be
performed
within
a
string
.
@item
Handling
of
the
@code
{
require
}
statement
.
@itemize
...
...
Please
register
or
sign in
to post a comment