<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6606&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / EML / MHT Files Convert to RTF: Help Required]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6606</link>
		<description><![CDATA[The most recent posts in EML / MHT Files Convert to RTF: Help Required.]]></description>
		<lastBuildDate>Tue, 14 May 2024 12:34:35 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49935#p49935</link>
			<description><![CDATA[<p>Hi <em>soren</em></p><p>Yeah, I had already looked at finding utilities such as <span class="bbc">pdfunite</span> &amp; may well end up using that. My main reason for NOT going that route is the following phrase in the most recent Order that I&#039;ve received:</p><div class="quotebox"><blockquote><div><p>e. Documents required for a hearing should be in electronic form. PDF format, indexed, paginated and bookmarked.</p></div></blockquote></div><p>It may well be possible to do that with&#160; <span class="bbc">pdfunite</span> but the point for me was that LibreOffice can do it using <a href="https://help.libreoffice.org/7.3/en-GB/text/swriter/guide/globaldoc_howtos.html?&amp;DbPAR=SHARED&amp;System=UNIX" rel="nofollow">Master Documents</a>.</p><p>Also this:</p><div class="quotebox"><blockquote><div><p>f. For guidance on what is required see:- <a href="https://www.judiciary.uk/announcements/general-guidance-on-electronic-court-bundles/" rel="nofollow">https://www.judiciary.uk/announcements/ … t-bundles/</a><br />g. For help in how to do this see <a href="https://st-philips.com/creating-and-using-electronic-hearing-bundles/" rel="nofollow">https://st-philips.com/creating-and-usi … g-bundles/</a></p></div></blockquote></div><p>I&#039;m still in the process of learning how to use Master Documents, and I need to reduce all this new stuff if I&#039;m ever going to get it all sorted in time.</p><p>I&#039;ve made an early test with a Master Document and, frankly, it&#039;s a breeze. There will be lots of detail that will need sorting, but there is a solution in sight by going this route.</p><p>As you say, it needs a quick batch file to sort all those EML files.</p><p>Thanks for your input, <em>soren</em> - a lifesaver.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Tue, 14 May 2024 12:34:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49935#p49935</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49934#p49934</link>
			<description><![CDATA[<p>Or if you already have the .eml files as .pdf files like you said as you printed them off thunderbird then use pdfunite to merge them into one pdf file like so. Just make sure to backup the files first before you do these commands and do them from a different directory.</p><div class="codebox"><pre><code>pdfunite *.pdf out.pdf</code></pre></div><p>pdfunite is part of poppler-utils.</p><p><a href="https://manpages.debian.org/bookworm/poppler-utils/pdfunite.1.en.html" rel="nofollow">https://manpages.debian.org/bookworm/po … .1.en.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (soren)]]></author>
			<pubDate>Tue, 14 May 2024 10:03:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49934#p49934</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49933#p49933</link>
			<description><![CDATA[<p>So once you have converted them all into html files via mhonarc you can batch process them via pandoc. Libre Office Writer is probably not going to make the html files look very good and even worse when exported to pdf.</p><p>This is what i did to 3 of my email files to test. Doing it single file is going to be painful if you have over 100 emails to process, maybe a shell script of some kind could be adapted ??</p><div class="codebox"><pre><code>mhonarc -single 1.eml &gt; 1.html
mhonarc -single 2.eml &gt; 2.html
mhonarc -single 3.eml &gt; 3.html</code></pre></div><div class="codebox"><pre><code>pandoc --pdf-engine=weasyprint -o file.pdf *.html</code></pre></div><p>This gave me a pdf file that was fairly similar to what the html and .eml file should look like and this is those 3 emails exported to one pdf file. Their is probably more switches in pandoc that could be used to format the pdf document better. I didnt use emails with attachments so not sure about that.</p>]]></description>
			<author><![CDATA[dummy@example.com (soren)]]></author>
			<pubDate>Tue, 14 May 2024 09:42:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49933#p49933</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49932#p49932</link>
			<description><![CDATA[<p>I&#039;ve now installed <span class="bbc">mhonarc</span> &amp; used it in anger. It does exactly the job that it professes to do (the following is from <span class="bbc">info mhonarc</span>):</p><div class="codebox"><pre><code>NAME
       mhonarc - convert mail/news messages to HTML

SYNOPSIS
       mhonarc [options] [arguments]

DESCRIPTION
       MHonArc is a Perl program for converting mail, or news, messages into HTML archives.  MHonArc can also be used to convert
       individual messages into HTML documents.

       The documentation for MHonArc is distributed in HTML format.  Due to its size and organization, it is not suited for
       manpage format.  Consult your system administrator for where the documentation has been installed, or see &quot;AVAILABILITY&quot; on
       where you can access the documentation on the web.

&lt;snip&gt;</code></pre></div><p>The following produces a single-page HTML file + saves &quot;pdfwD701WIjT3.pdf&quot; in the same directory (that is the attached PDF in the email). The HTML opens in Writer just fine (I do not think much of the default display choices, but that is a personal issue). The HTML has an embedded link that can open the attachment (no direct use for the PDF bundle):</p><div class="codebox"><pre><code>$ mhonarc -single 2023-05-26-0418.eml &gt; 2023-05-26-0418.html</code></pre></div><p>So, so far <span class="bbc">mhonarc</span> looks to be a viable option.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Tue, 14 May 2024 08:19:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49932#p49932</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49931#p49931</link>
			<description><![CDATA[<p><a href="https://unix.stackexchange.com/questions/38681/opening-eml-files-with-mutt" rel="nofollow">https://unix.stackexchange.com/question … -with-mutt</a><br />looks like an option?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 14 May 2024 08:13:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49931#p49931</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49930#p49930</link>
			<description><![CDATA[<p>Thunderbird uses Firefox to display itself on the screen. That&#039;s how you can be absolutely certain that Firefox can display MHT files (I&#039;ve written my own, and they display fine). I am using firefox-esr 115.10.0esr-1~deb12u1.</p><p>PS<br />Trying to open an EML file in Firefox gives an option to open it in Thunderbird / Save to disk; not helpful. Chromium just displays the text content, and ignores all formatting / embedded content; also not helpful.</p><p>PPS<br />The issue is not to be able to *open* the file. The issue is to be able convert it into a format that LO Writer can open &amp; display.</p><p>Thanks for trying to help.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Tue, 14 May 2024 07:46:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49930#p49930</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49929#p49929</link>
			<description><![CDATA[<p>Have you tried opening them with Chromium? I just tried opening an MHT file in Firefox, but it didn&#039;t work; however, Firefox suggested using Chromium so I tried that and it worked.</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Tue, 14 May 2024 06:41:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49929#p49929</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49927#p49927</link>
			<description><![CDATA[<p>Thanks for that <em>soren</em>. I did investigate Pandoc but it does not mention EML at any point.</p><p>I work under Daedalus:</p><div class="codebox"><pre><code>$ apt search mhonarc
Sorting... Done
Full Text Search... Done
mhonarc/stable 2.6.19-2.2 all
  Mail to HTML converter

$ apt info mhonarc
Package: mhonarc
Version: 2.6.19-2.2
Priority: optional
Section: mail
Maintainer: Jeff Breidenbach &lt;jab@debian.org&gt;
Installed-Size: 7,601 kB
Depends: perl:any
Recommends: libdigest-md5-perl
Tag: implemented-in::perl, interface::commandline, interface::web,
 mail::list, role::program, use::converting, use::organizing,
 use::storing, works-with-format::html, works-with::mail,
 works-with::text
Download-Size: 847 kB
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
Description: Mail to HTML converter
 MHonArc is a Perl mail-to-HTML converter. MHonArc provides HTML mail
 archiving with index, mail thread linking, etc; plus other capabilities
 including support for MIME and powerful user customization features.</code></pre></div><p>I&#039;m about to go to bed, so this waits until tomorrow. Many thanks for taking the time &amp; trouble to help.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Tue, 14 May 2024 00:34:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49927#p49927</guid>
		</item>
		<item>
			<title><![CDATA[Re: EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49926#p49926</link>
			<description><![CDATA[<p>Pandoc might be able to handle this in some way, not sure but worth investigating.</p><p>I did find this program which may help, a Perl mail-to-HTML converter.</p><p><a href="https://www.mhonarc.org/" rel="nofollow">https://www.mhonarc.org/</a> Its in debian repos under bookworm too.<br /><a href="https://packages.debian.org/bookworm/mhonarc" rel="nofollow">https://packages.debian.org/bookworm/mhonarc</a></p><p>So once the emails are converted to html you could build a pdf file from them??</p>]]></description>
			<author><![CDATA[dummy@example.com (soren)]]></author>
			<pubDate>Mon, 13 May 2024 23:32:59 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49926#p49926</guid>
		</item>
		<item>
			<title><![CDATA[EML / MHT Files Convert to RTF: Help Required]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49925#p49925</link>
			<description><![CDATA[<p>I&#039;ve got a large number (101) of .eml files and wish to be able to convert them into .rtf files. My searching throws up a very large number of online websites to convert them (no thanks!) but I cannot find a Linux-friendly method.</p><h5>Reason for Conversion</h5><p>The 101 EML files have been sourced from Thunderbird-hosted emails. I wish to be able ultimately to place each one into a bundle of PDFs for supply to a UK <span class="bbs">District</span> County Court &quot;Document Upload Centre&quot;. The workload for that is:-</p><ul><li><p>EML =&gt; Libreoffice =&gt; PDF</p></li></ul><p>If LO was able to load the EML files as HTML / EHTML (which is essentially what they are) then there would be no need for help, but currently LO loads each EML file as plain text. If I can convert the EML files into RTF files (as one example) then that would fix my problem.</p><p>I&#039;ve actually already got each file also in a PDF format (obtained via Print in Thunderbird), but to easily be able to create a &quot;PDF Bundle&quot; will need to be able to load them into LO Writer.</p><h5>Help</h5><p>EML files were originated by Microsoft and are <a href="https://en.wikipedia.org/wiki/Email#Filename_extensions" rel="nofollow">Plain-Text files in MIME-format</a>. They essentially have the identical format to <a href="https://en.wikipedia.org/wiki/MHTML" rel="nofollow">MHT / MHTML files</a>, which was an early MS-derived format for saving a webpage in a single-page format (it was originated in the days of Internet Explorer).</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Mon, 13 May 2024 22:35:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49925#p49925</guid>
		</item>
	</channel>
</rss>
