I need to refresh Mails mailboxes

G'day
I've struck a real problem with mail. I'm trying to script it so that mail is automatically opened and printed every time a rule shifts mail to a certain mailbox.
For reasons too long to explain, i need to do this as a folder action that takes all the mail in the 'messages' sub folder of a mail box and prints it. An 'on added items only use the added items' for various reasons sometimes misses mail, so I HAVE to grab ALL the mail, and shift out each item as it's processed.
Unfortunately Mail is very slow at updating its folders, and an image of the messages is often left behind, resulting in it being processed twice.
Messages can actually exist in two places at once, until Mail does whatever it does to update the boxes.
I really, fairly desperately, need a method of updating the mail boxes every time I shift a message out of the folder. I've tried all sorts of things, shifting the messages out and back in, and reading the messages twice in succession. The 'ghostly' mail can even persists across restarts of Mail.app.
Regards
Brian Christmas

I don't know if this will help, since it doesn't answer the question, but it may give an alternative approach. This script when fired by a Mail rule will print the messages it is passed.
AK
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">using terms from application "Mail"
on perform mail action with messages theMsges --for rule TheRule
tell application "Mail"
try
repeat with ThisMessage in theMsges
set PID to do shell script "echo $$"
set TempFileName to ((path to desktop) as string) & PID
set TempFile to open for access TempFileName with write permission
write (content of ThisMessage as string) to TempFile
close access TempFile
do shell script "lpr -r " & "~/Desktop/" & PID
end repeat
on error TheError
display dialog "Problem: " & TheError
end try
end tell
end perform mail action with messages
end using terms from
using terms from application "Mail"
on run
tell application "Mail" to set sel to selection
tell me to perform mail action with messages (sel)
end run
end using terms from
</pre>
(The recent upgrade to the discussions has disabled the link that allows direct opening of a script, so run Script Editor and copy in the script.)

Similar Messages

  • My 5 year old MacBook Air is telling me it "cannot save information about your mailboxes because there isn't enough space in your home folder.  Quit mail, delete files you don't need, then reopen mail."  What is "home folder," and which files to delete?

    My 5 year old MacBook Air is telling me it "cannot save information about your mailboxes because there isn't enough space in your home folder.  Quit mail, delete files you don't need, then reopen mail."  What is "home folder," and which files to delete? Thanks.

    The home folder is where all of your personal files are kept.
    Best candidates to delete are movies, videos, music and photos since they generally take the most space.
    Don't forget to empry the Trash after you delete the file because the space is not returned until the Trash is emptied.
    Allan

  • "On My Mac" does not map to ~/Library/Mail/Mailboxes

    OK, while fighting my IMAP issues with SpamArrest, I'm trying to cleanup my mailboxes to make sure I have nothing funny happening with my Mail apps. One thing I noticed is that the list of folders listed under "On My Mac" in Mail is not exactly the same as what is listed in ~/Library/Mail/Mailboxes.
    There are 4 more mboxes in ~/Library/Mail/Mailboxes than in the "On My Mac" section of Mail. They are:
    Deleted Messages.mbox
    Drafts.mbox
    Notes.mbox
    Outbox.mbox
    Given their generic names, I am wondering if this is just normal and they only come into play when I'm offline.
    As an aside, part of the reason I'm looking at this is that I keep getting IMAP mboxes created in there that shouldn't be. For example, I have both:
    Drafts (CarnerosVentures (SpamArrest)).mbox
    INBOX.Drafts (Carneros Ventures (SpamArrest)).mbox
    Since these are local files, I assume it's safe to delete all of the mboxes with the name "SpamArrest"in them in that folder. e.g.
    Deleted Messages (Carneros Ventures (SpamArrest)).mbox
    Drafts (CarnerosVentures (SpamArrest)).mbox
    INBOX.Drafts (Carneros Ventures (SpamArrest)).mbox
    Sent Messages (Carneros Ventures (SpamArrest)).mbox
    They'll just be recreated if/when they are needed. Is that correct?
    Thanks,
    Chip

    Drafts, ToDos (Notes), and Outbox are found normally in the Mailboxes folder but do not usually appear in the On My Mac section. As for Deleted Messages that may be a remnant from before you used an IMAP account or if you at one time configured Mailbox Behaviors in Mail preferences to keep deleted messages locally instead of on the IMAP server.

  • Need to Reinstall Mail from Leopard Disk

    How do I reinstall just the Mail.app from the 10.5 disk?
    If I do, will all the current mail boxes and messages stored on my hard drive still be there?
    Mail is from .Mac
    Thanks

    Mike,
    Reinstalling Mail will not affect anything in your HOME folder. This includes anything in your mailboxes, any of your settings for Mail, etc.
    Look on versiontracker.com for an application named Pacifist. Pacifist will allow you to browse the contents of the Leopard install disk, and extract/install just Mail.app. Are you sure that you need to reinstall Mail, and if so, why?
    Scott

  • IOS Mail: Mailbox Management

    Using: iPad 4 w/wi-fi; iOS 8.2
    I do not understand how the Mailboxes work.
    FIrst, I have two Trash mailboxes: one, Trash can, and one, Trash folder.
    I also have a mailbox named, Bulk Mail.
    None of these three folders did I set up; they came with the Mail app. In OS X, if I wanted a Trash folder or a Bulk Mail box, I would have to manually set them up.
    The problem(s):
    1. The Trash folder receives mail from my Inbox - NOT PUT THERE BY ME! If I MOVE it back to the Inbox, sometime later it is back in the Trash folder. Currently, I have 76 emails in my Trash folder - that's another problem; if I want to delete them, I have to manually select them ONE AT A TIME - unlike the Trash can which allows deleting all at once. I would like to DELETE THE TRASH FOLDER, but then if Mail decides to move emails from the Inbox without my permission, WHERE WOULD THE EMAILS GO?
    2. The Bulk Mail folder also receives mail that should be coming into only my Inbox. My desktop Mac, with the same email account, receives the same emails into its Inbox and thankfully leaves them there.
    This automatic switching of emails from the Inbox to the Trash folder or to the Bulk Mail box is frustrating to say the least. When I go to the "iPad User Guide," there is no help for Mail Mailbox management; write, finish, work with, and print messages but no MAILBOX MANAGEMENT HELP!
    Please instruct me or send me to a tutorial on iOS Mail's mailbox management.
    Thanks,
    bob

    davekr wrote:
    I do appreciate your help and it's quite a find the link you provided,
    however I am not still clear that if I map the Gmail boxes to Trash, Sent, and Drafts in Mail.app, will this result in only 1 version of each box visible in the mail.app sidebar?
    That's correct.
    will this result also apply to the boxes (Trash, Sent, and Drafts in) on an iphone?
    No... you'll need to do the mapping on the iPhone as well.

  • How does one find Mac Mail mailbox in full Time Machine Backup?

    I completed full backup of my MacBook on 9/24. I use a directly connected G Drive. I need to restore my mailbox from that backup, but it doesn't show up when I attempt to use Time Machine to do so. How can I find the mail box through Finder on the G Drive?
    Thanks,
    Chris Reid

    Further to this issue: I go into the finder and locate my mailbox in Library. When I go to back up 'Library' it goes back to the date in question - but there is no Library found?! There really must be a problem with the backup process. Any thoughts? I really need to find these emails!
    Thanks,
    Chris

  • Do i need to reinstall mail...

    Yesterday multiple copies of the same email (last count 50+) started appearing in the “recovered messages (Gmail)” folder.  I deleted my account from mail then reinstalled my account.
    Problem sorted
    Mail even managed to recover my inbox and sent messages, some of them have a file size of 0bytes but the content is all there.
    This  morning however the “mail activity box” started showing hundreds of messages being recieved without showing anything new in the “mail inbox”...
    No change in the file size of the 0byte messages.
    Does anyone know if this is normal?
    If its not im thinking I might need to reinstall mail, not something im looking forward to...
    Any help would be massively appreciated

    In the end I just upgraded to lion.
    It's early days yet but I haven't had any more strangeness from the "mail activity mailbox."

  • TS4083 Is that behavior has changed along ios8 ? Or still you need to launch mail app to update unread emails ?

    Is that behavior has changed along ios8 ? Or still you need to launch mail app to update unread emails ?

    I've found out that this is by design.
    Email Application offer push-notification, but read action is not populated to the Cloud.
    So Mail app needed to be opened manually each time you want to refresh it status ...
    That is not a good information...
    As far as I remember, google had that work quite long ago properly (of course on iOS and inside Mail.app)

  • Transfer a Mail Mailbox via internet

    I have a co-worker who needs to transfer a single Mac Mailbox to me via the internet. How can he export a single mailbox and send it to me in a way that i can import it to either mail or entourage?

    i was also looking for the option to archive a mailbox in apple's mail program.
    in 10.4, select the mailbox in the mailbox pane and use "option" and drag the icon from the mail program to a finder folder. this will copy the mailbox file and it's contents to the finder window to which it was copied. a standard "file copy" progress window appears to show the task progress.
    since this looked just like a standard folder copy from the finder, i went into ~/library/mail/mailboxes and found the same folder and contents that was copied to the desktop when trying it from within the mail program. so in 10.4, one can either copy out the mailbox in the mail program or directly within the finder...
    from the previous posts, i think that mail in 10.5 probably has a menu command to make the archiving more obvious for people, which is usually a good thing...

  • How do i remove an e-mail mailbox from my iPad (leaving one behind)?

    How do I remove an e-mail mailbox from my iPad, as it appears to be causing problems with an nhs.net account?

    You can deactivate an email account in Settings > Mail, Contacts, Calendars > the account > Account. Turn it OFF.

  • My Mail programme appears to have locked up. It's showing as open in my doc but in reality I can't open it and it won't quite. If I try to shut the machine down it tells me that I need to quite mail but I can't! Any hints please?

    My Mail programme appears to have locked up. It's showing as open in my doc but in reality I can't open it and it won't quit. If I try to shut the machine down it tells me that I need to quit Mail but I can't! Any hints please?

    Open  > Force Quit and press Mail

  • I need an e-mail sending to my macbook, it appears to download but is never in my inbox. It does got to my iphone.  It isn't in trash.  Can anyone help ?

    I need an e-mail sending to my macbook, it appears to download but is never in my inbox. It does got to my iphone.  It isn't in trash.  Can anyone help ?

    I get those all the time. Most annoying. I usually ignore them or mark them as spam.

  • How do I copy mail mailbox folders from an external drive

    My old Macbook Air (2009) has died - logic board failed - so I have removed the ssd drive and mounted it in a Runcore usb enclosure from C Memory - worked a treat.  I would like to copy a number of Mail mailboxes I used for archiving old email messages from this drive on to my new Macbook Air but cannot see them or the user library folders on the now external drive.  Any ideas welcome.   Tim

    Copy the contents of the folder on the external drive to your user folder on the new hard drive. Example - replace the Music folder with the old one. If you have folders that are the same name it should ask you if it is okay to replace the new ones. Be sure you don't have anything in the folders you replace, as you would lose any contents.

  • I have photos on my phone and need to e-mail a bunch of them, how do I find them in photo stream and how do I mail them

    I have photos on my phone and need to e-mail a bunch of them, I can't find them on my computer where did they go?

    Welcome to the Apple community.
    Any photo stream photos will be streamed to iPhoto on your Mac providing that photo stream is enabled in the iPhoto preferences.

  • I need help refreshing my Adobe Creative Cloud membership in Business Catalyst.

    I need help refreshing my Adobe Creative Cloud membership in Business Catalyst.
    Hello, I had an Adobe Muse membership and I have changed it to a full Adobe Creative cloud membership. The problem is when I login in to business catalyst and try to push live  a second site, it tells me as follows:  Your Adobe Creative Cloud Membership has reached its limit for hosted sites.
    I think business catalyst has not recognize jet that I have change my Adobe Creative Cloud Membership and does not allow me access to the 5 sites that are supposed to come with my adobe creative cloud.
    Please help me refresh my status on business catalyst so I can publish my 5 sites.
    thanks

    Hi,
    Please reach out to our direct support via case or live chat as this may require escalation.  It appears your account is not syncing with your adobe ID for whatever reason and will require further investigation to help resolve.  We'll need your ID(s) plus any additional details so we can correct this for you. 
    - http://helpx.adobe.com/contact.html
    Thanks,
    -Sidney

Maybe you are looking for

  • SQL Server 2008 Express R2 exceeds the storage capacity of Oracle XE

    Hello, here is a novelty: SQL Server 2008 Express R2 exceeds the storage capacity of Oracle XE, XE you still limited to 4GB of data from, the competition gets better and offers a bit more, XE remains the same, hopefully Oracle 11g XE exceeds storage

  • Error:-Release Billing document to accounting

    Hi Guru's, While i am trying to Release Billing document to accounting   i am getting following Error"Insufficient authorization for sales document" What could be the issue ..Also in Billing document Header Posting Status is K Accounting document not

  • SENDING WBS ELEMENT IN OUTBOUND IDOC  ORDRSP

    Hi Experts, i need to update idoc ORDRSP (to distribute Sales order) with field WBS ELEMENT  , you can find this under item tab "Account assignment" field COBL-PS_POSID I generated outbound idoc on several sales orders but none of them has this infor

  • Group Policy solution/alternative?

    I work with MS Server 2003 and Active Directory at work - I'm still pretty new to it, and wow is it a nightmare to work with. I'm looking at working on a project for a different company. I am considering setting up a mac pro on OS X Server, but I'm p

  • More than one ship to party in sales order

    Hi All, Can anyone tell me , could we have more than one ship to party in sales order if no then why not? Regards, Ashima