aboutsummaryrefslogtreecommitdiffstats
path: root/mail/zmailer/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'mail/zmailer/pkg-deinstall')
-rw-r--r--mail/zmailer/pkg-deinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/zmailer/pkg-deinstall b/mail/zmailer/pkg-deinstall
new file mode 100644
index 00000000000..2a5e48ce078
--- /dev/null
+++ b/mail/zmailer/pkg-deinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+if [ "$2" = DEINSTALL ]; then
+cd /var/spool/postoffice
+for d in transport queue; do
+ for i in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z; do for j in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z; do rmdir $d/$i/$j; done; rmdir $d/$i; done
+rmdir $d; done
+for d in router TLSsrvrcache TLSclntcache; do
+ for i in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z; do
+ rmdir $d/$i; done;
+ rmdir $d
+done
+fi