xrtMailTreeLimitsInit
使用默认预算初始化 MIME 树限制。
void xrtMailTreeLimitsInit(xmailtreelimits* pLimits);
| 参数 | 说明 |
|---|---|
| xmailtreelimits* pLimits | Lmts 参数 |
返回:使用默认预算初始化 MIME 树限制。
示例已编译验证
mailtreelimitsinit obj; xrtMailTreeLimitsInit(&obj, pLimits);
xrtMailTreeLimitsValid
验证 MIME 树限制;零字段按默认预算解释。
bool xrtMailTreeLimitsValid(const xmailtreelimits* pLimits);
| 参数 | 说明 |
|---|---|
| const xmailtreelimits* pLimits | Lmts 参数 |
返回:验证 MIME 树限制;零字段按默认预算解释。
示例已编译验证
/* 验证 MIME 树限制;零字段按默认预算解释。 */ result = xrtMailTreeLimitsValid(pLimits);
xrtMailTreeParse
复制并解析完整 RFC 消息;成功结果不再依赖输入缓冲。
bool xrtMailTreeParse( xstrview Source, const xmailtreelimits* pLimits, xmailtree* pTree );
| 参数 | 说明 |
|---|---|
| xstrview Source | Source 参数 |
| const xmailtreelimits* pLimits | Lmts 参数 |
| xmailtree* pTree | 树对象 |
返回:复制并解析完整 RFC 消息;成功结果不再依赖输入缓冲。
示例已编译验证
/* 复制并解析完整 RFC 消息;成功结果不再依赖输入缓冲。 */ result = xrtMailTreeParse(Source, pLimits, pTree);
xrtMailTreeFree
释放整棵 MIME 树;允许传入 NULL 或已清零结构。
void xrtMailTreeFree(xmailtree* pTree);
| 参数 | 说明 |
|---|---|
| xmailtree* pTree | 树对象 |
返回:释放整棵 MIME 树;允许传入 NULL 或已清零结构。
示例已编译验证
xrtMailTreeFree(pTree);