| 569 | /* tok822_quote_atom - see if an atom needs quoting when externalized */ |
| 570 | |
| 571 | static void tok822_quote_atom(TOK822 *tp) |
| 572 | { |
| 573 | char *cp; |
| 574 | int ch; |
| 575 | |
| 576 | /* |
| 577 | * RFC 822 expects 7-bit data. Rather than quoting every 8-bit character |
| 578 | * (and still passing it on as 8-bit data) we leave 8-bit data alone. |
| 579 | */ |
| 580 | for (cp = acl_vstring_str(tp->vstr); (ch = *(unsigned char *) cp) != 0; cp++) { |
| 581 | if ( /* !ISASCII(ch) || */ ch == ' ' |
| 582 | || ACL_ISCNTRL(ch) || strchr(tok822_opchar, ch)) |
| 583 | { |
| 584 | tp->type = TOK822_QSTRING; |
| 585 | break; |
| 586 | } |
| 587 | } |
| 588 | } |
| 589 | |
| 590 | /* tok822_comment - tokenize comment */ |
| 591 |
no outgoing calls
no test coverage detected
searching dependent graphs…