//
// This program is open source software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
#include <stdlib.h>
#include <unistd.h>
}
if (!strcasecmp(cbtype, "text/html")) {
- ptr = html_to_ascii(content, length, 80);
+ ptr = html_to_ascii(content, length, 80, 0);
wlen = strlen(ptr);
client_write(ptr, wlen);
if ((wlen > 0) && (ptr[wlen-1] != '\n')) {
if (mptr != NULL) {
char *aptr;
safestrncpy(content_type, &mptr[13], sizeof content_type);
- striplt(content_type);
+ string_trim(content_type);
aptr = content_type;
while (!IsEmptyStr(aptr)) {
if ((*aptr == ';')
msg->cm_anon_type = type;
msg->cm_format_type = format_type;
- if (recipient != NULL) rcplen = striplt(recipient);
- if (recp_cc != NULL) cclen = striplt(recp_cc);
+ if (recipient != NULL) rcplen = string_trim(recipient);
+ if (recp_cc != NULL) cclen = string_trim(recp_cc);
/* Path or Return-Path */
if (myelen > 0) {
if (subject != NULL) {
long length;
- length = striplt(subject);
+ length = string_trim(subject);
if (length > 0) {
long i;
long IsAscii;