LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2004, 01:19 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 518

Rep: Reputation: 32
mail recovery question


I have recently had a system crash, power related, and I'm in the process of getting it back together, almost there, thanks to be having a good backup which included most of my configuration files.

Good news as I forgot how I managed to configure sendmail, apache etc etc.


Anyway, I have copies of /var/spool/mail and I wish to copy all of each users mail to the current /var/spool/mail folder.

How can this be done, or indeed can it be done?

Thanks in advance...
 
Old 11-25-2004, 07:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i don't follow... just copy the files surely... the data will still be valid.
 
Old 11-25-2004, 11:34 AM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 518

Original Poster
Rep: Reputation: 32
I'm concerned as some users have since received new mail and not yet retrieved it, so if I copy then it will overwrite any mail currently there...

I suppose I'm looking for some form of merge or something...
 
Old 11-27-2004, 01:11 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
You can merge standard mailbox files by using >>

This redirect appends the output to the target file, rather than overwriting the entire contents of the file.
e.g

cat /oldmail/bob >> /var/spool/mail/bob

You can use this in a script to do the whole set of current mailboxes.

If you are going to append stuff to a full set of live mailboxes it's a good idea to schedule downtime and stop the SMTP, POP and IMAP services first so that no mail goes in or out of the boxes whilst you are running the script.

Last edited by hob; 11-27-2004 at 01:14 PM.
 
Old 11-07-2005, 08:12 AM   #5
outlook
Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
re:

Users are sure to find in repair pst and email repair tool, simple yet versatile, to solve potential problems and stay in control of personal data.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail question Likosin Linux - Software 1 09-14-2005 05:41 PM
Simple Question - How To Edit With Recovery CD? rrrssssss Linux - Newbie 1 04-22-2005 06:08 AM
Question on entering windows recovery console ru4life Linux - Newbie 7 08-03-2004 02:33 AM
super-newbie question about Recovery CD Avatar Linux - Newbie 1 04-19-2004 10:14 AM
journal recovery question gmartin Linux - General 3 01-02-2004 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration