<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">Out of 71k in "All Messages"<br>
There are 61k are in a Submailbox where I have condition: <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">X-Envelope-To</code> -> <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">exists</code><br>
= araound 85%</p>
<p dir="auto">It seems some Mailer "destruct" many recipients or mailing lists from the <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">to</code> into the "real" e-mail where it is delivered to.</p>
<p dir="auto">I just found it because I inspected a Mail where I did not see an <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">to</code> header.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">I don't think you can get the simple Search box to search non-standard headers. You can make it search all text and "common" headers, but this one isn't common.</p>
</blockquote>
<p dir="auto">But it would be nice to have some settings to include some more headers to be indexed. Maybe somehow with <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">defaults write</code></p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">Some of them are don't have a to: header</p>
</blockquote>
<p dir="auto">Technically not wrong if at one time it had a Bcc.</p>
</blockquote>
<p dir="auto">But the problem: with the normal search I can not find them in the mails - because the only place where it can be found a match with an eMail is in the <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">x-envelope-to</code></p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">If you pull down the menu with header names, you will see "Other..." at the very end.</p>
</blockquote>
<p dir="auto">I also found it when I put this in the search box: <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">X-Envelope-to: myname@mydomain.com</code></p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">I would also like to see this header as a line in the mail view.</p>
</blockquote>
<p dir="auto">Not a lot of people would find that useful, given the general rarity of that specific header...</p>
</blockquote>
<p dir="auto">If it is so rare, then nobody get hurt when it is included. When the header is not available then the line does not show up (like the missing line when there is no <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">to:</code> header)</p>
<p dir="auto">For me it would be also ok to add this setting with a <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">defaults write</code> to my mail mate setup</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">However, what would be great is if there was a better way to select which headers are in the standard displayed set.</p>
</blockquote>
<p dir="auto">I agree, a generic setting would be nice to define which additional headers should be shown in the message view.</p>
<p dir="auto">On 6 Mar 2024, at 17:56, Bill Cole wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">On 2024-03-06 at 04:21:38 UTC-0500 (Wed, 06 Mar 2024 10:21:38 +0100)<br>
Michael Nietzold <a href="mailto:mailmate@lists.freron.com" style="color: #777777;">mailmate@lists.freron.com</a><br>
is rumored to have said:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">I have some spam mails which uses the <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">X-Envelope-to:</code> header</p>
</blockquote>
<p dir="auto">Can you quantify that? I see none in a corpus of a half-million messages going back to the 90's. But which headers are in your mail is an issue very much dependent on who your mailbox provider is.</p>
<p dir="auto">The leading "X-" tells you that this is a header that someone thought was nice and invented on their own, and never changed to remove the X. You cannot rely on its presence or consistency unless you know who has decided to put that on some mail. Simply "Envelope-to" also exists on a tiny number of messages in the wild, and "Original-Recipient" is actually standardized (<a href="https://www.rfc-editor.org/rfc/rfc3798.html#section-2.3" style="color: #777777;">https://www.rfc-editor.org/rfc/rfc3798.html#section-2.3</a>.) but is not widespread. Rather more widely implemented is the "X-Original-To" header which is implemented in multiple MTA/MDAs.</p>
<p dir="auto">My guess is that the "X-Envelope-to" would logically hold the same meaning as those, but who really knows. It only makes sense to add such a header on final delivery or when a MTA modifies a SMTP envelope recipient.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">Some of them are don't have a <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">to:</code> header</p>
</blockquote>
<p dir="auto">Technically not wrong if at one time it had a Bcc.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">If I just search in the mail mate search box it not find this emails. I need explicit use  <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">X-Envelope-to: myname@mydomain.com</code> to find it.</p>
</blockquote>
<p dir="auto">MailMate can search on any header, even those that only exist in one message, through the full search bar that you get to with the Search button. If you pull down the menu with header names, you will see "Other..." at the very end. Select that and you will get a full picker that allows you to select any header and optionally include them in the pull-down menu.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">What can I do that the normal search also include the <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">X-Envelope-to:</code> header?</p>
</blockquote>
<p dir="auto">I don't think you can get the simple Search box to search non-standard headers. You can make it search all text and "common" headers, but this one isn't common.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">I would also like to see this header as a line in the mail view.</p>
</blockquote>
<p dir="auto">Not a lot of people would find that useful, given the general rarity of that specific header...</p>
<p dir="auto">However, what would be great is if there was a better way to select which headers are in the standard displayed set. E.g. I almost always want to know what the Reply-To header is if it exists and there are mailing lists I am on which put the list address in the From header, moving the real From into some other header (often Reply-To) to allow them to add their own DKIM+DMARC authentication. I would like to see MM have a simple way to pick additional headers to show, because which ones are useful can be very site-specific and user-specific.</p>
<p dir="auto">--<br>
Bill Cole<br>
<a href="mailto:bill@scconsult.com" style="color: #777777;">bill@scconsult.com</a> or <a href="mailto:billcole@apache.org" style="color: #777777;">billcole@apache.org</a><br>
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)<br>
Not Currently Available For Hire</p>
<hr style="border: 0; height: 1px; background: #333; background-image: linear-gradient(to right, #ccc, #333, #ccc);">
<p dir="auto">mailmate mailing list<br>
<a href="mailto:mailmate@lists.freron.com" style="color: #777777;">mailmate@lists.freron.com</a><br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color: #777777;">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote>

</div>
</div>
</body>

</html>