I looked at my list archives and saw that the latest post was on Dec 8, 2022. Then, because I wanted to import any posts that happened from 8th to now(), I looked at two posts: 1. https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/... This talks about 'hyperkitty_import *--since=01.01.2022* -l mylist@mydomain my-mbox-file'
- https://mail.python.org/pipermail/mailman-users/2018-July/083607.html Which talks about 'hyperkitty_import *--since='1990-01-01'* -l mylist@mydomain my-mbox-file'
I am concerned about the implication of the date format here, especially because our species from America write their dates differently than the British, even though the British colonized us all :P
Well, I haven't looked at the manpage (--help) before posting this, and I know I should, but even without that, does Mailman speak American or British English when it comes to the date format? :-)
In my case, I have done this: ' hyperkitty_import --since='2022-12-08' -l mylist@mydomain my-mbox-file'
After that I ran:
/opt/mailman/mm/bin/django-admin update_index_one_listmylist@mydomain
And I am hoping that I will have the posts since Dec 8 to Dec 29 showing up in my archives.
However, I am not sure.
Hope someone can explain to the audience.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 12/29/22 05:25, Odhiambo Washington wrote:
I looked at my list archives and saw that the latest post was on Dec 8, 2022. Then, because I wanted to import any posts that happened from 8th to now(), I looked at two posts: 1. https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/... This talks about 'hyperkitty_import *--since=01.01.2022* -l mylist@mydomain my-mbox-file'
- https://mail.python.org/pipermail/mailman-users/2018-July/083607.html Which talks about 'hyperkitty_import *--since='1990-01-01'* -l mylist@mydomain my-mbox-file'
The default without the since= option is to import only those messages from the mbox which are newer than the newest message in the existing archive which is exactly what you want.
I am concerned about the implication of the date format here, especially because our species from America write their dates differently than the British, even though the British colonized us all :P
hyperkitty_import uses python-dateutil <https://dateutil.readthedocs.io/en/stable/> to parse the since date. See <https://dateutil.readthedocs.io/en/stable/parser.html> for info on formats.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Thu, Dec 29, 2022 at 10:39 PM Mark Sapiro <mark@msapiro.net> wrote:
On 12/29/22 05:25, Odhiambo Washington wrote:
I looked at my list archives and saw that the latest post was on Dec 8, 2022. Then, because I wanted to import any posts that happened from 8th to now(), I looked at two posts: 1.
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This talks about 'hyperkitty_import *--since=01.01.2022* -l mylist@mydomain my-mbox-file'
- https://mail.python.org/pipermail/mailman-users/2018-July/083607.html Which talks about 'hyperkitty_import *--since='1990-01-01'* -l mylist@mydomain my-mbox-file'
The default without the since= option is to import only those messages from the mbox which are newer than the newest message in the existing archive which is exactly what you want.
So I ended up using this and I can see the list metrics indicating that the last post was on 29Dec22, but I don't seem to be able to see those posts in the archives. I have compared these two: 1. https://mm3-lists.kictanet.or.ke/archives/list/kictanet@lists.kictanet.or.ke...
- With - https://posts.kictanet.or.ke/ - a WordPress website where I also display those same posts - I am a little confused. Must I re-index for the new posts to display?
hyperkitty_import uses python-dateutil <https://dateutil.readthedocs.io/en/stable/> to parse the since date. See <https://dateutil.readthedocs.io/en/stable/parser.html> for info on formats.
Thanks. Will look at this.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 12/29/22 23:17, Odhiambo Washington wrote:
On Thu, Dec 29, 2022 at 10:39 PM Mark Sapiro <mark@msapiro.net> wrote:
The default without the since= option is to import only those messages from the mbox which are newer than the newest message in the existing archive which is exactly what you want.
So I ended up using this and I can see the list metrics indicating that the last post was on 29Dec22, but I don't seem to be able to see those posts in the archives.
If Postorius list metrics show the last post was 29 Dec, that was a post to the MM3 list and if it was archived, then running hyperkitty_import without a since= option will not import any messages older than that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Fri, Dec 30, 2022 at 9:40 PM Mark Sapiro <mark@msapiro.net> wrote:
On Thu, Dec 29, 2022 at 10:39 PM Mark Sapiro <mark@msapiro.net> wrote:
The default without the since= option is to import only those messages from the mbox which are newer than the newest message in the existing archive which is exactly what you want.
So I ended up using this and I can see the list metrics indicating that
On 12/29/22 23:17, Odhiambo Washington wrote: the
last post was on 29Dec22, but I don't seem to be able to see those posts in the archives.
If Postorius list metrics show the last post was 29 Dec, that was a post to the MM3 list and if it was archived, then running hyperkitty_import without a since= option will not import any messages older than that.
Is there a way to delete the whole archive and re-import afresh? I checked the django-admin options for hyperkitty and did not see any such option.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 12/30/22 23:45, Odhiambo Washington wrote:
Is there a way to delete the whole archive and re-import afresh? I checked the django-admin options for hyperkitty and did not see any such option.
If you are a superuser, there is a red Delete Archive button on the https://example.com/archives/list@example.com page.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Odhiambo Washington