I've recently migrated from Mailman 2 to Mailman 3 but I'm setting up Hyperkitty just now. I imported the old mbox and that worked fine but now I'm missing the mails in the time between Mailman 3 started working and now: mailman config reports
[paths.custom] var_dir: /opt/mailman/var
But
root@mm:/opt/mailman/var# find . . [OMISS] ./archives
Where are the e-mails? Can I import them into Hyperkitty?
Thanks, Marco
On 8/10/20 7:44 AM, Marco Marinello wrote:
I've recently migrated from Mailman 2 to Mailman 3 but I'm setting up Hyperkitty just now. I imported the old mbox and that worked fine but now I'm missing the mails in the time between Mailman 3 started working and now: mailman config reports
[paths.custom] var_dir: /opt/mailman/var
But
root@mm:/opt/mailman/var# find . . [OMISS] ./archives
Where are the e-mails? Can I import them into Hyperkitty?
If the prototype archiver was enabled for the list, the message should be in maildir format in /opt/mailman/var/archives/prototype/list@example.com/
If the prototype archiver was not enabled and the messages aren't there
(which appears to be the case if I understand your find
), they are
only in the list member's mailboxes if they haven't been deleted.
If you have the maildir messages, you can make a mbox containing the messages an import it into HyperKitty, but if there are newer message in Hyperkitty, you need to specify --since to hyperkitty_import to import messages older that the newest in the HyperKitty archive.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
thank you. I now have 2 problems.
- If I add to the mailman.cfg file the Hyperkitty part, Mailman recieves the emails from the smtp but won't send out anything; [archiver.hyperkitty] class: mailman_hyperkitty.Archiver enable: yes configuration: /opt/mailman/hyperkitty.cfg
and /opt/mailman/hyperkitty.cfg [general] base_url: http://hyperkitty.my.org:8010
# Shared API key, must be the identical to the value in HyperKitty's # settings. api_key: daadsdsaasdadssda
- Even adding prototype enable yes won't save anything to the archives. [archiver.prototype] enable: yes
My main goal is to setup hyperkitty though.
Thanks, Marco
On 8/11/20 10:54 AM, Marco Marinello wrote:
Hi Mark,
thank you. I now have 2 problems.
- If I add to the mailman.cfg file the Hyperkitty part, Mailman recieves the emails from the smtp but won't send out anything;
There should be error messages with tracebacks in mailman.log for this issue.
- Even adding prototype enable yes won't save anything to the archives. [archiver.prototype] enable: yes
And this one too.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Oh, thanks! It seems like mailman_hyperkitty module was missing. Let me have some more check tomorrow.
Thanks in advance, Marco
Thank you, Mark, it worked. Hyperkitty is now successfully archiving. I submitted https://gitlab.com/mailman/hyperkitty/-/merge_requests/276 to better document this dependency. Maybe it could just be added to Mailman's requirements.txt.
I tried to import the missing mails, unsuccessfully. I saved the .eml files from Thunderbird and then did cat * >> ../missing.mbox then, on the Hyperkitty server, python3 manage.py hyperkitty_import -l my@list.org --since 2020-07-20 ~/missing.mbox python3 manage.py update_index_one_list my@list.org
but any new message appeared. May you give me a hint?
Thanks again, Marco
On 8/12/20 11:37 AM, Marco Marinello wrote:
Thank you, Mark, it worked. Hyperkitty is now successfully archiving. I submitted https://gitlab.com/mailman/hyperkitty/-/merge_requests/276 to better document this dependency. Maybe it could just be added to Mailman's requirements.txt.
OK.
I tried to import the missing mails, unsuccessfully. I saved the .eml files from Thunderbird and then did cat * >> ../missing.mbox
This will not make a .mbox because the 'From ' message separators will be missing. Each message has to have an initial line of the form
From user@example.com Ddd Mmm dd hh:mm:ss yyyy
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Marco Marinello
-
Mark Sapiro