{"id":408,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=408"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"recover-email-attributes","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=408","title":{"rendered":"Recover email attributes"},"content":{"rendered":"<p>If you accidentally delete the attributes on your email files (by using tar rather than zip, for example, or by copying them to a non-BFS file system), you&#8217;ll find that it&#8217;s no longer possible to do queries on your email, or to enjoy the drag-and-drop access to attachments that BeOS provides. It also becomes very difficult to find a specific email message without opening up <b>all<\/b> messages, as the default naming scheme for mail messages on BeOS isn&#8217;t very descriptive. [Editor&#8217;s note: that&#8217;s what grep is for. \ud83d\ude42 ]<br \/>\nHowever, there is a solution. You can pass the messages through BeOS&#8216; mail parser and it will recover all of the attributes, including the ones that allow you to drag-and-drop attachments. I recovered about a hundred otherwise-munged email messages this way.<br \/>\nJust launch a Terminal, navigate to the directory containing the messages, and type:<\/p>\n<pre>mail_parser *<\/pre>\n<p>Two caveats: first, the mail_parser opens up the newly-parsed message when it is finished, so if you have BeMail as your default mail program, hundreds of messages to parse mean hundreds of BeMail windows; and second, the mail_parser may mark directories with &#8218;New&#8216; status attributes, which will cause the Deskbar&#8217;s mail Replicant to report the presence of unread mail even when all of your mail is read. To fix this, you&#8217;ll need to delete the unwanted attribute from the command line, with the <a href=\"\/chunga.php?ID=052\">rmattr<\/a> command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you accidentally delete the attributes on your email files (by using tar rather than zip, for example, or by copying them to a non-BFS file system), you&#8217;ll find that it&#8217;s no longer possible to do queries on your email, or to enjoy the drag-and-drop access to attachments that BeOS provides. It also becomes very [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[8],"class_list":["post-408","post","type-post","status-publish","format-standard","hentry","tag-misc"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=408"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/408\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}