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
e7537ee6
...
e7537ee62061e0f5d5c6ce4658a13fdc70588069
authored
2005-07-07 16:14:03 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fall back to "Sender:" and "From:" headers (in that order), if the envelope sender is not available.
1 parent
3d2e7c41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
libsieve/actions.c
libsieve/actions.c
View file @
e7537ee
...
...
@@ -113,14 +113,23 @@ sieve_get_message_sender (message_t msg, char **ptext)
return
rc
;
rc
=
envelope_sender
(
envelope
,
NULL
,
0
,
&
size
);
if
(
rc
)
return
rc
;
if
(
rc
==
0
)
{
if
(
!
(
text
=
malloc
(
size
+
1
)))
return
ENOMEM
;
envelope_sender
(
envelope
,
text
,
size
+
1
,
NULL
);
}
else
{
header_t
hdr
=
NULL
;
message_get_header
(
msg
,
&
hdr
);
if
(
rc
=
header_aget_value
(
hdr
,
MU_HEADER_SENDER
,
&
text
))
rc
=
header_aget_value
(
hdr
,
MU_HEADER_FROM
,
&
text
);
}
if
(
rc
==
0
)
*
ptext
=
text
;
return
0
;
return
rc
;
}
static
int
...
...
Please
register
or
sign in
to post a comment