{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifcmn37d4mrtphgyrllc54pi3xin3emp5fga6uoppjlooxof2xqz4",
"uri": "at://did:plc:uzai4vzxm37suvnjiwfzi63w/app.bsky.feed.post/3mb6ncwbwwlu2"
},
"path": "/posts/email-experiments-image-filtering.html",
"publishedAt": "2026-05-18T04:52:38.933Z",
"site": "https://www.terracrypt.net",
"textContent": "I had a realization the other day that, on almost every email in my inbox, my mail client has a \"show external images\" option. Most email I receive references externally loaded images via HTML. There are good reasons for this (not needing to send a copy of an image in every email on a newsletter) as well as nefarious reasons (the remote server can track where/when you load the image). So most mail clients I've used don't load them by default for obvious privacy reasons.\n\nThis got me thinking about the reverse, though: what email do I receive that does _not_ include external images? And the answer is, mostly, email sent manually by a real human! I'm fairly certain I've never sent an email to another person in my personal life with an externally loaded image in it. When I have, it's been work email with a standard corporate email signature (that I'm sure was being tracked, natch). Mostly, when sending images to someone, they're sent as attachments to the email.\n\nSo I had a realization that, if I wanted to naturally filter email that was sent by hand from email sent from an automated system, this might be a decent proxy for that. Here's the sieve rule I landed on for now:\n\n\n if body :regex \"<img[^>]*src=\\\"https\" { fileinto \"Inbox.Automated\"; }\n\n(Yes, it's typically folly to regex on HTML. This is a simple enough match though that I hope it's fine!)\n\nSo far, after a day or so of usage, it's been shockingly effective. There's enough potentially important stuff in my Automated folder that I will need to check that fairly frequently, but the one email that's made it through this filter into my normal inbox is one sent by hand to a mailman list. Honestly, I'll take it! This makes the volume of email in my normal inbox much much more manageable, and I expect most mail that lands there will be things I actually do want to pay attention to.\n\nProbably you'll want to have another rule that prevents you from running this for email from people in your contacts. I haven't done that yet, but that'll be a natural next step.\n\nThis is part of my December Adventure 2025 series.",
"title": "Email experiments: filtering out external images",
"updatedAt": "2025-12-29T14:10:00.000Z"
}