Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using SpamAssassign and moving spam to it's own file under/home/<user>/mail. I have setup SquirrelMail for users to examine their spam incase of a false positive.
I would like to purge the spam folder of older mails and only keep the most recent 30 days of spam for each user.
If this is still an unresolved issue and you're not afraid to script a bit, have a look at procmail. In short if you have a date variable properly formatted and add "-d '1 month ago' you'll have the previous month, pipe the mailbox through the procmail recipe and let formail select by date, then grep for the previous month variable. I think that could work.
I found a great utility called grepmail. It does exactly what I need. I just pipe my Spam folder through it with a date argument to filter out the older spam.
I found a great utility called grepmail. It does exactly what I need. I just pipe my Spam folder through it with a date argument to filter out the older spam.
Dude, please don't drag up dead threads, it gets *very* confusing.
The problem still exists. The tools still exist. I was so glad to find the information here and feel no confusion at all. Did you hate history in school or something?
---------- Post added 05-08-13 at 08:10 AM ----------
Quote:
Originally Posted by kpearsonxyz
I just stumbled across this and wonder if it deletes the mail found from the source mbox file?
The problem still exists. The tools still exist. I was so glad to find the information here and feel no confusion at all. Did you hate history in school or something?
---------- Post added 05-08-13 at 08:10 AM ----------
Yes, if you so direct. It's very powerful.
As my fellow moderator has stated that resurrecting old (necro) threads can be confusing;
Quote:
1. Members that have participated in the thread may no longer be active or responsive.
2. As time goes by the conditions may change over time and have varied answers or solutions.
I will add that LQ Rules state;
Quote:
Do not post if you do not have anything constructive to say in the post.
When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread. If the content of your post will interfere with the current discussion, you should start a new thread.
You clearly did not post anything constructive to the thread. Poor Netiquette & violation of LQ Rules.
I do suggest that you re-read LQ Rules and please read the following to hopefully help when you post to LQ ;
Quote:
FYI: How to Answer a Linux Question is ‘Simon Bridge's excellent composition to aid us in good informational exchanges.'
FYI: Netiquette is a set of social conventions that facilitate interaction over networks, ranging from Usenet and mailing lists to blogs and forums.
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
If you have any questions concerning this issue then please feel free to contact me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.