jeroenenwendy
Verified User
- Joined
- Dec 1, 2017
- Messages
- 6
Hi their.
Hope someone can help me out.
I'm trying to remove/prune mails older then 90 day's.
I use this line in cron -> rm -f `find /home/rpsmolders/imap/*/*/Maildir/.Sent -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
And it is working great.
Now their is also a .Sent Items folder (space between)
I tried the following lines
rm -f `find /home/rpsmolders/imap/*/*/Maildir/.Sent Items -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
rm -f `find /home/rpsmolders/imap/*/*/Maildir/.Sent\ Items -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
rm -f `find "/home/rpsmolders/imap/*/*/Maildir/.Sent Items" -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
rm -f `find "/home/rpsmolders/imap/*/*/Maildir/.Sent\ Items" -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
But none of them are working.
Hoop anyone can help me out.
tnx in advance
Jeroen
Hope someone can help me out.
I'm trying to remove/prune mails older then 90 day's.
I use this line in cron -> rm -f `find /home/rpsmolders/imap/*/*/Maildir/.Sent -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
And it is working great.
Now their is also a .Sent Items folder (space between)
I tried the following lines
rm -f `find /home/rpsmolders/imap/*/*/Maildir/.Sent Items -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
rm -f `find /home/rpsmolders/imap/*/*/Maildir/.Sent\ Items -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
rm -f `find "/home/rpsmolders/imap/*/*/Maildir/.Sent Items" -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
rm -f `find "/home/rpsmolders/imap/*/*/Maildir/.Sent\ Items" -mtime +90 | grep -E '/cur/|/new/'` >/dev/null 2>&1
But none of them are working.
Hoop anyone can help me out.
tnx in advance
Jeroen