{"id":1368,"date":"2015-11-15T10:23:03","date_gmt":"2015-11-14T22:23:03","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=1368"},"modified":"2015-11-15T10:24:56","modified_gmt":"2015-11-14T22:24:56","slug":"messed-up-thunderbird-folders-sharks-circling","status":"publish","type":"post","link":"http:\/\/p-s.co.nz\/wordpress\/messed-up-thunderbird-folders-sharks-circling\/","title":{"rendered":"Messed up Thunderbird folders &#8211; sharks circling"},"content":{"rendered":"<p>We&#8217;ve all done it &#8211; messed up something so badly while trying to do something clever we&#8217;d sell our first-born just to get back to where we were (see <a href=\"https:\/\/xkcd.com\/349\/\" target=\"_blank\">https:\/\/xkcd.com\/349\/<\/a>). And if we succeed at merely restoring the status quo, we&#8217;re pitifully grateful.<\/p>\n<p>It all started with trying to find some lost photos that Shotwell couldn&#8217;t find the originals of. Presumably they had been linked to only and then the originals deleted leaving only the reference and the thumbnail behind. So here was the plan:<\/p>\n<ol>\n<li>Identify all email attachments which are images<\/li>\n<li>See if any of them have the same name as the missing images<\/li>\n<li>Open email based on date and sender to recover image<\/li>\n<\/ol>\n<p>The good news is the plan worked for lots of the missing photos. Thanks to Python3, import mailbox, and import email. The bad news was when I opened Thunderbird the next day. The folder I had been working on was missing. So in addition to my missing photos I also had seemingly lost 1.8GB of emails.<\/p>\n<p>tldr; 1) Close TB; 2) rename the missing folder in your file system and delete the .msf version; 3) Open TB; 4) Close TB; restore original name; 5) Open TB &#8211; success? Inspired by <a href=\"http:\/\/kb.mozillazine.org\/Empty_folders\" target=\"_blank\">http:\/\/kb.mozillazine.org\/Empty_folders<\/a><\/p>\n<p>Now back to the original problem. But I should probably run a full backup first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve all done it &#8211; messed up something so badly while trying to do something clever we&#8217;d sell our first-born just to get back to where we were (see https:\/\/xkcd.com\/349\/). And if we succeed at merely restoring the status quo, &hellip; <a href=\"http:\/\/p-s.co.nz\/wordpress\/messed-up-thunderbird-folders-sharks-circling\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[],"class_list":["post-1368","post","type-post","status-publish","format-standard","hentry","category-programming","category-python"],"_links":{"self":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1368"}],"collection":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=1368"}],"version-history":[{"count":3,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1368\/revisions"}],"predecessor-version":[{"id":1371,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1368\/revisions\/1371"}],"wp:attachment":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}