From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 11:23:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23EBF16A401 for ; Wed, 25 Apr 2007 11:23:09 +0000 (UTC) (envelope-from wodfer@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by mx1.freebsd.org (Postfix) with ESMTP id D751F13C44C for ; Wed, 25 Apr 2007 11:23:08 +0000 (UTC) (envelope-from wodfer@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so258277nza for ; Wed, 25 Apr 2007 04:23:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Q2kpTABnzHLaW0sTEH71FuAtS/1LNFGDenu0cjVRGbMCA2feZ5tXSj/yzwbXkwJAX9dHoleAImSRBp+gpvdzpkuWx0SdLVoZwQ5Dn/dJzSDMaQ6KAyvSIM/198D4cq9cdy/VctOusMpaQ2EqHPWTTOBPPjE8feZ8L6UY/JMw3S8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=k7bId4evWel9whuTa1mvE9QMTJ/vqUUSr0ki4AvfIOnpMxZAxNZEGNSuwYxqy6UclxG9bJaWbEQkJFE5PBykczOHIS7f2G1sUZAXrfhlBNbincEeVw9q/71dcXPLLK24BtKnuGbYM5xMIamyZjp846VEcQwcAJbXcm3noy5H8Aw= Received: by 10.114.89.1 with SMTP id m1mr135546wab.1177500187604; Wed, 25 Apr 2007 04:23:07 -0700 (PDT) Received: by 10.114.193.12 with HTTP; Wed, 25 Apr 2007 04:23:07 -0700 (PDT) Message-ID: <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com> Date: Wed, 25 Apr 2007 13:23:07 +0200 From: "=?ISO-8859-1?Q?Andreas_Wider=F8e_Andersen?=" To: freebsd-questions In-Reply-To: <20070425095713.GA9767@nemesis.frida.mouhaha.de> MIME-Version: 1.0 References: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <20070425095713.GA9767@nemesis.frida.mouhaha.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How do I forward old root emails from the root mailbox to my address? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 11:23:09 -0000 On 4/25/07, Oliver Peter wrote: > > On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen wrote: > > Hi, > > On one of my FreeBSD servers all system emails to root is stored in the > root > > mailbox under /var/mail/root. I have updated my alias file so new mail > is > > forwarded to one of my email adresses, but is there a simple way for me > to > > send all these old mails in root's mailbox to my email address without > > logging in through pop3/imap? > > > > A command line trick would be perfect. > > mutt is your friend. > > Open the mbox file with > # mutt -R -f /var/mail/root > > Then Tag all mails (press 'T' then enter '.') and bounce the tagged > messages (press ';' and thenn 'b') to your personal email address. > > That's the easiest way I know. > (Of course you need a running MTA, too) Thanks for your reply. I don't have mutt installed and I was hoping for a way of doing this without installing additional software. Also, I didn't mention that on one of the machines there are probably a year of emails so the box is quite large. Any other ways? I have sendmail installed and running. Cheers, Andreas