aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-01 21:47:50 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-01 21:47:50 +0000
commit621035704f4e6b2cb607f0dca46312abe54b0c54 (patch)
treed621f9e5aba156ee381370c0df4cc7660a2d2e47 /driver.c
parent5ef9c343fc4b219f01498be7c88e1fdae67c35ee (diff)
downloadfetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.tar.gz
fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.tar.bz2
fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.zip
Fixes by Matthias Andree.
svn path=/trunk/; revision=3571
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index aa35cfa4..eb34010a 100644
--- a/driver.c
+++ b/driver.c
@@ -632,8 +632,14 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
* now.
*/
- /* tell the UID code we've seen this */
- if (ctl->newsaved)
+ /*
+ * Tell the UID code we've seen this.
+ * Matthias Andree: only register the UID if we could actually
+ * forward this mail. If we omit this !suppress_forward check,
+ * fetchmail will never retry mail that the local listener
+ * refused temporarily.
+ */
+ if (ctl->newsaved && !suppress_delete)
{
struct idlist *sdp;