| |
| INT GetMessageSender( |
| |
UINT nMessageId, |
|
| |
LPTSTR lpszAddress, |
|
| |
INT nMaxLength |
|
| ); |
| INT GetMessageSender( |
| |
UINT nMessageId, |
|
| |
CString& strAddress |
|
| ); |
The GetMessageSender method returns the sender's address
for the specified message.
Parameters
- nMessageId
- Number of message to retrieve header value from. This value
must be greater than zero. The first message in the mailbox is
message number one.
- lpszAddress
- Pointer to a string buffer that will contain the address of the
message sender.
- nMaxLength
- The maximum number of characters that may be copied into the
buffer, including the terminating null character.
Return Value
If the method succeeds, it returns the length of the address. If
the sender cannot be determined, the method will return a value of
zero. If the method fails, the return value is IMAP_ERROR. To get
extended error information, call GetLastError.
Remarks
The GetMessageSender method returns the email address
specified in the Return-Path header field. This allows an application
to be able to easily determine the sender, without parsing the header
or downloading the contents of the message.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmapv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|
|