ezmlm-idx icon indicating copy to clipboard operation
ezmlm-idx copied to clipboard

ezmlm-manage: -log does not follow same rules as -list, despite the docs

Open jonmz opened this issue 14 years ago • 0 comments

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:

  1. subscription moderation is enabled via list/modsub
  2. remote administration is enable via list/remote However, you currently must enable list/remote to retrieve the Log file of the list with the -log action; having list/modsub does 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));

jonmz avatar Oct 11 '11 20:10 jonmz