changeset 12442:981986d7d82f

(main) [MAIL_USE_POP]: When a user specifies a mailbox with "po:mailbox", the mailbox is everything after the "po:" prefix.
author Richard M. Stallman <rms@gnu.org>
date Fri, 30 Jun 1995 01:10:20 +0000
parents 597f9723ddf6
children 6e284e77df03
files lib-src/movemail.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/movemail.c	Fri Jun 30 01:07:22 1995 +0000
+++ b/lib-src/movemail.c	Fri Jun 30 01:10:20 1995 +0000
@@ -182,14 +182,9 @@
 #ifdef MAIL_USE_POP
   if (!strncmp (inname, "po:", 3))
     {
-      int status; char *user;
+      int status;
 
-      for (user = &inname[strlen (inname) - 1]; user >= inname; user--)
-	if (*user == ':')
-	  break;
-
-      user++;
-      status = popmail (user, outname);
+      status = popmail (inname + 3, outname);
       exit (status);
     }