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
cbf6717f
...
cbf6717f2b7fadc55b2787ca1fbb920404d3830d
authored
2002-12-28 10:52:29 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use X-Loop-Prevention header instead of X-Sender.
1 parent
1c319c45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
libsieve/actions.c
libsieve/actions.c
View file @
cbf6717
...
...
@@ -299,8 +299,8 @@ sieve_action_reject (sieve_machine_t mach, list_t args, list_t tags)
/* rfc3028 says:
"Implementations SHOULD take measures to implement loop control,"
We do this by appending an "X-
Sender
" header to each message
being redirected. If one of the "X-
Sender
" headers of the message
We do this by appending an "X-
Loop-Prevention
" header to each message
being redirected. If one of the "X-
Loop-Prevention
" headers of the message
contains our email address, we assume it is a loop and bail out. */
static
int
...
...
@@ -317,7 +317,7 @@ check_redirect_loop (message_t msg)
for
(
i
=
1
;
!
loop
&&
i
<=
num
;
i
++
)
{
header_get_field_name
(
hdr
,
i
,
buf
,
sizeof
buf
,
NULL
);
if
(
strcasecmp
(
buf
,
"X-
Sender
"
)
==
0
)
if
(
strcasecmp
(
buf
,
"X-
Loop-Prevention
"
)
==
0
)
{
size_t
j
,
cnt
=
0
;
address_t
addr
;
...
...
@@ -414,7 +414,7 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags)
p
=
mu_get_user_email
(
NULL
);
if
(
p
)
{
header_set_value
(
hdr
,
"X-
Sender
"
,
p
,
0
);
header_set_value
(
hdr
,
"X-
Loop-Prevention
"
,
p
,
0
);
free
(
p
);
}
else
...
...
Please
register
or
sign in
to post a comment