[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (Not-so) hypothetical question: What to do about NULs?
From: |
Ken Hornstein |
Subject: |
Re: (Not-so) hypothetical question: What to do about NULs? |
Date: |
Wed, 22 Feb 2023 20:59:31 -0500 |
>While POP's LIST does actually include the size of the message in bytes,
>that's prior to any CRLF mangling that happens so it cannot be used
>reliably as a method for determining when to stop reading. Unfortunate.
Right, but that's mostly because of the way multiline responses are
handled in POP. It's never "read X bytes", it's "read lines until you
get a line that is just .\r\n". With IMAP, it's "the next X bytes are
the data you asked for". So you're used to dealing with "lines" and
that lends itself to C strings.
>I notice however, that some components of my email infrastructure pass
>NULs through without problems and some do not. qmail successfully queued
>a message with a NUL in both the header and the body, but other parts
>(e.g. recipient validation tools) did not fare as well, and of course we
>knew that inc would truncate (and it did because the lines with NUL were
>truncated).
I had an inkling popular MTAs would DTRT.
--Ken
- Re: (Not-so) hypothetical question: What to do about NULs?, (continued)
- Re: (Not-so) hypothetical question: What to do about NULs?, Ken Hornstein, 2023/02/20
- Re: (Not-so) hypothetical question: What to do about NULs?, George Michaelson, 2023/02/20
- Re: (Not-so) hypothetical question: What to do about NULs?, Ken Hornstein, 2023/02/21
- Re: (Not-so) hypothetical question: What to do about NULs?, Paul Fox, 2023/02/21
- Re: (Not-so) hypothetical question: What to do about NULs?, Michael Richardson, 2023/02/21
- Re: (Not-so) hypothetical question: What to do about NULs?, Ken Hornstein, 2023/02/21
- Re: (Not-so) hypothetical question: What to do about NULs?, Andy Bradford, 2023/02/21
- Message not available
- Re: (Not-so) hypothetical question: What to do about NULs?, Ken Hornstein, 2023/02/21
- Re: (Not-so) hypothetical question: What to do about NULs?, Andy Bradford, 2023/02/22
- Message not available
- Re: (Not-so) hypothetical question: What to do about NULs?,
Ken Hornstein <=
- Re: (Not-so) hypothetical question: What to do about NULs?, Andy Bradford, 2023/02/22
- Re: (Not-so) hypothetical question: What to do about NULs?, Michael Richardson, 2023/02/23
- Re: (Not-so) hypothetical question: What to do about NULs?, Andy Bradford, 2023/02/21
- Re: (Not-so) hypothetical question: What to do about NULs?, David Levine, 2023/02/21