]> git.pond.sub.org Git - empserver/commit - src/lib/commands/retr.c
Make retr() and lretr() simpler and more robust
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Jul 2008 03:47:55 +0000 (23:47 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 11 Jul 2008 11:18:59 +0000 (07:18 -0400)
commit44e2ef468f456bfad6851f85de0cec5ca3190241
treea8b18e92b8b1a01f99eabf2217b2f620dd9341c5
parent67a9a8d96afb8641ccf46dd8e22b1ae684ca3dd8
Make retr() and lretr() simpler and more robust

The old code recognized group retreat only when the first argument was
on the command line.  Didn't make a difference, because it was only
used when there were at least two arguments on the command line.

The old code relied on rflags being represented as two's complement.

When given an empty retreat path, the old code deleted the retreat
path and set the retreat flags normally.  The new code deletes both.
Neither is nice; it should perhaps keep the retreat path and only set
the flags.
src/lib/commands/retr.c