diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-25 01:43:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-25 01:43:25 +0000 |
commit | 32e5987510b23d25f2227feb90869eb55ba93753 (patch) | |
tree | a9a409d7df75aff44ea7916be5b9ef91adf2fbbc /driver.c | |
parent | 2e0d9bcd45cb57b86ed2738290b05307116f2101 (diff) | |
download | fetchmail-32e5987510b23d25f2227feb90869eb55ba93753.tar.gz fetchmail-32e5987510b23d25f2227feb90869eb55ba93753.tar.bz2 fetchmail-32e5987510b23d25f2227feb90869eb55ba93753.zip |
POP2 now goes through the generic driver.
svn path=/trunk/; revision=128
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -114,10 +114,6 @@ struct method *proto; goto closeUp; } - /* print the greeting */ - if (outlevel == O_VERBOSE) - fprintf(stderr,"%s greeting: %s\n", protocol->name, buf); - /* try to get authorized to fetch mail */ ok = (protocol->getauth)(socket, queryctl, buf); if (ok == PS_ERROR) @@ -180,14 +176,17 @@ struct method *proto; } /* maybe we delete this message now? */ - if ((number < first && queryctl->flush) || !queryctl->keep) { - if (outlevel > O_SILENT && outlevel < O_VERBOSE) - fprintf(stderr,"flushing message %d\n", number); - else - ; - ok = gen_transact(socket, protocol->delete_cmd, number); - if (ok != 0) - goto cleanUp; + if (protocol->delete_cmd) + { + if ((number < first && queryctl->flush) || !queryctl->keep) { + if (outlevel > O_SILENT && outlevel < O_VERBOSE) + fprintf(stderr,"flushing message %d\n", number); + else + ; + ok = gen_transact(socket, protocol->delete_cmd, number); + if (ok != 0) + goto cleanUp; + } } /* close the mail pipe, we'll reopen before next message */ |