Purging Old Mail Messages

I'm currently playing around with purging old mail messages after a certain time period. For test I've set inbox and sent at 7 days and trash at 1 day.
I've read: http://docs.sun.com/app/docs/doc/819-4428/6n6j4267s?a=view
Quite useful. I've set a global purge with the following:
Rule1.regexp: 1
Rule1.folderpattern: user/.*/trash
Rule1.messagedays: 1
Rule2:regexp: 1
Rule2.folderpattern: user/.*/inbox
Rule2.messagedays: 7
Rule3.regexp: 1
Rule3.folderpattern: user/.*/sent
Rule3.messagedays: 7
Rule4.regexp: 1
Rule4.folderpattern: user/.*/Trash
Rule4.messagedays: 1
Rule5:regexp: 1
Rule5.folderpattern: user/.*/Inbox
Rule5.messagedays: 7
Rule6.regexp: 1
Rule6.folderpattern: user/.*/Sent
Rule6.messagedays: 7
Rule7.regexp: 1
Rule7.folderpattern: user/.*/Deleted Items
Rule7.messagedays: 1
It seems to purge the trash ok but no action on the inbox or sent yet. Any ideas?
My version is: libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006)
Thanks

I'd created about three weeks of a messages on this server prior to turning on the purge so they should be all legitimate messages and dates.
I ran a /imexpire -n -d -v 3
a snippet of the output. Seems to have deleted messages from the Sent and Trash but for some reason Inbox is left untouched. Sent has the exact same messagedays of 7 too.
user/s0243714/INBOX: exists (180) largest (102058) oldest (1192828919) qused (1117436)
applying ExpireRule: user/s0243714/INBOX
     Rule2: regexp: 1
     Rule5: regexp: 1
     Rule8: regexp: 1
     Action: discard
user/s0243714/INBOX: deleted 0 messages
user/s0243714/Sent: exists (10) largest (0) oldest (0) qused (32778)
applying ExpireRule: user/s0243714/Sent
     MessageDays: 7
     Rule2: regexp: 1
     Rule5: regexp: 1
     Rule8: regexp: 1
     Action: discard
deleting user/s0243714/Sent UID 33
deleting user/s0243714/Sent UID 34
deleting user/s0243714/Sent UID 35
deleting user/s0243714/Sent UID 36
deleting user/s0243714/Sent UID 37
user/s0243714/Sent: deleted 5 messages
user/s0243714/Trash: exists (4) largest (0) oldest (0) qused (16220)
applying ExpireRule: user/s0243714/Trash
     MessageDays: 1
     Rule2: regexp: 1
     Rule5: regexp: 1
     Rule8: regexp: 1
     Action: discard
deleting user/s0243714/Trash UID 16
user/s0243714/Trash: deleted 1 messages

Similar Messages

  • Archiving old mail messages

    I am trying to archive old mail messages so they do not cram up my inbox. In the past I have successfully created a new mailbox for old messages, given it a month and year, and dragged messages across – but I can no longer do this.
    When I try to drag a message across, I get the message 'Error: the message "xxx" could not be moved to the mailbox "xxx" - On My Mac". Can anyone help me out?
    Not being able to archive old messages means that I have hundreds of already read messages in the inbox which causes, I think, another problem. Every time I open the mail program and click on an unread message, I am told that "The message has not been downloaded from the server. You need to take this account online in order to download it". When I quit the mail program and go back in, the problem sorts itself, but this happens every time I check the mail and it is becoming quite frustrating!
    Happy New Year to you all!
    Regards, Mike
    iMac   Mac OS X (10.3.9)  

    Does the same occur when using the Move To or Copy To command instead of dragging messages manually?
    Every time I open the mail program and click on an unread message,
    I am told that "The message has not been downloaded from the server.
    You need to take this account online in order to download it".
    This indicates an "overstuffed" mailbox issue which means the mailbox has approached or exceeded 1 GB in size (which is the recommended mailbox size limit for Jaguar and Panther Mail) or has some corruption.
    An "overstuffed" mailbox issue can occur at any mailbox size but is more likely to occur as a mailbox approaches or exceeds 1 GB in size for Jaguar or Panther Mail.
    Although your OS detail provided indicates you are running 10.3.9, you posted in the Mail & Address Book - Tiger discussions so I'm assuming you are running 10.3.9 and not Tiger.
    Quit the Mail.app first and using the Finder go to Home > Library > Mail > this POP account named folder (named by the user name and incoming mail server for the account) > INBOX.mbox.
    Move the INBOX.mbox to the Desktop.
    When relaunching Mail, a new INBOX.mbox will be created automatically by Mail within the account named folder. This will allow the Mail.app to function properly again and not risk losing any existing messages or new messages downloaded by the account while working on the old INBOX.mbox moved to the Desktop to recover the existing messages.
    Control-click on the old INBOX.mbox moved to the Desktop and at the menu window that appears, select Show Package Contents.
    Post back here listing the package content file names and size of each.

  • How to import old mail messages

    Hi all
    I have a new iMac. I have setup all my email accounts already. However I have about 2000 old email messages saved on two external hard drives ( through backups)
    How can I import and seamlessly integrate the old mail messages into the new iMac ?
    Thanks

    The normal method depends upon how you backed up your old mail. If you backed up the entire Mail folder and its content then use Mail's Import Mail option under the File menu. Select the Apple Mail option then click on the OK button. Navigate in the File Open dialog to the /Mail/Mailboxes/ folder. Select and click on the Open button. Check the mailboxes you wish to import then click on the Import button. Your mailboxes will appear in Mail's sidebar under the Imported Mail heading.

  • After replacing computer, can't see old mail messages

    My father's Mac died. I bought a new one for myself and gave my father my old computer. At the Apple store, they were able to copy his mail from his dead computer to my new one. I copied the mail folder to his Mail folder, but Mail does not recognize the old messages. It only sees the messages that were left on his mail server since his computer died. What is the trick to getting Mail to recognize the old mail?

    What is the trick to getting Mail to recognize the old mail?
    you'll have to use the "import mailboxes" command in mail

  • Mail in inbox replaced by old mail messages when opened

    My computer was recently worked on and I'm not sure if that has anything to do with this but I thought it worth noting. I had to use time machine to put all my application data back onto apple mail and I started encountering problems pretty quickly. About 3-4 times a week when I go to look at my new mail in the morning, several of my mail messages are replaced by old messages from my inbox. They show up when I open my gmail account online but even when these messages are saved into folders they still retain the form of the old message. Has this happened to anyone before? Is there a solution? I might not have explained myself well, but hopefully someone will get the point.

    You probably have two good ways to go -- one, you could merely remove the IMAP accounts, and set them up again, which since everything is on the server, Mail would again index them when setting newly accessing them.
    The second, and probably better way to go, is as follows: Force a reindexing by deleting the Envelope Index. With IMAP or Exchange account, forcing reindexing requires removing the account folder. See:
    http://docs.info.apple.com/article.html?path=Mail/4.0/en/14019.html
    This method with be sure to reindex any On My Mac mailboxes. Ask any questions needed to get comfortable with doing this.
    Ernie

  • Delete Old Mail Messages

    I've just archived all my old email messages using MailSteward. I would now like to delete those same messages (prior to 12/31/2006) from the mail folders I have created. Is there any easy way to delete all messages older than a certain date from a Mail folder?

    I just sort by date, select the most recent message I want to delete, then scroll to the oldest and shift-click it. Then delete. Alternately, you could probably create a smart mailbox to hold just the ones you want to delete, then select all and delete them from there. If this is something you do often, and the criteria by which you identify the messages are fixed, this would be worth the trouble of creating the smart mailbox. But it sounds like a one-time sort of thing, in which case the smart mailbox route is probably more trouble than it's worth.

  • Can't access old mail messages after upgrade to icloud

    Upgraded to Mavericks and can't access old emails - from before abouta year ago, when we moved to iCloud via Safari. Where are they? Thanks

    What is the trick to getting Mail to recognize the old mail?
    you'll have to use the "import mailboxes" command in mail

  • Erase old mail messages

    I have all my mail accounts set up to erase deleted messages when one month old. Each one of my email accounts is a POP account that I have configured to remove the messages from the server after Mail downloads them. I also have each account configured to erase deleted messages when one month old, as indicated above. However, when I look at the messages in the trash folder, there are hundreds with a date much older than 30 days from today. Does anyone know why these would not have been erased?

    You are correct: select box "'remove message from Server after retrieving message/When removed form Box". I found this in my old notes on Mail Preferences for older Macs, too. This is not working, however. Earthlink support suggested I remove cookies, rebuild mail boxes, set up a new account, etc., but I have not made any of these changes.

  • Old Mail Messages

    I recently swapped my old hard drive for a larger one. After finding the folder where all my emails are kept, using Time Machine I brought them back to the new hard drive.
    Problem is, they don't show up when I open Mail. In the folder it shows the messages are there but Mail can't seem to find them.
    Any ideas?
    Thanks
    Chris

    Thats great thanks!
    Worked perfectly Very glad to know that as I'm getting a new MBP in a week or so.
    Thanks very much
    Chris

  • Transferring old Mail messages from external HD

    Hello
    I am trying to find the emails I (think I) stored on my external HD.
    Can anyone please tell me where on the external HD I would find the actual messages (i.e. NOT the application)? Also, what would they be called? Please be as explicit as you can as I'm not very clever.

    Well, this should put your question back on the first page!
    Frankly I am mystified too, and demystifying you may be beyond my abilities.
    But here goes anyway. There really are only two possibilities:
    1. The clone you made, for unknown reasons, was not a perfect clone, and the emails never made it to the second drive.
    2. The emails are there, but the searches you have done have missed them.
    If 1. there is nothing that can be done.
    If 2. you could try booting from the external and running Mail right off that drive.
    If this process finds the lost mail, you can save it all to your original boot drive, and restart from there.

  • How do you archive old Mail messages?

    Perhaps I'm a bit obsessive, but I've saved every email message I've sent or received since 1996 (except 30 that were lost -- and I know where they went.)  It's occasionally useful, but its slowing down Mail.  Time to offload ten years' worth into an archive.
    Before I write an AppleScript to do this, I thought I'd ask: Have you archived messages out of mail?  How did you do it?
    --Gil

    Email Archiver says on their website that they have a version that works in 10.6.8, but the website doesn't say how to get it.  I found an email address for their support website, but haven't heard back.
    On the other tack, someone else has made calculating days simple for the rest of us:
    http://www.timeanddate.com/date/duration.html
    --Gil

  • Amount of mail messages slowing the app down?

    My mail app seems to be taking longer than before to fetch messages and I was wondering if it had anything to do with the amount of mail messages in my various mailboxes. Can someone tell me, should I be clearing out old mail messages or is it safe to let them pile up indefinitely? I have 900 plus messages in Inbox, 1400 in Sent box and approx 1500 messages in other personalised mail boxes. Is this too much and will it affect Mail's functionality?
    G5 DP 1.8   Mac OS X (10.4.3)  

    The number and combined size of all messages in an account's Inbox and Sent mailbox should not have any effect on the amount of time is takes to fetch new messages available at an account's incoming mail server but depending on how many rules you have created to sort reveived messages to user created mailboxes by cateogry and/or the number of Smart mailboxes will have an effect on the sorting process after all messages are downloaded.
    Using the Rebuild Mailbox function on the most active mailboxes on a regular basis - every couple of weeks or monthly depending on activity is a good idea and all email clients have limits.
    Check Mac OS X 10.3, 10.4 Mail: Overstuffed mailbox is unexpectedly empty.

  • Since installing OS X 10.9 some (not all) of my mailboxes have lost the contents of their mail messages. Can I restore them?

    Since installing OS X 10.9 last week, my Mail app is malfunctioning. I can no longer read the contents of old mail messages in some of my mailboxes. Others are fine. Can I restore them?

    As EtreCheck just provides a snapshot in time, it is not terribly useful for figuring out what is slowing the system down unless you have known bad actors running on your Mac that show up in the report.
    You need to watch Activity Monitor when it slows down and see what is chewing up CPU and Memory.
    If the Memory Pressure gets into the Red while using it, then it is likely not enough RAM for what you are trying to do. With the check you posted above, you weren't having any memory issues at that moment.
    You've got a handful of startup items which I know nothing about. Try disabling them and see if things are better.
    User Login Items:
        WBE Desktop Notifier
        WorkspaceUpdate
        iTunesHelper
        AdobeResourceSynchronizer
    And
    [loaded]    com.starfield.backupservice.plist 3rd-Party support link
    You can test by booting into Safe Mode. If it works reasonable well there, it is likely one of the startup or login items.
    If not, I would agree with others that it is the lack of RAM.

  • Orphaned mail messages following upgrade - how to reclaim them?

    I've recently upgraded my G5 iMac to 10.5 from 10.4. The upgrade did not go smoothly. I made a bootable clone of my disk to an external HD, but this would not boot correctly (it started up but I could not log in), and so I ended up doing an erase and install, and then migrating everything from my laptop rather than from the external HD. I'm now moving across what I need piece by piece from the external HD.
    With Mail I have a ~/Library/Mail folder on my upgraded iMac which works fine, but I also have an "orphaned" ~/Library/Mail folder on my external HD, with lots of useful email messages in it.
    Question: How can I move all the old mail messages from the orphaned folder into the live folder, so that Mail.app recognises them and I can work with them?
    This must have happened to others. Any input most welcome.
    Regards
    Graham

    Have a look at this article* I wrote:
    http://www.macmaps.com/diskfull.html
    Hope you are able to find your lost space.
    - * Links to my pages may give me compensation.

  • Upgraded from 10.3 to 10.5, can't find old mail

    I just upgraded from 10.3 to 10.5 and cannot figure out how to get my old mail messages. It receives new mail and sends find, so I know all the account info was kept and restored, but it didn't seem to transfer my old messages. Any ideas?

    I just installed Leopard today and updated to 10.5.3, and have exactly the same problem. If you find out what happened, please post it. Thanks.

Maybe you are looking for