[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] How to cancel email
- Subject: Re: [cobalt-users] How to cancel email
- From: Kul <WebMaster@xxxxxxx>
- Date: Sun Mar 11 17:10:29 2001
- Organization: Qax
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Paul Leung wrote:
> Hi,
> I have a Raq3i, some of my users asked me to cancel some of their mail (not
> all) in their mailbox. What have I to do?
> Thanks.
> Paul
>
Hi Paul,
Heres an nicer way to mess with mail, while keeping the mailbox integrity....
Also reduces the risk of loosing mail that **IS** wanted and new stuff that arrives:
(Replace fred with the users account name)
Telnet/SSH as root:
cd /home/spool/mail/
cp fred /tmp/fred
ls -oA
# find an account that is of **ZERO** bytes (no mails), ie "admin"
cat admin > fred
# now thats the email account empty, so if any further emails arrive they will be saved in "fred" as normal.
# now edit (with your favorite editor<g>) the "/tmp/fred" mailbox, removing any unwanted mails!
pico -w /tmp/fred
# Done that! good!
cat /tmp/fred >> fred
# NOTICE the two > this time, this is append, NOT overwrite! (so if any mails did arrive during the hours you spent removing mail from "/tmp/fred", they will still be able to be retreived ok. - although they will be collected in the wrong order!)
When your happy (and the user is too), you may delete the "/tmp/fred" mailbox file
rm /tmp/fred
FINISHED!
--
Regards,
Kul