ezmlm-idx
ezmlm-idx copied to clipboard
ezmlm-manage: -log does not follow same rules as -list, despite the docs
From ezmlm-manage.1:
If action is -log, ezmlm-manage will reply with the contents of the Log file with the same access restrictions as for the -list action.
Given a list that has enabled list/modcanlist (or calls ezmlm-manage with -l), one of the following two conditions must be true to allow retrieval of the subscriber list with the -list action:
- subscription moderation is enabled via
list/modsub - remote administration is enable via
list/remoteHowever, you currently must enablelist/remoteto retrieve the Log file of the list with the-logaction; havinglist/modsubdoes not work, so it's not true that both actions have "the same access restrictions".
From do_list in ezmlm-manage.c:
if (!flaglist || (modsub.s == 0 && remote.s == 0))
strerr_die2x(100,FATAL,MSG(ERR_NOT_AVAILABLE));
From do_log in ezmlm-manage.c:
if (!flaglist || remote.s == 0)
strerr_die2x(100,FATAL,MSG(ERR_NOT_AVAILABLE));