if (bar) {
bar[0] = 0;
++bar;
- striplt(aaa);
- striplt(bar);
+ string_trim(aaa);
+ string_trim(bar);
if ( (!IsEmptyStr(aaa)) && (!strcasecmp(name, aaa)) ) {
syslog(LOG_DEBUG, "internet_addressing: global alias <%s> to <%s>", name, bar);
strcpy(name, bar);
safestrncpy(original_name, name, sizeof original_name);
// should these checks still be here, or maybe move them to split_recps() ?
- striplt(name);
+ string_trim(name);
remove_any_whitespace_to_the_left_or_right_of_at_symbol(name);
stripallbut(name, '<', '>');
for (i=0; i<num_addresses; ++i) {
char this_address[256];
extract_token(this_address, a, i, ',', sizeof this_address);
- striplt(this_address); // strip leading and trailing whitespace
+ string_trim(this_address); // strip leading and trailing whitespace
stripout(this_address, '(', ')'); // remove any portion in parentheses
stripallbut(this_address, '<', '>'); // if angle brackets are present, keep only what is inside them
if (!IsEmptyStr(this_address)) {
}
// strip leading and trailing spaces in all strings
- striplt(user);
- striplt(node);
- striplt(name);
+ string_trim(user);
+ string_trim(node);
+ string_trim(name);
// If we processed a string that had the address in angle brackets
// but no name outside the brackets, we now have an empty name. In
strcat(fieldbuf, " ");
cont = &fieldbuf[strlen(fieldbuf)];
ptr = cmemreadline(ptr, cont, SIZ-strlen(fieldbuf) );
- striplt(cont);
+ string_trim(cont);
}
strcpy(fieldbuf, &fieldbuf[strlen(fieldhdr)]);
- striplt(fieldbuf);
+ string_trim(fieldbuf);
return(fieldbuf);
}
int h;
extract_token(domain, addr, 1, '@', sizeof domain);
- striplt(domain);
+ string_trim(domain);
h = CtdlHostAlias(domain);
if (!IsEmptyStr(coll)) {
strcat(coll, ",");
}
- striplt(addr);
+ string_trim(addr);
strcat(coll, addr);
}
}