[pmwiki-users] Importing Mail or Mail Archive

Kathryn Andersen kat_lists at katspace.homelinux.org
Thu Dec 14 15:18:02 CST 2006


On Thu, Dec 14, 2006 at 02:01:00PM -0500, Vince Admin Account wrote:
> There has been a discussion and a PITS entry about mailing to pmwiki.
> Perhaps there is a simple way to do what I would like to do, but I  
> couldn't find a cookbook entry.
> The minimum I guess that I need to do is to take a mail archive (ok,  
> I could break into individual messages) and
> make each message a wiki page, with a more or less reasonable markup  
> for the headers.
> Is this difficult to do? Or is it planned?

Well, if you have a mail archive that you want to display in a wiki, as
an interim measure, you might be able to use the IncludeUpload[1] recipe
to include the mail messages without actually converting them into wiki
pages.

You can use txt2html[2] to convert the messages to HTML (it has a "mail"
mode which should treat the headers right) -- the IncludeUpload recipe
can do such conversions on the fly.  And you wouldn't have to move the
mail archive (if it was already in individual messages on the webserver)
because IncludeUpload can also deal with files on the webserver (they
don't *have* to be in the PmWiki uploads directory).

If you really wanted the messages to be in wiki format, you could
convert them to HTML and then use HTML::WikiConverter[3]
to convert them to Wiki markup.

You would have to do it all by hand, though, unless you wrote yourself a
script.

Another, probably better, program for converting mail archives into HTML
is MHonArc[4], since it's oriented towards mail archives (rather than
being a generic text-to-HTML converter); it converts whole mailboxes to
sets of HTML files in a directory.   That still doesn't cover the "make
them into wiki pages" problem; that would still have to be done by hand,
whether you use WikiConverter or IncludeUpload.

I vaguely recall someone mentioning that they had written a Perl module
for accessing PmWiki pages (via the filesystem) but I have no idea if
the module is actually available anywhere.  (Someone?  Please?)

[1] http://www.pmwiki.org/wiki/Cookbook/IncludeUpload
[2] http://search.cpan.org/~rubykat/txt2html-2.44/
[3] http://search.cpan.org/~diberri/HTML-WikiConverter-0.61/
[4] http://www.mhonarc.org/

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe




More information about the pmwiki-users mailing list