Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Parse/send entire mbox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Thu Jan 09, 2003 10:18 pm    Post subject: Parse/send entire mbox Reply with quote

I've almost finished migrating my old redhat box to gentoo. Yay!

One thing that happened during the move is that as the MX records for the domain hosted on the box updated, some mail ended up going to the old sendmail-powered box, and the rest to the new qmail-powered gentoo box.

Is there a cunning way I can throw the files in my old /var/spool/mail directory back at sendmail so that it tries to re-send them again mail-at-a-time? This would seem the easiest way to ensure no mail remains on the old box.

Suggestions gratefully recieved. :)
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
philthedrill
n00b
n00b


Joined: 10 Jan 2003
Posts: 18
Location: Moscow, ID

PostPosted: Fri Jan 10, 2003 10:45 pm    Post subject: Reply with quote

Some options:

1. You could IMAP to both of your machines with a client like Outlook Express. You should be able to move messages between folders of different machines.

2. If that's too much, then just copy the /var/spool/mail/ files over to the new box (in some other directory) and concatenate them:

cat /tmp/janeuser >> /var/spool/mail/janeuser

(of course, back up everything first, and make sure to use >> and not >)
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Sat Jan 11, 2003 1:25 am    Post subject: Reply with quote

philthedrill wrote:
1. You could IMAP to both of your machines with a client like Outlook Express. You should be able to move messages between folders of different machines.

Eep... Sounds like Microsoft. :p
Erm.... There's about 150 user accounts here so that sounds laborious.

philthedrill wrote:
2. If that's too much, then just copy the /var/spool/mail/ files over to the new box (in some other directory) and concatenate them:

cat /tmp/janeuser >> /var/spool/mail/janeuser

(of course, back up everything first, and make sure to use >> and not >)

Aye. That would work, 'cept qmail/vpopmail users maildirs (target format) and sendmail uses mboxes (current format). - So... Not quite what I want.

Is there perhaps an mbox2maildir thingie or somesuch?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
philthedrill
n00b
n00b


Joined: 10 Jan 2003
Posts: 18
Location: Moscow, ID

PostPosted: Sat Jan 11, 2003 2:14 am    Post subject: Reply with quote

Quote:
Is there perhaps an mbox2maildir thingie or somesuch?


OK. Now I understand. Sorry about that.

Check out qmail's site. Specifically, the section labeled "maildir" in the table of contents.

Here's an mbox2maildir script:

http://qmail.presys.com/mbox2maildir

Would this work?

--phil
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sat Jan 11, 2003 2:34 am    Post subject: Reply with quote

http://www.qmail.org/mbox2maildir
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum