Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


How to UNDELETE rmm'ed messages

It is possible to specify what command the mail system should use to
delete your mail (when you use the "rmm" command) so that retrieving
deleted mail might or might not be possible.

You can find what command you are using by typing:

	more ~/.mh_profile

and looking for a line that begins with the word "rmmproc:" (note that
if you have a line that begins with "Rmmproc:" ignore it -- MH does not
recognize that).  The rest of that line has the command that is used.
Usually it will be something like "/bin/athena/delete" or "/bin/rm"
(without the quotes).



o If the command is "/bin/rm" then you cannot undelete the message, as
  "rm" is a command that removes files permanently.  If you would like
  to change this edit your ~/.mh_profile file so that the "rmmproc" line
  reads:

	rmmproc:	delete



o If the command is "/bin/athena/delete" or "delete" then it is possible
  to use the "undelete" command.  First you need to change to the
  directory where the mail is.  Type:

	cd ~/Mail/foldername

  For example to change to your inbox folder you would type 
  "cd ~/Mail/inbox".  Then type

	lsdel

  to list all the deleted files.  To undelete a file type:

	undelete filename

  You can also view the file by typing:

	more .#filename



o If the command is something else, chances are that you registered for
  your account before August 1989.  You might want to add the "rmmproc:
  delete" line to your ~/.mh_profile.  The deleted mail that you have is
  most probably renamed to #messagenumber.  For example, when you type
  "rmm 13" the file ~/Mail/inbox/13 would be renamed to
  ~/Mail/inbox/#13.  So what you need to do is type:

	cd ~/Mail/foldername

  and then look for files that begin with "#".  You can view them by
  typing:

	more filename

  If you want to undelete a message, use the "mv" command to rename the
  file:

	mv #13 13

  This command renames the file #13 to 13, and thus, undeletes the message.

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.