* [mlmmj] ezmlm to mlmmj migration - messages
@ 2012-02-18 12:45 MERIGHI Marcus
2012-02-18 20:25 ` Ben Schmidt
2012-02-20 18:28 ` MERIGHI Marcus
0 siblings, 2 replies; 3+ messages in thread
From: MERIGHI Marcus @ 2012-02-18 12:45 UTC (permalink / raw)
To: mlmmj
hello folks,
as the subject already tells I want to migrate from ezmlm (-idx) to
mlmmj.
I do not worry about the subscribers/moderators (there was an thread on
that already) but about the archived mailing list messages. I need them
within mlmmj, taken from ezmlm archive(s).
Some questions that poped up, other suggestions welcome, too!
1) Has anyone already done it? How?
2) Is the message storage just the plain message in mlmmj as it appears
to be in ezmlm?
3) Is there a way to re-index messages just copied from ezmlm-archive to
mlmmj? (depends on the answers to 2)
4) Worst case scenario: request messages from ezmlm with the address
(MAIL FROM:) of the mlmmj mailing list. Does that sound feasible?
Any pointers welcome, thanks in advance,
Marcus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [mlmmj] ezmlm to mlmmj migration - messages
2012-02-18 12:45 [mlmmj] ezmlm to mlmmj migration - messages MERIGHI Marcus
@ 2012-02-18 20:25 ` Ben Schmidt
2012-02-20 18:28 ` MERIGHI Marcus
1 sibling, 0 replies; 3+ messages in thread
From: Ben Schmidt @ 2012-02-18 20:25 UTC (permalink / raw)
To: mlmmj
> 2) Is the message storage just the plain message in mlmmj as it appears
> to be in ezmlm?
Yep. <listdir>/archive/1, <listdir>/archive/2, etc..
> 3) Is there a way to re-index messages just copied from ezmlm-archive to
> mlmmj? (depends on the answers to 2)
Not a provided way, AFAIK. It shouldn't be hard to make even a bash
shell script do it, though (list files ordered by date and iterate them,
incrementing a counter while renaming each file).
The index of the next incoming message is determined by <listdir>/index,
which stores the last-used index I believe. Be sure to update that when
you add messages to the archive.
> 4) Worst case scenario: request messages from ezmlm with the address
> (MAIL FROM:) of the mlmmj mailing list. Does that sound feasible?
You would probably also need to turn off Mlmmj's checking of the To/CC
header (add a tocc tunable). Then it probably works.
Ben.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [mlmmj] ezmlm to mlmmj migration - messages
2012-02-18 12:45 [mlmmj] ezmlm to mlmmj migration - messages MERIGHI Marcus
2012-02-18 20:25 ` Ben Schmidt
@ 2012-02-20 18:28 ` MERIGHI Marcus
1 sibling, 0 replies; 3+ messages in thread
From: MERIGHI Marcus @ 2012-02-20 18:28 UTC (permalink / raw)
To: mlmmj
Hello Ben, all,
mail_ben_schmidt@yahoo.com.au (Ben Schmidt), 2012.02.18 (Sat) 21:25 (CET):
> >2) Is the message storage just the plain message in mlmmj as it appears
> > to be in ezmlm?
> Yep. <listdir>/archive/1, <listdir>/archive/2, etc..
I had another look at ezmlm and it seems it stores the archives as:
<listdir>/archive/1/00-99
<listdir>/archive/2/00-99
<listdir>/archive/N/00-99
So, there's a directory in between.
Apart from that it maintains
authors: <listdir>/archive/authors/aa-zz/<strange_filename>
subjects: <listdir>/archive/subjects/aa-zz/<strange_filename>
threads: <listdir>/archive/threads/YYYYMM
But you are right about mlmmj; a test mailing list reveals the behaviour
you describe.
> >3) Is there a way to re-index messages just copied from ezmlm-archive to
> > mlmmj? (depends on the answers to 2)
>
> Not a provided way, AFAIK. It shouldn't be hard to make even a bash
> shell script do it, though (list files ordered by date and iterate them,
> incrementing a counter while renaming each file).
> The index of the next incoming message is determined by <listdir>/index,
> which stores the last-used index I believe. Be sure to update that when
> you add messages to the archive.
I have no idea whether that one is bash compatible, but it's ksh for
sure:
#!/bin/sh -e
local _ezmlm_dir="${1}"
local _mlmmj_dir="${2}"
_opwd=$(pwd)
cd "${_ezmlm_dir}"
cd archive
_mlmmj_idx=0
_ezmlm_dirs=$(find . -type d -mindepth 1 -maxdepth 1 -name "[0-9]*" | \
cut -d "/" -f 2 | sort -n)
for _ezmlm_dir in ${_ezmlm_dirs}; do
_ezmlm_files=$(find "${_ezmlm_dir}" -type f -mindepth 1 -maxdepth 1 \
-name "[0-9]*" | cut -d "/" -f 2 | sort -n)
for _ezmlm_file in ${_ezmlm_files}; do
_src="${_ezmlm_dir}/${_ezmlm_file}"
_tgt="${_opwd}/${_mlmmj_dir}/archive/${_mlmmj_idx}"
sed s/"run by ezmlm"/"run by mlmmj"/ "${_src}" > "${_tgt}"
print -n "${_mlmmj_idx}" > "${_opwd}"/"${_mlmmj_dir}"/index
_mlmmj_idx=$((_mlmmj_idx + 1))
done
done
cd "${_opwd}"
that works as far as I can see. There's some more work on my side until
I can report final success (i.e. working migrated mailing list).
> >4) Worst case scenario: request messages from ezmlm with the address
> > (MAIL FROM:) of the mlmmj mailing list. Does that sound feasible?
> You would probably also need to turn off Mlmmj's checking of the To/CC
> header (add a tocc tunable). Then it probably works.
thanks for the hint, but since the above (3) appears to work there is no
need to go that route.
bye and thanks, Marcus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-20 18:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-18 12:45 [mlmmj] ezmlm to mlmmj migration - messages MERIGHI Marcus
2012-02-18 20:25 ` Ben Schmidt
2012-02-20 18:28 ` MERIGHI Marcus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox