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
ca73d6d8
...
ca73d6d82d41b46e7babd54ba29448f5ee3db510
authored
2003-02-12 00:00:08 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(builtin_formataddr): Do not include own email unless RCPT_ME is set.
1 parent
c9e4c07c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
mh/mh_format.c
mh/mh_format.c
View file @
ca73d6d
...
...
@@ -1668,8 +1668,16 @@ builtin_formataddr (struct mh_machine *mach)
p
=
strobj_ptr
(
&
mach
->
reg_str
)
+
reglen
;
for
(
i
=
1
;
i
<=
num
;
i
++
)
{
if
(
!
(
rcpt_mask
&
RCPT_ME
))
{
address_get_email
(
addr
,
i
,
buf
,
sizeof
buf
,
&
n
);
if
(
mh_is_my_name
(
buf
))
continue
;
}
if
(
reglen
>
0
)
*
p
++
=
','
;
if
(
address_get_personal
(
addr
,
i
,
buf
,
sizeof
buf
,
&
n
)
==
0
&&
n
>
0
)
{
memcpy
(
p
,
buf
,
n
);
...
...
Please
register
or
sign in
to post a comment