From: Tom C. <tom...@us...> - 2004-04-24 01:03:16
|
Update of /cvsroot/qmailadmin/qmailadmin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23243 Modified Files: Tag: stable-1_2 ChangeLog alias.c Log Message: Allow user to create a 'blackhole' address by entering '#' as the forwarding address when creating a new alias. Index: alias.c =================================================================== RCS file: /cvsroot/qmailadmin/qmailadmin/alias.c,v retrieving revision 1.4.2.1 retrieving revision 1.4.2.2 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) { Index: ChangeLog =================================================================== RCS file: /cvsroot/qmailadmin/qmailadmin/ChangeLog,v retrieving revision 1.15.2.7 retrieving revision 1.15.2.8 diff -u -d -r1.15.2.7 -r1.15.2.8 --- ChangeLog 5 Apr 2004 10:31:04 -0000 1.15.2.7 +++ ChangeLog 24 Apr 2004 01:03:07 -0000 1.15.2.8 @@ -11,6 +11,10 @@ Zhao Xin - Add Traditional Chinese (zh-cn) translation. + Tom Collins + - Allow user to create a 'blackhole' address by entering "#" as + the forwarding address when creating a new alias. + 1.2.1 - released 10-Feb-04 Tom Collins |