On Mon, Mar 2, 2026 at 10:38 PM Mark Sapiro <[email protected]> wrote:
> On 3/2/26 11:03, Mark Sapiro wrote: > > > > Are there `Exception in "hyperkitty" archiver` messages in mailman.log, > > or if you have set a path: in the [logging.archiver] section of > > mailman.cfg, in that file? > > > Actually, there won't be those messages. The code in question is > < > https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/handlers/decorate.py?ref_type=heads#L74-L86 > > > > The fact the ${hyperkitty_url} is replaced with an empty string > indicates that line 79 does not raise an exception but rather sets > archive_url to the empty string. This is the only way that the > replacement dictionary would contain the key `hyperkitty_url` and if it > didn't contain that key, the resultant footer would contain literally > `${hyperkitty_url}` > > You could try in `mailman shell` > ``` > $ mailman shell -l list.example.com > Welcome to the GNU Mailman shell > Use commit() to commit changes. > Use abort() to discard changes since the last commit. > Exit with ctrl+D does an implicit commit() but exit() does not. > The variable 'm' is the list.example.com mailing list > >>> from mailman.email.message import Message > >>> msg = Message() > >>> msg['Message-ID'] = '<[email protected]>' > >>> for archiver in IListArchiverSet(m).archivers: > ... if archiver.system_archiver.name == 'hyperkitty': > ... print(f'URL: {archiver.system_archiver.permalink(m, msg)}') > ... > ``` > This should print something like > > URL: > > https://example.com/archives/list/[email protected]/message/FMB3KJSE74FUTZBVOUKAHBKOSWZCEFUW/ > > Does it? > Here is the output: ``` (venv) mailman@eu:~$ mailman shell -l [email protected] Welcome to the GNU Mailman shell Use commit() to commit changes. Use abort() to discard changes since the last commit. Exit with ctrl+D does an implicit commit() but exit() does not. The variable 'm' is the [email protected] mailing list >>> from mailman.email.message import Message >>> msg = Message() >>> msg['Message-ID'] = '<[email protected]>' >>> for archiver in IListArchiverSet(m).archivers: ... if archiver.system_archiver.name == 'hyperkitty': ... print(f'URL: {archiver.system_archiver.permalink(m, msg)}') ... URL: https://lists.kictanet.or.ke/archives/list/[email protected]/message/FMB3KJSE74FUTZBVOUKAHBKOSWZCEFUW/ >>> ``` -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] _______________________________________________ Mailman-users mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/[email protected]/message/YMI2JSLPOX7DUZMUZYC56SX6QIT4N2XU/ This message sent to [email protected]
