On Apr 23, 2004, at 7:54 AM, Tom Collins wrote:
On Apr 22, 2004, at 3:32 PM, Nick Twaddell wrote:
Is there anyway to set a qmail alias to #. I know if I add it manually
qmailadmin lists it as "deleted" which is cool. Is there anyway to add new
aliases to deleted via qmailadmin?

Here's the patch. It should apply to 1.2.0 and 1.2.1. It will be in 1.2.2 whenever I get around to releasing it.


diff -u -d -r1.4.2.1 -r1.4.2.2
--- alias.c     2 Feb 2004 00:39:47 -0000       1.4.2.1
+++ alias.c     24 Apr 2004 01:03:07 -0000      1.4.2.2
@@ -546,6 +546,14 @@
     return(-1);
   }

+  if (strcmp (dest, "#") == 0) {
+    if (dotqmail_add_line(forwardname, "#")) {
+       sprintf(StatusMessage, "%s %d\n", get_html_text("150"), 2);
+       return(-1);
+    }
+    return 0;
+  }
+
   /* see if forwarding to a local user */
   if (strstr(dest, "@") == NULL) {
     if (check_local_user(dest) == 0) {


-- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Reply via email to