1) use an editor to see how many of the lines at the top of the file you
want to keep, say for example 30
2) # head -n 30 mail_file_name > foo
3) # mv -f foo mail_file_name


--Pete


On Thu, 18 Jan 2001, kh wrote:

> the problem is, what is the better text editor I can use rather than vi,
> since the attachement has thousands of lines.....
> 
> ----- Original Message -----
> From: "Grant" <[EMAIL PROTECTED]>
> To: "kh" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, January 18, 2001 10:54 AM
> Subject: Re: How to remove a email from a mailbox
> 
> 
> > My instructions were to delete the 12 MB email, not every file in the
> > Mailrdir/new
> >
> > Just edit Maildir/new/file with a text editor and remove the attachment.
> >
> > On Thu, 18 Jan 2001, kh wrote:
> >
> > > there are other emails in the mailbox, I do wish to do is that, just to
> > > delete the attachement, not the entire mailbox....
> > > ckh :)
> > > ----- Original Message -----
> > > From: "Grant" <[EMAIL PROTECTED]>
> > > To: "kh" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Thursday, January 18, 2001 10:17 AM
> > > Subject: Re: How to remove a email from a mailbox
> > >
> > >
> > > > cd /home/user/Maildir/new
> > > >
> > > > Delete the file that is 12 MB
> > > >
> > > > On Thu, 18 Jan 2001, kh wrote:
> > > >
> > > > > Is it possible to remove a email from a user mailbox? because I have
> a
> > > email with about 12M of attachement in the mailbox.
> > > > > thanks
> > > > > ckh :)
> > > > >
> > > >
> > >
> > >
> >
> 

Reply via email to