Rebuild Thunderbird popstate ---------------------------- USE AT YOUR OWN RISK, CAVEAT EMPTOR, ASSUMES USER KNOWNS WHAT S/HE IS DOING Simple PHP script to rebuild the Thunderbird's popstate.dat file. Primarily useful when Thunderbird crashes and after starts retrieving all messages that have been kept on the mail server. Default file that will be generated is popstate.dat.GENERATED. If you change this to the popstate.dat file in the appropriate Thunderbird directory, please make sure that Thunderbird is closed, otherwise you might have more problems. Please note that no attempt has been made to make this the best code I ever wrote... NB: Windows support is there, but never tested! Usage ----- usage: rebuild_popstate.php [-d] [-i n] [-s] [-v] [-f file] server [ port ] -c CRLF flag, use when talking to Windows servers -d debug flag -f output filename (if popstate.dat, Thunderbird needs to be closed!) -i ignore the last n messages (for if you don't have them yet) -s use for secure POP3 (SSL/TLS) -v verbose flag License ------- Copyright (c) 2011-2013 Jeroen Derks Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.