Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f5b39cfc
Commit
f5b39cfc
authored
Jan 14, 2011
by
Alexander Morozov
Committed by
Alexandre Julliard
Jan 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemapi: Address can contain "SMTP:".
parent
e5dee7d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sendmail.c
dlls/winemapi/sendmail.c
+5
-0
No files found.
dlls/winemapi/sendmail.c
View file @
f5b39cfc
...
...
@@ -66,6 +66,7 @@ ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam,
const
char
*
address
,
*
subject
,
*
body
;
static
const
char
format
[]
=
"mailto:
\"
%s
\"
?subject=
\"
%s
\"
&cc=
\"
%s
\"
&bcc=
\"
%s
\"
&body=
\"
%s
\"
"
;
static
const
char
smtp
[]
=
"smtp:"
;
char
*
mailto
=
NULL
,
*
escape
=
NULL
;
char
empty_string
[]
=
""
;
HRESULT
res
;
...
...
@@ -86,6 +87,8 @@ ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam,
}
address
=
message
->
lpRecips
[
i
].
lpszAddress
;
if
(
!
strncasecmp
(
address
,
smtp
,
sizeof
(
smtp
)
-
1
))
address
+=
sizeof
(
smtp
)
-
1
;
if
(
address
)
{
...
...
@@ -169,6 +172,8 @@ ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam,
for
(
i
=
0
;
i
<
message
->
nRecipCount
;
i
++
)
{
address
=
message
->
lpRecips
[
i
].
lpszAddress
;
if
(
!
strncasecmp
(
address
,
smtp
,
sizeof
(
smtp
)
-
1
))
address
+=
sizeof
(
smtp
)
-
1
;
if
(
address
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment