xrtMailTreeLimitsInit

使用默认预算初始化 MIME 树限制。

void xrtMailTreeLimitsInit(xmailtreelimits* pLimits);
参数说明
xmailtreelimits* pLimitsLmts 参数
返回:使用默认预算初始化 MIME 树限制。

示例已编译验证

mailtreelimitsinit obj;
xrtMailTreeLimitsInit(&obj, pLimits);

xrtMailTreeLimitsValid

验证 MIME 树限制;零字段按默认预算解释。

bool xrtMailTreeLimitsValid(const xmailtreelimits* pLimits);
参数说明
const xmailtreelimits* pLimitsLmts 参数
返回:验证 MIME 树限制;零字段按默认预算解释。

示例已编译验证

/* 验证 MIME 树限制;零字段按默认预算解释。 */
result = xrtMailTreeLimitsValid(pLimits);

xrtMailTreeParse

复制并解析完整 RFC 消息;成功结果不再依赖输入缓冲。

bool xrtMailTreeParse( xstrview Source, const xmailtreelimits* pLimits, xmailtree* pTree );
参数说明
xstrview SourceSource 参数
const xmailtreelimits* pLimitsLmts 参数
xmailtree* pTree树对象
返回:复制并解析完整 RFC 消息;成功结果不再依赖输入缓冲。

示例已编译验证

/* 复制并解析完整 RFC 消息;成功结果不再依赖输入缓冲。 */
result = xrtMailTreeParse(Source, pLimits, pTree);

xrtMailTreeFree

释放整棵 MIME 树;允许传入 NULL 或已清零结构。

void xrtMailTreeFree(xmailtree* pTree);
参数说明
xmailtree* pTree树对象
返回:释放整棵 MIME 树;允许传入 NULL 或已清零结构。

示例已编译验证

xrtMailTreeFree(pTree);