From owner-freebsd-questions Fri Jul 28 6:35:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from zeus.westgate.gr (zeus.westgate.gr [212.205.119.32]) by hub.freebsd.org (Postfix) with SMTP id 073B037C2C9 for ; Fri, 28 Jul 2000 06:35:15 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 1115 invoked from network); 28 Jul 2000 13:33:20 -0000 Received: from gray.westgate.gr (HELO gray) (212.205.119.7) by zeus.westgate.gr with SMTP; 28 Jul 2000 13:33:20 -0000 From: "Giorgos Keramidas" To: "Sam Carleton" , "FreeBSD Questions" Subject: RE: qmail and setting up mailboxs Date: Fri, 28 Jul 2000 16:34:59 +0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 In-Reply-To: <3981881A.90569B52@miltonstreet.com> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sam Carleton wrote: >=20 > Alan Clegg wrote: >=20 > > Out of the ether, Sam Carleton spewed forth the following bitstream: > > > > > First off, I am assuming that ~user/Mailbox is refering to the = file > > > /var/qmail/user/Mailbox. > > > > No, with shell expansion, ~user/Mailbox is a file in user's home = directory > > called Mailbox. >=20 > Alan, Actually, a "folder" is not what you would expect /var/mail/user to be. A "folder" in the DOS world means a directory in the Unix world. However /var/mail/user is not a directory, but a file. It is called a folder, because it contains several mail messages, = concatenated one after the other. Apart from the fact that it can contain more than = one mail message, it is a regular file. All you need to do is something like: # cd /var/mail # for fname in * ;do cd /home/$fname mv /var/mail/$fname ./Mailbox done This moves every file called USER in /var/mail to ~USER/Mailbox and that's all you have to do :-) Ciao, Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message