(main) [MAIL_USE_POP]: When a user specifies a
mailbox with "po:mailbox", the mailbox is everything after the "po:" prefix.
This commit is contained in:
parent
222e97c1b9
commit
b311219135
1 changed files with 2 additions and 7 deletions
|
@ -182,14 +182,9 @@ main (argc, argv)
|
|||
#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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue