ec_message_get_mailfrom

March 26, 2020 Contributors

Name

ec_message_get_mailfrom — Returns the entire protocol-decorated mailfrom string

Synopsis

#include "ec_message.h"

| const char * **ec_message_get_mailfrom** ( | mess); |   |

ec_message * <var class="pdparam">mess</var>;

Description

Returns the entire protocol-decorated mailfrom string via a read-only buffer. For example, MAIL FROM: john.doe@example.comCRLF

Parameters

mess

A pointer to an ec_message struct. For documentation of this data structure see “ec_message”

Return Values

Returns a read-only pointer to the message mailfrom buffer. This may be NULL, indicating that no mailfrom string has been set.

Threading

It is legal to call this function in any thread.

See Also

ec_message_set_envelope and ec_message_get_rcptto