{"id":491,"date":"2006-02-25T18:36:17","date_gmt":"2006-02-25T18:36:17","guid":{"rendered":"http:\/\/idiolect.truth.posiweb.net\/notes\/?p=491"},"modified":"2006-02-25T18:36:17","modified_gmt":"2006-02-25T18:36:17","slug":"recovering-thunderbird-mail","status":"publish","type":"post","link":"https:\/\/idiolect.org.uk\/notes\/2006\/02\/25\/recovering-thunderbird-mail\/","title":{"rendered":"recovering thunderbird mail"},"content":{"rendered":"<p>I screwed up my email because, using Thunderbird, i didn&#8217;t <a href=\"http:\/\/kb.mozillazine.org\/Compacting_folders\">compact my inbox folder regularly<\/a>. Combined with an old version of TB which didn&#8217;t prompt me to do this, it was all a bit disasterous. Anyway, I wrote this Matlab script to take all the deleted but not removed mails from a mailbox file and make them undeleted\/visible again. If this doesn&#8217;t make sense, either read about <a href=\"http:\/\/kb.mozillazine.org\/Disappearing_mail\">disappearing mail<\/a> and <a href=\"http:\/\/forums.mozillazine.org\/viewtopic.php?p=442063#442063\">recovering corrupted folders in Thunderbird<\/a> or just be grateful that you don&#8217;t need to know<\/p>\n<blockquote><p>\n<tt><\/p>\n<p>%use this at your own risk!<br \/>\nfid=fopen('In_box'); % In_box is my mailfile<br \/>\nfid2=fopen('In_box_new', 'wt'); % In_box_new is the new mailfile<br \/>\nkey=['X-Mozilla-Status:'];<br \/>\nwhile feof(fid)==0<br \/>\n    tline = fgetl(fid);<br \/>\n    if ~ischar(tline),   break,   end<br \/>\n    if isempty(regexp(tline,key))==0;<br \/>\n        tline=['X-Mozilla-Status: 0011'];<br \/>\n    end<\/p>\n<p>    tline=[tline '\\n'];<br \/>\n    fprintf(fid2,tline);<br \/>\nend<br \/>\nfclose(fid);<br \/>\nfclose(fid2);<br \/>\n<\/tt>\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I screwed up my email because, using Thunderbird, i didn&#8217;t compact my inbox folder regularly. Combined with an old version of TB which didn&#8217;t prompt me to do this, it was all a bit disasterous. Anyway, I wrote this Matlab script to take all the deleted but not removed mails from a mailbox file and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-491","post","type-post","status-publish","format-standard","hentry","category-technical-notes"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5KQtW-7V","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/posts\/491"}],"collection":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":0,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"wp:attachment":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}