From cd99255e288c129c2d71ce5862d30a079fa08dde Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 26 Jun 2009 20:47:41 +0000 Subject: [PATCH] Delete autoreply file --- filter/CHANGELOG | 2 ++ filter/filter-lib.pl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/filter/CHANGELOG b/filter/CHANGELOG index 614cfa928..927d0b0c9 100644 --- a/filter/CHANGELOG +++ b/filter/CHANGELOG @@ -22,3 +22,5 @@ Autoreply messages containing non-ASCII characters are now properly quoted-print ---- Changes since 1.400 ---- Filters that deliver to mbox-format folders now have locking enabled. Creation of filters that match headers is now less error-prone, due to a new menu for selecting if it should match the start, end or any part of the header. +---- Changes since 1.410 ---- +When an autoreply is deleted, the underlying message file is deleted too. diff --git a/filter/filter-lib.pl b/filter/filter-lib.pl index 66ea734b4..b2ae13050 100644 --- a/filter/filter-lib.pl +++ b/filter/filter-lib.pl @@ -282,6 +282,9 @@ sub delete_filter local ($filter) = @_; &procmail::delete_recipe($filter->{'recipe'}); &setup_forward_procmail(); +if ($filter->{'actionreply'} && !-d $filter->{'actionreply'}) { + &unlink_file($filter->{'actionreply'}); + } } # swap_filters(&filter1, &filter2)