ソースを参照

set default MaxSize to 0 (unlimited)

invert test for password being set after getpass() call (Magnus Jonsson
<bigfoot@acc.umu.se>)
Michael Elkins 24 年 前
コミット
5c08b1c4bd
1 ファイル変更2 行追加2 行削除
  1. 2 2
      main.c

+ 2 - 2
main.c

@@ -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);