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:
parent
0527181f45
commit
5c08b1c4bd
4
main.c
4
main.c
|
@ -293,7 +293,7 @@ main (int argc, char **argv)
|
||||||
global.port = 143;
|
global.port = 143;
|
||||||
global.box = "INBOX";
|
global.box = "INBOX";
|
||||||
global.user = strdup (pw->pw_name);
|
global.user = strdup (pw->pw_name);
|
||||||
global.max_size = 100000;
|
global.max_size = 0;
|
||||||
#if HAVE_LIBSSL
|
#if HAVE_LIBSSL
|
||||||
/* this will probably annoy people, but its the best default just in
|
/* this will probably annoy people, but its the best default just in
|
||||||
* case people forget to turn it on
|
* case people forget to turn it on
|
||||||
|
@ -373,7 +373,7 @@ main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *pass = getpass ("Password:");
|
char *pass = getpass ("Password:");
|
||||||
|
|
||||||
if (pass)
|
if (!pass)
|
||||||
{
|
{
|
||||||
puts ("Aborting, no password");
|
puts ("Aborting, no password");
|
||||||
exit (1);
|
exit (1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user