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
de8dd504
Commit
de8dd504
authored
Nov 04, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Add an implementation of ISMTPTransport2::CommandDATA.
parent
d80d9b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
+40
-2
smtptransport.c
dlls/inetcomm/smtptransport.c
+40
-2
No files found.
dlls/inetcomm/smtptransport.c
View file @
de8dd504
...
...
@@ -123,6 +123,40 @@ static void SMTPTransport_CallbackReadResponseDoNothing(IInternetTransport *ifac
InternetTransport_ReadLine
(
&
This
->
InetTransport
,
SMTPTransport_CallbackDoNothing
);
}
static
void
SMTPTransport_CallbackProcessDATAResponse
(
IInternetTransport
*
iface
,
char
*
pBuffer
,
int
cbBuffer
)
{
SMTPTransport
*
This
=
(
SMTPTransport
*
)
iface
;
SMTPRESPONSE
response
=
{
0
};
HRESULT
hr
;
TRACE
(
"
\n
"
);
hr
=
SMTPTransport_ParseResponse
(
This
,
pBuffer
,
&
response
);
if
(
FAILED
(
hr
))
{
/* FIXME: handle error */
return
;
}
response
.
command
=
SMTP_DATA
;
ISMTPCallback_OnResponse
((
ISMTPCallback
*
)
This
->
InetTransport
.
pCallback
,
&
response
);
if
(
FAILED
(
response
.
rIxpResult
.
hrServerError
))
{
ERR
(
"server error: %s
\n
"
,
debugstr_a
(
pBuffer
));
/* FIXME: handle error */
return
;
}
}
static
void
SMTPTransport_CallbackReadDATAResponse
(
IInternetTransport
*
iface
,
char
*
pBuffer
,
int
cbBuffer
)
{
SMTPTransport
*
This
=
(
SMTPTransport
*
)
iface
;
TRACE
(
"
\n
"
);
InternetTransport_ReadLine
(
&
This
->
InetTransport
,
SMTPTransport_CallbackProcessDATAResponse
);
}
static
void
SMTPTransport_CallbackProcessMAILResponse
(
IInternetTransport
*
iface
,
char
*
pBuffer
,
int
cbBuffer
)
{
SMTPTransport
*
This
=
(
SMTPTransport
*
)
iface
;
...
...
@@ -843,8 +877,12 @@ static HRESULT WINAPI SMTPTransport_CommandRSET(ISMTPTransport2 *iface)
static
HRESULT
WINAPI
SMTPTransport_CommandDATA
(
ISMTPTransport2
*
iface
)
{
FIXME
(
"()
\n
"
);
return
E_NOTIMPL
;
SMTPTransport
*
This
=
(
SMTPTransport
*
)
iface
;
TRACE
(
"()
\n
"
);
return
InternetTransport_DoCommand
(
&
This
->
InetTransport
,
"DATA
\n
"
,
SMTPTransport_CallbackReadDATAResponse
);
}
static
HRESULT
WINAPI
SMTPTransport_CommandDOT
(
ISMTPTransport2
*
iface
)
...
...
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