From: Tom C. <tom...@us...> - 2004-08-26 00:12:12
|
Update of /cvsroot/qmailadmin/qmailadmin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3400 Modified Files: Tag: stable-1_2 ChangeLog alias.c Log Message: stop displaying aliases that are really ezmlm mailing list owner addresses (non-valias systems) Index: alias.c =================================================================== RCS file: /cvsroot/qmailadmin/qmailadmin/alias.c,v retrieving revision 1.4.2.6 retrieving revision 1.4.2.7 diff -u -d -r1.4.2.6 -r1.4.2.7 --- alias.c 25 Aug 2004 23:58:56 -0000 1.4.2.6 +++ alias.c 26 Aug 2004 00:12:03 -0000 1.4.2.7 @@ -188,6 +188,12 @@ alias_name[j] = mydirent->d_name[i] == ':' ? '.' : mydirent->d_name[i]; } alias_name[j] = 0; + + /* until there's a better solution, assume that all aliases ending + * with "-owner" are ezmlm lists and should be ignored. + */ + if (strcmp ("-owner", &alias_name[j-6]) == 0) continue; + memset(TmpBuf2, 0, sizeof(TmpBuf2)); fgets(TmpBuf2, sizeof(TmpBuf2), fs); alias_name_from_command = dotqmail_alias_command(TmpBuf2); Index: ChangeLog =================================================================== RCS file: /cvsroot/qmailadmin/qmailadmin/ChangeLog,v retrieving revision 1.15.2.17 retrieving revision 1.15.2.18 diff -u -d -r1.15.2.17 -r1.15.2.18 --- ChangeLog 25 Aug 2004 23:58:56 -0000 1.15.2.17 +++ ChangeLog 26 Aug 2004 00:12:02 -0000 1.15.2.18 @@ -9,6 +9,10 @@ Tom Collins - Before considering an alias/forward to be a 'blackhole', make sure it's only a single line. + - Ignore .qmail-alias files if 'alias' ends in '-owner'. We assume + it's for a mailing list and isn't an alias. Note that this only + affects systems that don't store aliases in the valias table and + reverts to pre-1.2.2 behavior. [992132] 1.2.2 - released 25-Jun-04 |