mirmon export format is incorrect #62

Closed
poeml opened this Issue Jun 5, 2015 · 0 comments

1 participant

@poeml
Owner
                                                                                            [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue62

Title    mirmon export format is incorrect
 Priority   bug   Status    resolved
Superseder       Nosy List  fukawi2, poeml
Assigned To      Keywords

msg239 (view) Author: fukawi2 Date: 2010-09-17.11:24:51

mb export --format=mirmon currently produces 4 columns:
http us http://repo.fukawi2.nl/archserver/ fukawi2@example.com
ftp us ftp://repo.fukawi2.nl/archserver/ fukawi2@example.com
http fr http://repo.archserver.fr/ faelar@example.com
http se http://www.gishten.com/pub/archserver/ gishten@example.com

The first column is not required for current version (2.3) of mirmon.

msg240 (view) Author: fukawi2 Date: 2010-09-17.11:25:49

Workaround is to do:
mb export --format=mirmon | /bin/awk '{ print $2, $3, $4 }' > mirrorlist

msg267 (view) Author: poeml Date: 2010-09-19.03:26:08

mb export can create two different formats now:

root@download # mb export --format=mirmon | tail -2
kz http://mirror.space.kz/openoffice/ mirror@space.kz
kz ftp://mirror.space.kz/openoffice/ mirror@space.kz
root@download # mb export --format=mirmon-apache | tail -2
http kz http://mirror.space.kz/openoffice/ mirror@space.kz
ftp kz ftp://mirror.space.kz/openoffice/ mirror@space.kz

Hey, and now that reading the man page of mirmon-2.3. Turns out that Henk had very similar
thoughts at some time :-) Look at this option:

     Two formats are supported :

     * plain : lines like
           us http://www.tux.org/ [email] ...
           nl http://apache.cs.uu.nl/dist/ [email] ...
           nl rsync://archive.cs.uu.nl/apache-dist/ [email] ...

     * apache : lines like those in the apache mirrors.list
           ftp  us ftp://ftp.tux.org/pub/net/apache/dist/ user@tux.org ...
           http nl http://apache.cs.uu.nl/dist/ user@cs.uu.nl ...

     Note that in style 'plain' the third item is reserved for an optional email address :

the site's contact address.

     Specify the required format with 'list_style' (see below).  The default style is

'plain'.

So it turns out that mirmon can use two formats, and the default has changed recently.

Now the default matches again with the one of mb export.

The fix is in trunk, r8145.
http://svn.mirrorbrain.org/viewvc/mirrorbrain?view=revision&revision=8145

History
         Date          User   Action             Args
                                     status: chatting -> resolved
2010-09-19 03:26:09 poeml   set    nosy: + poeml
                                     messages: + msg267
2010-09-17 11:25:49 fukawi2 set    status: unread -> chatting
                                     messages: + msg240
2010-09-17 11:24:52 fukawi2 create

(end of migrated issue)
@poeml poeml added bug resolved labels Jun 5, 2015
@poeml poeml closed this Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment