/netbsd-src/external/ibm-public/postfix/dist/src/trivial-rewrite/ |
H A D | rewrite.c | 211 if (strcasecmp(vstring_str(vstringval), "localhost") != 0) { in rewrite_tree() 214 "\"%s.%s\"", vstring_str(vstringval), in rewrite_tree() 215 vstring_str(vstringval), var_mydomain); in rewrite_tree() 221 vstring_str(vstringval), vstring_str(vstringval), in rewrite_tree() 255 if (strcmp(vstring_str(ruleset), MAIL_ATTR_RWR_LOCAL) == 0) in rewrite_proto() 257 else if (strcmp(vstring_str(ruleset), MAIL_ATTR_RWR_REMOTE) == 0) in rewrite_proto() 260 msg_warn("unknown context: %s", vstring_str(ruleset)); in rewrite_proto() 267 if (*vstring_str(address) == 0) { in rewrite_proto() 269 vstring_strcpy(result, vstring_str(address)); in rewrite_proto() 277 tree = tok822_scan_addr(vstring_str(address)); in rewrite_proto() [all …]
|
/netbsd-src/external/ibm-public/postfix/dist/src/global/ |
H A D | deliver_request.c | 281 if (mail_open_ok(vstring_str(queue_name), in deliver_request_get() 282 vstring_str(queue_id), &st, &path) == 0) in deliver_request_get() 289 request->queue_name = mystrdup(vstring_str(queue_name)); in deliver_request_get() 290 request->queue_id = mystrdup(vstring_str(queue_id)); in deliver_request_get() 291 request->nexthop = mystrdup(vstring_str(nexthop)); in deliver_request_get() 292 request->encoding = mystrdup(vstring_str(encoding)); in deliver_request_get() 295 request->sender = mystrdup(vstring_str(address)); in deliver_request_get() 296 request->client_name = mystrdup(vstring_str(client_name)); in deliver_request_get() 297 request->client_addr = mystrdup(vstring_str(client_addr)); in deliver_request_get() 298 request->client_port = mystrdup(vstring_str(client_port)); in deliver_request_get() [all …]
|
H A D | dsn_buf.h | 72 vstring_str((dsb)->status), \ 73 vstring_str((dsb)->action), \ 74 vstring_str((dsb)->reason), \ 75 vstring_str((dsb)->dtype), \ 76 vstring_str((dsb)->dtext), \ 77 vstring_str((dsb)->mtype), \ 78 vstring_str((dsb)->mname))
|
H A D | tok822_resolve.c | 68 resolve_clnt_query_from(sender, vstring_str(intern_form), reply); in tok822_resolve_from() 72 vstring_str(intern_form), vstring_str(reply->transport), in tok822_resolve_from() 73 vstring_str(reply->nexthop), vstring_str(reply->recipient)); in tok822_resolve_from()
|
H A D | tok822_parse.c | 223 vstring_strcat(vp, vstring_str(tp->vstr)); in tok822_internalize() 227 vstring_strcat(vp, vstring_str(tp->vstr)); in tok822_internalize() 257 printable(vstring_str(vp) + start, '?')); in strip_address() 263 quote_822_local_flags(vp, vstring_str(tmp), in strip_address() 350 quote_822_local_flags(vp, vstring_str(tmp), in tok822_externalize() 357 vstring_strcat(vp, vstring_str(tp->vstr)); in tok822_externalize() 361 tok822_copy_quoted(vp, vstring_str(tp->vstr), "\"\\\r\n"); in tok822_externalize() 366 tok822_copy_quoted(vp, vstring_str(tp->vstr), "\\\r\n"); in tok822_externalize() 578 for (cp = vstring_str(tp->vstr); (ch = *(unsigned char *) cp) != 0; cp++) { in tok822_quote_atom() 685 "unknown\n", vstring_str(tp->vstr)); in tok822_print() [all …]
|
H A D | compat_level.c | 262 return (vstring_str(buf)); 364 vstream_printf("<< %s\n", vstring_str(buf)); in test_expand() 368 cp = vstring_str(buf); in test_expand() 378 vstream_printf("<< %s\n", vstring_str(buf)); in test_expand() 383 stat = mac_expand(result, vstring_str(buf), MAC_EXP_FLAG_NONE, in test_expand() 385 vstream_printf("stat=%d result=%s\n", stat, vstring_str(result)); in test_expand() 409 if ((compat_level = compat_level_from_string(vstring_str(buf), in test_convert() 412 msg_info("%s -> 0x%lx", vstring_str(buf), compat_level); in test_convert()
|
H A D | tok822_rewrite.c | 60 msg_info("tok822_rewrite: input: %s", vstring_str(input_ext_form)); in tok822_rewrite() 61 rewrite_clnt(how, vstring_str(input_ext_form), canon_ext_form); in tok822_rewrite() 63 msg_info("tok822_rewrite: result: %s", vstring_str(canon_ext_form)); in tok822_rewrite() 65 addr->head = tok822_scan(vstring_str(canon_ext_form), &addr->tail); in tok822_rewrite()
|
H A D | mail_copy.c | 192 MAIL_ADDR_MAIL_DAEMON : vstring_str(buf), in mail_copy() 197 *sender ? vstring_str(buf) : "", eol); in mail_copy() 210 vstream_fprintf(dst, "X-Original-To: %s%s", vstring_str(buf), eol); in mail_copy() 217 vstream_fprintf(dst, "Delivered-To: %s%s", vstring_str(buf), eol); in mail_copy() 229 vstream_fwrite((s),vstring_str(b),VSTRING_LEN(b)) in mail_copy() 235 bp = vstring_str(buf); in mail_copy()
|
H A D | maps.c | 162 if ((dict = dict_handle(vstring_str(map_type_name_flags))) == 0) in maps_create() 167 dict_register(vstring_str(map_type_name_flags), dict); in maps_create() 168 argv_add(maps->argv, vstring_str(map_type_name_flags), ARGV_END); in maps_create() 280 return (vstring_str(unb64)); in maps_file_find() 329 vstream_printf("\"%s\": ", vstring_str(buf)); in main() 330 if ((result = maps_find(maps, vstring_str(buf), 0)) != 0) { in main()
|
H A D | valid_mailhost_addr.c | 145 msg_info("testing: \"%s\"", vstring_str(buffer)); in main() 146 if (vstring_str(buffer)[0] == '[') in main() 147 valid_mailhost_literal(vstring_str(buffer), DO_GRIPE); in main() 149 valid_mailhost_addr(vstring_str(buffer), DO_GRIPE); in main()
|
H A D | dict_sqlite.c | 168 name = lowercase(vstring_str(dict->fold_buf)); in dict_sqlite_lookup() 201 myname, dict_sqlite->parser->name, vstring_str(query)); in dict_sqlite_lookup() 203 if (sqlite3_prepare_v2(dict_sqlite->db, vstring_str(query), -1, in dict_sqlite_lookup() 234 vstring_str(query), sqlite3_errmsg(dict_sqlite->db)); in dict_sqlite_lookup() 246 vstring_str(query), sqlite3_errmsg(dict_sqlite->db)); in dict_sqlite_lookup() 248 return ((dict->error == 0 && *(retval = vstring_str(result)) != 0) ? in dict_sqlite_lookup()
|
H A D | rcpt_buf.h | 46 ((buf)->rcpt.address = vstring_str((buf)->address), \ 47 (buf)->rcpt.orig_addr = vstring_str((buf)->orig_addr), \ 48 (buf)->rcpt.dsn_orcpt = vstring_str((buf)->dsn_orcpt), \
|
H A D | header_opts.c | 117 htable_enter(header_hash, vstring_str(header_key), (void *) hp); in header_opts_init() 177 trimblanks(vstring_str(header_key), cp - string) in header_opts_find() 178 - vstring_str(header_key)); in header_opts_find() 180 return ((const HEADER_OPTS *) htable_find(header_hash, vstring_str(header_key))); in header_opts_find()
|
/netbsd-src/external/ibm-public/postfix/dist/src/util/ |
H A D | vstring.c | 433 memmove(vstring_str(vp), vstring_str(vp) + move, len); in vstring_truncate() 511 memcpy(vstring_str(vp), src, len); in vstring_memcpy() 533 for (cp = (unsigned char *) vstring_str(vp); cp < (unsigned char *) vstring_end(vp); cp++) in vstring_memchr() 558 memmove(vstring_str(vp) + start + len, vstring_str(vp) + start, in vstring_insert() 560 memcpy(vstring_str(vp) + start, buf, len); in vstring_insert() 583 memmove(vstring_str(vp) + len, vstring_str(vp), VSTRING_LEN(vp)); in vstring_prepend() 584 memcpy(vstring_str(vp), buf, len); in vstring_prepend() 681 vstring_memcat(vp, vstring_str(vp), old_len); in vstring_sprintf_prepend() 684 memmove(vstring_str(vp), vstring_str(vp) + old_len, result_len); in vstring_sprintf_prepend() 708 n, (long) (vp)->vbuf.len, (long) strlen(vstring_str(vp))); in main() [all …]
|
H A D | mac_expand.c | 271 #define STR(x) vstring_str(x) 476 && (op_result = relop_eval(vstring_str(left_op_buf), op_tokval, in mac_exp_parse_relational() 477 vstring_str(rite_op_buf))) == MAC_EXP_OP_RES_ERROR) in mac_exp_parse_relational() 560 vstring_str(buf)); in mac_expand_callback() 570 cp = vstring_str(buf); in mac_expand_callback() 618 (int) (cp - vstring_str(buf)), in mac_expand_callback() 619 vstring_str(buf), cp); in mac_expand_callback() 681 mc->status |= mac_parse(vstring_str(buf), mac_expand_callback, in mac_expand_callback() 687 printable(vstring_str(mc->result) + res_len, '_'); in mac_expand_callback() 689 cp = vstring_str(mc->result) + res_len; in mac_expand_callback() [all …]
|
H A D | format_tv.c | 145 vstream_printf(">> %s\n", vstring_str(in)); in main() 146 if (vstring_str(in)[0] == 0 || vstring_str(in)[0] == '#') in main() 148 if (sscanf(vstring_str(in), "%lf %d %d", &tval, &sig_dig, &max_dig) != 3) in main() 149 msg_fatal("bad input: %s", vstring_str(in)); in main() 154 vstream_printf("%s\n", vstring_str(out)); in main()
|
H A D | vbuf_print.c | 265 vstring_str(fmt), s); in vbuf_print() 281 vstring_str(fmt), va_arg(ap, long)); in vbuf_print() 284 vstring_str(fmt), va_arg(ap, int)); in vbuf_print() 291 vstring_str(fmt), va_arg(ap, double)); in vbuf_print() 302 vstring_str(fmt), va_arg(ap, char *)); in vbuf_print() 327 ARGV *args = argv_split(vstring_str(ibuf), CHARS_SPACE); in main() 363 msg_info("\"%s\"", vstring_str(obuf)); in main() 367 msg_info("\"%s\"", vstring_str(obuf)); in main() 372 msg_info("\"%s\"", vstring_str(obuf)); in main()
|
H A D | dict_regexp.c | 174 n = atoi(vstring_str(buf)); in dict_regexp_expand() 178 vstring_str(buf)); in dict_regexp_expand() 192 vstring_strcat(dict_regexp->expansion_buf, vstring_str(buf)); in dict_regexp_expand() 240 lookup_string = lowercase(vstring_str(dict->fold_buf)); in dict_regexp_lookup() 295 return (vstring_str(dict_regexp->expansion_buf)); in dict_regexp_lookup() 495 if (!alldig(vstring_str(buf))) { in dict_regexp_prescan() 497 ctxt->mapname, ctxt->lineno, vstring_str(buf)); in dict_regexp_prescan() 500 n = atoi(vstring_str(buf)); in dict_regexp_prescan() 503 ctxt->mapname, ctxt->lineno, vstring_str(buf)); in dict_regexp_prescan() 512 ctxt->literal = mystrdup(vstring_str(buf)); in dict_regexp_prescan() [all …]
|
H A D | dict_pcre.c | 279 n = atoi(vstring_str(buf)); in dict_pcre_expand() 311 vstring_strcat(dict_pcre->expansion_buf, vstring_str(buf)); in dict_pcre_expand() 328 (unsigned char *) vstring_str(buf), in dict_pcre_get_error() 333 return (vstring_str(buf)); in dict_pcre_get_error() 440 lookup_string = lowercase(vstring_str(dict->fold_buf)); in dict_pcre_lookup() 485 return (vstring_str(dict_pcre->expansion_buf)); in dict_pcre_lookup() 669 if (!alldig(vstring_str(buf))) { in dict_pcre_prescan() 671 ctxt->mapname, ctxt->lineno, vstring_str(buf)); in dict_pcre_prescan() 674 n = atoi(vstring_str(buf)); in dict_pcre_prescan() 677 ctxt->mapname, ctxt->lineno, vstring_str(buf)); in dict_pcre_prescan() [all …]
|
H A D | unescape.c | 195 unescape(out, vstring_str(in)); in main() 196 vstream_fwrite(VSTREAM_OUT, vstring_str(out), VSTRING_LEN(out)); in main() 201 escape(out, vstring_str(in), VSTRING_LEN(in)); in main() 202 vstream_fwrite(VSTREAM_OUT, vstring_str(out), VSTRING_LEN(out)); in main()
|
/netbsd-src/external/ibm-public/postfix/dist/src/master/ |
H A D | master.c | 498 if (test_lock && access(vstring_str(lock_path), F_OK) < 0) in main() 500 lock_fp = open_lock(vstring_str(lock_path), O_RDWR | O_CREAT, 0644, why); in main() 505 vstring_str(lock_path), vstring_str(why)); in main() 509 msg_fatal("cannot update lock file %s: %m", vstring_str(lock_path)); in main() 518 open_lock(vstring_str(data_lock_path), O_RDWR | O_CREAT, 0644, why); in main() 522 vstring_str(data_lock_path), vstring_str(why)); in main() 526 msg_fatal("cannot update lock file %s: %m", vstring_str(data_lock_path)); in main()
|
/netbsd-src/external/ibm-public/postfix/dist/src/cleanup/ |
H A D | cleanup_message.c | 104 char *start_line = vstring_str(header_buf); in cleanup_fold_header() 140 return (mystrdup(vstring_str(buffer))); in cleanup_extract_internal() 162 tree = tok822_parse_limit(vstring_str(header_buf) in cleanup_rewrite_sender() 219 tree = tok822_parse_limit(vstring_str(header_buf) in cleanup_rewrite_recip() 281 msg_info("%s", vstring_str(state->temp1)); in cleanup_act_log() 519 msg_info("%s: '%.200s'", myname, vstring_str(header_buf)); in cleanup_header_callback() 539 char *header = vstring_str(header_buf); in cleanup_header_callback() 576 hdrval = vstring_str(header_buf) + strlen(hdr_opts->name) + 1; in cleanup_header_callback() 643 argv_add(state->auto_hdrs, vstring_str(header_buf), ARGV_END); in cleanup_header_callback() 729 state->resent, vstring_str(state->temp1)); in cleanup_header_done_callback() [all …]
|
/netbsd-src/external/ibm-public/postfix/dist/src/smtpd/ |
H A D | smtpd_token.c | 125 #define STR(x) vstring_str(x) in smtp_next_token() 160 arg->strval = vstring_str(arg->vstrval); in smtp_next_token() 218 if (*vstring_str(vp) == '#') in main() 221 vstream_printf("%s\n", vstring_str(vp)); in main() 222 tok_argc = smtpd_token(vstring_str(vp), &tok_argv); in main()
|
/netbsd-src/external/ibm-public/postfix/dist/src/pickup/ |
H A D | pickup.c | 256 msg_info("%s: read %c %s", info->id, type, vstring_str(buf)); in copy_segment() 261 info->sender = mystrdup(vstring_str(buf)); in copy_segment() 292 saved_attr = mystrdup(vstring_str(buf)); in copy_segment() 311 if (VSTRING_LEN(buf) > 0 && IS_SPACE_TAB(vstring_str(buf)[0])) in copy_segment() 430 return (cleanup_service_error_reason(info, status, vstring_str(buf))); in pickup_copy() 457 msg_warn("open input file %s: %s", info->path, vstring_str(buf)); in pickup_file() 501 info->id = mystrdup(vstring_str(buf)); in pickup_file()
|
/netbsd-src/external/ibm-public/postfix/dist/src/postdrop/ |
H A D | postdrop.c | 279 user_name = vstring_str(user_name_buf); in check_login_sender_acl() 290 res = login_sender_match(lsm, user_name, vstring_str(sender_buf)); in check_login_sender_acl() 299 vstring_str(sender_buf)); in check_login_sender_acl() 530 if ((error_text = split_nameval(vstring_str(buf), &attr_name, in main() 533 (long) uid, error_text, vstring_str(buf)); in main() 626 vstring_str(reason) : ""), in main()
|