Broken Cryptographic Signatures in KMail
Hello! This is my first post in this forum. I'm primarily a Gentoo user now, but I have been using various Linux distributions since 2003. openSUSE at first, and lots of others (Ubuntu, Fedora, Debian, Manjaro, etc.) along the way. I currently have openSUSE LEAP 15.3, openSUSE Tumbleweed, KDE Neon (based on Ubuntu 20.04), two versions of Gentoo Linux (one with OpenRC, one with systemd), and Artix installed on my hard drive. Plus Windows 10, which I rarely use. I've got a DELL XPS8930 with 8 cpu cores and 16 GB of RAM. ~1 Terabyte of hard disk drive space. Also a pretty quick (225 Mbps) internet connection -- fiber optic cable / ethernet.
I'm also involved with KDE as a documentation writer. I'm an old guy (retired) with lots of programming experience on IBM mainframes, mostly in assembly language. I'm trying to learn more about C++ as time permits. I have used a few other DE's, but mostly I stick with the KDE Plasma desktop ... it's familiar, and I've been using it for a long time.
Enough about me. On to the problem at hand. There is a bug in KMail that arose (for me) last November. I have filed bug reports at KDE https://bugs.kde.org/show_bug.cgi?id=439958 and also at Gentoo https://bugs.gentoo.org/800689. This bug showed up in lots of distros, but has generally been absent from ARCH-based distributions. For example, up until a few days ago I had a copy of Manjaro Linux running on my machine (I substituted Artix for Manjaro on Sunday, 25 July). That version of KMail always worked flawlessly. So did the version of KMail I installed from Artix. Until yesterday afternoon. See the screenshots attached. The first one (sent at 11:32 am CDT) has a good signature. The second one (sent at few hours later, at 5:46 pm) has a broken signature. Here was the sequence of events.
1. I booted into Artix Linux at 11:01 am CDT (verified via sddm.log file)
2. I started a couple of applications -- specificaly, KMail and Firefox.
3. I did a full system upgrade (pacman -Syu) starting at 11:03:48
4, I sent a message to my friend Jed (first screenshot, attached). The signature was valid.
5. I logged out of Artix at 11:33:50 am CDT (sddm.log), then logged in again at 5:09 pm.
6. This time, when I sent a message, the signature was broken (second screenshot).
Now it is true that I made some configuration changes to KMail before I sent the second message. But I don't think those configuration tweaks could have posssibly affected the cryptographic signature. I have lots of examples of both valid and broken crypto signatures, both with and without my avatar embeddeed as a "FACE" header, for instance. I think it's much more likely that one or more of the programs that were replaced by "pacman- -Syu" caused the broken signature. Here is some output from the "pacman.log" file (/var/log/pacman.log). I haven't yet checked wich packages came from which repository ... I'll try to get to that soon.
[2021-07-28T11:03:48-0500] [PACMAN] Running 'pacman -Syu'
[2021-07-28T11:03:48-0500] [PACMAN] synchronizing package lists
[2021-07-28T11:03:52-0500] [PACMAN] starting full system upgrade
[2021-07-28T11:07:01-0500] [PACMAN] Running 'pacman -Syu'
[2021-07-28T11:07:01-0500] [PACMAN] synchronizing package lists
[2021-07-28T11:07:03-0500] [PACMAN] starting full system upgrade
[2021-07-28T11:07:46-0500] [ALPM] transaction started
[2021-07-28T11:07:53-0500] [ALPM] removed jack (0.125.0-9)
[2021-07-28T11:07:53-0500] [ALPM] upgraded b43-fwcutter (019-3 -> 019-3.1)
[2021-07-28T11:07:53-0500] [ALPM] upgraded libldap (2.4.59-1 -> 2.4.59-2)
[2021-07-28T11:07:53-0500] [ALPM] upgraded llvm-libs (12.0.1-1 -> 12.0.1-2)
[2021-07-28T11:07:53-0500] [ALPM] upgraded libnghttp2 (1.43.0-1 -> 1.44.0-1)
[2021-07-28T11:07:53-0500] [ALPM] upgraded bluedevil (1:5.22.3-1 -> 1:5.22.4-1)
[2021-07-28T11:07:53-0500] [ALPM] upgraded kdecoration (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:53-0500] [ALPM] upgraded breeze (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:53-0500] [ALPM] upgraded breeze-gtk (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded dbus-python (1.2.16-4 -> 1.2.18-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded drkonqi (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded esysusers (249.2-1 -> 249.2-2)
[2021-07-28T11:07:54-0500] [ALPM] upgraded etmpfiles (249.2-1 -> 249.2-2)
[2021-07-28T11:07:54-0500] [ALPM] upgraded ipw2100-fw (1.3-10 -> 1.3-10.1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded ipw2200-fw (3.1-8 -> 3.1-8.1)
[2021-07-28T11:07:54-0500] [ALPM] installed celt (0.11.3-4)
[2021-07-28T11:07:54-0500] [ALPM] upgraded zita-alsa-pcmi (0.3.2-3 -> 0.3.2-3.1)
[2021-07-28T11:07:54-0500] [ALPM] installed jack2 (1.9.19-2)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kactivitymanagerd (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kde-cli-tools (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kde-gtk-config (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded xvidcore (1.3.7-2 -> 1.3.7-2.1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded libksysguard (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded ksystemstats (5.22.2.1-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded milou (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kscreenlocker (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kwayland-server (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kwin (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded plasma-integration (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded libkscreen (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded plasma-workspace (5.22.3-1.1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded systemsettings (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kgamma5 (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded khotkeys (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kinfocenter (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kmenuedit (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kscreen (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded ksshaskpass (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kwallet-pam (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kwayland-integration (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded kwrited (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded libid3tag (0.15.1b-11 -> 0.15.1b-11.1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded man-pages (5.12-1 -> 5.12-2)
[2021-07-28T11:07:54-0500] [ALPM] upgraded perl-xml-namespacesupport (1.12-4 -> 1.12-4.1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded perl-xml-sax-base (1.09-4 -> 1.09-4.1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded perl-xml-sax (1.02-1 -> 1.02-1.1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded poppler (21.07.0-2 -> 21.07.0-3)
[2021-07-28T11:07:54-0500] [ALPM] upgraded poppler-qt5 (21.07.0-2 -> 21.07.0-3)
[2021-07-28T11:07:54-0500] [ALPM] upgraded plasma-browser-integration (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:54-0500] [ALPM] upgraded polkit-kde-agent (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:55-0500] [ALPM] upgraded plasma-desktop (5.22.2.1-1 -> 5.22.4-1)
[2021-07-28T11:07:55-0500] [ALPM] upgraded plasma-nm (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:55-0500] [ALPM] upgraded plasma-pa (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:55-0500] [ALPM] upgraded poppler-glib (21.07.0-2 -> 21.07.0-3)
[2021-07-28T11:07:55-0500] [ALPM] upgraded powerdevil (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:55-0500] [ALPM] upgraded sddm-kcm (5.22.3-1 -> 5.22.4-1)
[2021-07-28T11:07:57-0500] [ALPM] transaction completed
[2021-07-28T11:07:57-0500] [ALPM] running '20-sysusers.hook'...
[2021-07-28T11:07:59-0500] [ALPM] running '30-tmpfiles.hook'...
[2021-07-28T11:07:59-0500] [ALPM] running 'dbus-reload.hook'...
[2021-07-28T11:08:00-0500] [ALPM-SCRIPTLET] * Reloading D-BUS messagebus config ... [ ok ]
[2021-07-28T11:08:00-0500] [ALPM] running 'gtk-update-icon-cache.hook'...
[2021-07-28T11:08:01-0500] [ALPM] running 'update-desktop-database.hook'...
[2021-07-28T11:08:01-0500] [ALPM] running 'update-mime-database.hook'...
If anybody has an idea which package is most likely the culprit, I'm all ears. Thanks!