set default MaxSize to 0 (unlimited)

invert test for password being set after getpass() call (Magnus Jonsson
<bigfoot@acc.umu.se>)
This commit is contained in:
Michael Elkins 2000-12-22 15:24:55 +00:00
parent 0527181f45
commit 5c08b1c4bd

4
main.c
View File

@ -293,7 +293,7 @@ main (int argc, char **argv)
global.port = 143;
global.box = "INBOX";
global.user = strdup (pw->pw_name);
global.max_size = 100000;
global.max_size = 0;
#if HAVE_LIBSSL
/* this will probably annoy people, but its the best default just in
* case people forget to turn it on
@ -373,7 +373,7 @@ main (int argc, char **argv)
{
char *pass = getpass ("Password:");
if (pass)
if (!pass)
{
puts ("Aborting, no password");
exit (1);