LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-08-2007, 09:52 AM   #1
epamuk
Member
 
Registered: May 2007
Posts: 62

Rep: Reputation: 15
How can i erase emails via a cron job in Webmin?


I have been using sendmail and managed emails with webmail. I want to create a cron job in webmail. I want to erase some e-mails that is from starting "KevınSellen*". How can I erase this emails via a cron job in Webmail.

Thanks.
 
Old 11-09-2007, 07:39 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
your question may sound reasonable but I suspect it is not possible to only delete some emails.

cron would be happy to delete all, but would you be happy for that to occur?

2) In case you are semi happy, where can you currently read them from with a text editor?

try /var/mail /var/spool/mail and see if your username exists, if so you should be able to associate a text editor to read them.....and then copy and paste those mails you want to keep and then have cron delete the lot.

3) however you need to report who is the owner of the mail box. use command
ls -la and post the output (not the mail) just the folder where the mail is.

then we can create a delete script with a new touch and new owner-permissions probably we will stick it in /etc/rc.d/rc.local unless your distro links /etc/rc.local somewhere else
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
Need script for cron to erase MT files DavidHB Linux - Software 4 04-30-2007 06:51 AM
Cron job emails chrisk5527 Linux - General 1 03-08-2004 05:56 PM
cron emails Mikessu Linux - Newbie 1 01-02-2004 08:11 PM
cron Emails Gattancha Linux - General 1 07-25-2003 04:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration