Steffen Nurpmeso <stef...@sdaoden.eu> wrote:

> |> And sorry for not trying out your OpenBSD mailx patch,
> |
> |That was just a newbie exercise.  If I were skilled in C to make of that
> |a patch I'd do more now than just reporting you the bug.
> 
> Hmm.  A sane implementation would surely collect the entire line,
> and then work the entire line with the knowledge of what header we
> generate data for.  Only like that length limits can be satisfied
> and adhered to gracefully, only like that you can be sure that
> multibytes are not broke up.  But that not a problem on UTF-8 only
> OpenBSD, UTF-8 synchronizes itself since all trailing bytes have
> the high bit set.  S-nail does not yet to it like that.

Now that you mention openbsd mailx.  As a unix like tool, it's simple
and powerful since it lets you pipe.  The functionality that would let
it survive to today bloated, predictable, secure (accepted as "sane")
world is making it able to handle *any* header added by the user.  I
wrote that encoder in C only because I'm wanting to learn C, but I
could've chose to write a shell script, taking advantage of the other
simple and powerful unix tools at hand.  Telling your send.sh script,
besides to encode, to add Content-Type and Content-Transfer-Encoding
lines would be trivial.

Another example.  One of the hundred features added in the Nail version
is the threaded view.  But messages that lack of Message-ID,
In-Reply-To, References, etc. (as the ones sent from traditional mailx),
*get off of existence* until you change to the traditional not threaded
view.  The feature that would make mailx capable to handle threads is
also the one I mentioned above.  Then adding to my send.sh a Message-ID
with a time-date stamp and domain name string would be trivial too.

One feature.  Of course judging in the context and functionality this
tool was intended for.  Context (today known as "off-topic") is
important.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
__________________________________
S-nail-users@lists.sourceforge.net

Reply via email to