<!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="plaintext" style="white-space: normal;"><p dir="auto">On 18 Nov 2025, at 17:21, Bill Cole wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">It strikes me as a very trivial "mission." An exported mailbox is just text, so if you have an exported mailbox named 2025.mbox:</p>
<p dir="auto"> grep '^Subject: ' 2025.mbox | grep -o ' .*'</p>
<p dir="auto">Will give you all the subjects without the leading "Subject:" tag</p>
</blockquote><p dir="auto">A little bit fancier. Strips out the filename and avoids a potential shell error for large directories:</p>
<p dir="auto">cd [message-folder]
<br>
find . -name '*.eml' -exec grep -h -m 1 '^Subject: ' {} + | sed 's/Subject: //'</p>
<p dir="auto">Append the following to remove duplicate subjects:
<br>
| sort -su</p>
<p dir="auto">Glenn P. Parker
<br>
glenn.parker@comcast.net</p>
</div>
</div>
</body>
</html>