HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
879c0d9
)
* movemail.c [MAIL_USE_POP] (main): Don't use non-portable
author
Jim Blandy
<jimb@redhat.com>
Sun, 30 May 1993 19:26:11 +0000
(19:26 +0000)
committer
Jim Blandy
<jimb@redhat.com>
Sun, 30 May 1993 19:26:11 +0000
(19:26 +0000)
string-handling functions.
lib-src/movemail.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/movemail.c
b/lib-src/movemail.c
index
6a1585f
..
91f926c
100644
(file)
--- a/
lib-src/movemail.c
+++ b/
lib-src/movemail.c
@@
-140,11
+140,14
@@
main (argc, argv)
}
#ifdef MAIL_USE_POP
- if (!
b
cmp (inname, "po:", 3))
+ if (!
strn
cmp (inname, "po:", 3))
{
int status; char *user;
- user = (char *) rindex (inname, ':') + 1;
+ for (user = &inname[strlen (inname) - 1]; user >= inname; user--)
+ if (*user == ':')
+ break;
+
status = popmail (user, outname);
exit (status);
}