<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE artikkel PUBLIC "-//infoweb.ntnu.no//DTD Infoweb 1.0//NO" "http://infoweb.ntnu.no/infoweb.dtd">
<artikkel spraak="en">
	<tittel>Restoring INBOX</tittel>
	<forfatter>engmark</forfatter>
	<sammendrag>How to move the contents of the restored inbox to your INBOX file</sammendrag>

	<hoveddel>
		<avsnitt>After your files have been restored, you will have a directory below your home directory called "<uthev>restored_files</uthev>". You can check this by logging on to <uthev>login.stud.ntnu.no</uthev> and typing <kommando>ls -ld restored_files</kommando>. You will get some information about the directory if it exists.</avsnitt>

		<avsnitt>Enter the restored_files directory by typing <kommando>cd restored_files</kommando>. There should be a directory named after the date of restoration, on the form YYYY-MM-DD. Type "ls" to see it, and "cd YYYY-MM-DD" to enter it. In this directory, there should be a directory called <uthev>mail</uthev>; enter it. In the "mail" directory are the different files containing e-mails. The interesting one is usually named <uthev>INBOX</uthev>. When you are certain it exists, you can type <kommando>cd</kommando> to get to the top level of your home directory. To move the e-mail you must type the following command: <kommando>cat ./restored_files/YYYY-MM-DD/mail/INBOX >> ./mail/INBOX</kommando></avsnitt>

		<avsnitt>This appends a copy of the contents of the restored INBOX file to the INBOX file which e-mail programs check for mail. You may find duplicate messages the next time you open the inbox, in addition to the deleted mail.</avsnitt>

		<avsnitt>After moving other files you need, that have been restored, you should go to the top level again and remove the restored_files directory and contents by typing  <kommando>rm -Rf restored_files</kommando>. Warning: You should be very careful using this command, as it is easy to remove too much.</avsnitt>

	</hoveddel>
</artikkel>