summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client/nmh/files/nmh-1.1-inc-login.patch')
-rw-r--r--mail-client/nmh/files/nmh-1.1-inc-login.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail-client/nmh/files/nmh-1.1-inc-login.patch b/mail-client/nmh/files/nmh-1.1-inc-login.patch
new file mode 100644
index 000000000000..d7c08908bfe0
--- /dev/null
+++ b/mail-client/nmh/files/nmh-1.1-inc-login.patch
@@ -0,0 +1,25 @@
+--- uip/inc.c.orig 2003-10-24 13:17:38.000000000 -0700
++++ uip/inc.c 2004-07-30 19:33:26.699430580 -0700
+@@ -486,8 +486,7 @@
+ * a POP server?
+ */
+ if (inc_type == INC_POP) {
+- if (user == NULL)
+- user = getusername ();
++
+ if ( strcmp( POPSERVICE, "kpop" ) == 0 ) {
+ kpop = 1;
+ }
+@@ -496,6 +495,12 @@
+ else
+ ruserpass (host, &user, &pass);
+
++ /*
++ * Do this _after_ ruserpass, otherwise the login field will be unusable
++ */
++ if (user == NULL)
++ user = getusername ();
++
+ /*
+ * initialize POP connection
+ */