Hello,
I finially could reproduce my last 'From' problem in the indexes:
mhonarc -outdir one-mail -mbox one-mail.mbox
mhonarc -outdir one-mail -mbox -add < one-mail.mbox
Gives:
-------------------- snip ----------------------------------------
Mail Index
Thread Index
o From:
* test msg-id header
o From: Achim Bohnet
<ach(_at_)rosat(_dot_)mpe-garching(_dot_)mpg(_dot_)de>
Mail converted by MHonArc 1.1.0+
--------------------- snap ---------------------------------------
-add's test for duplicate mail is wrong. The result is that
empty fields (date, from ...) are saved in .mhonarc.db
(and therefore empty fields are writen to the indexes).
This little patch fixed it for me (I'm not sure if the >= 0
test is still necessary):
--- ../../bin/mhonarc5 Thu Jan 4 23:52:01 1996
+++ mhonarc5 Mon Jan 8 13:17:34 1996
@@ -291,7 +291,7 @@
($index,$from,$date,$sub,$header) =
&read_mail_header($handle, *mesg, *fields);
- if ($index >= 0) {
+ if ($index != '' && $index >= 0) {
($From{$index},$Date{$index},$Subject{$index}) =
($from,$date,$sub);
Achim