Editing the raw mail file?

Subject: Editing the raw mail file?

Date: Tue, 09 Jul 2024 23:50:37 +0200

To: notmuch@notmuchmail.org

Cc:

From: Morten Kjeldgaard


Hi, I have ported all om my mail since 1991 into notmuch and I am
thrilled that I can now organize and easily see everything I have been
doing for the last 30+ years.

However, some of the mail messages have wrong information in the RFC822
header, probably because of bad mail delivery agents that were used at
the time.

Especially, I have a whole bunch of mails that are assigned the date
1970-01-01, and when I look in the file itself, it turns out it has the
year 100, which of course was year 2000.

Other messages have a faulty Content-Type: text header, which means the
content is wrapped in [ application/octet-stream ] which is annoying
because the message isn't immediately visible.

It's tedious to use the notmuch CLI client to search for the mail and
then copy/paste the filename, and edit it to correct the date. It would
be so much easier if it were possible to edit the raw file directly in
Emacs. I can use 'V' to view the raw file, and then 'E' to be allowed to
edit it, but Emacs has no idea of what file it is editing.

Is there a way to solve this problem? Notmuch of course already knows
the original filename.

Cheers,
Morten
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: