4 Replies Latest reply: Sep 18, 2008 11:02 AM by jackenapes
Eric D. Level 2 Level 2 (185 points)
I'm using IMAP in Apple Mail for Leopard but can't figure out how to automatically save local copies of my sent mail. Now I know that everything that's synced with the IMAP mail server is technically local while it exists but sent mail will disappear if you have the server setting set to delete sent messages after a certain period of time. I need to do that otherwise my server mailbox will go over quota. The problem is, the local copy is also deleted. For incoming mail, I can easily configure a rule to copy Mail to save local copies but I don't see a way to do that for sent mail other than doing a BCC every time I send a message. Anyone know the trick to save sent mail?

1 Ghz G4 PowerBook 17", Mac OS X (10.5.4), 2 Gigs RAM
  • 1. Re: Store Local Copies of Sent Messages with IMAP?
    Max Lonneux1 Level 1 Level 1 (25 points)
    The only way I found is to "Cci" myself for every message I send, then add a rule in Mail so that all incoming mail from myself are set in a dedicated mailbox, "on my Mac".
    I had to do it since recently Mail is not reliable in terms of synchronization with the IMAP server : I have the preference set at "never delete a sent message from the server", and anyway it keeps deleting everything that is older than 1 month !
  • 2. Re: Store Local Copies of Sent Messages with IMAP?
    jackenapes Level 1 Level 1 (0 points)
    In Entourage you can set a rule to copy "outgoing" messages that will catch & copy all your sent mail but I'm SICK of Entourage with only this exception: why can't we apply rules to FOLDERS? I know there's probably some script or automator command to copy the IMAP folder contents to a local folder but that's a whole language unto itself (that I don't know).

    One thing I love about macs, though, is that some benevolent genius will see this and help us poor plebes out! The cc/bcc option is a non-starter because it clutters up the inbox. There's just got to be a way!
  • 3. Re: Store Local Copies of Sent Messages with IMAP?
    Jeffrey McGowan Level 2 Level 2 (225 points)
    you don't need to leave them in inbox just make the rule move not copy. Still wish you could get to sent in rules since. I want a local copy of all but also want to cc myself on some.
  • 4. Re: Store Local Copies of Sent Messages with IMAP?
    jackenapes Level 1 Level 1 (0 points)
    If I move them they won't be on the server, though, and I won't be able to access via iPhone or other computers (which is the whole reason for IMAP as far as I'm concerned). One of the benevolent geniuses (Thanks V.K.) came to the rescue. It's a two-step process that's far from perfect, and I'm sure there's a way to automate it and improve upon it, but the following script will copy everything in your IMAP sent mailbox to a local folder, then the link below contains a script that will remove duplicates. The "INBOX/Sent" below is just what mine is called - yours might be different. To find out highlight a message in the mailbox and run this:

    tell application "Mail"
    selection
    end tell

    Then once you know mailbox names you can do this:

    tell application "Mail"
    copy (every message of mailbox "INBOX/Sent" of account "xxx") to (mailbox "Local xxx")
    end tell

    then go to http://www.mactech.com/articles/mactech/Vol.21/21.09/ScriptingMail/index.html and get the dupe remover because every time you run the script it will copy the entire folder (unless you purge sent messages older than date of your last script run).