E' da un giorno che il programma mail si chiude inaspettatamente dando uno script se qualcuno ha un idea di come risolvere il problema mi farebbe un gran piacere!
Process: Mail [1295]
Path: /Applications/Mail.app/Contents/MacOS/Mail
Identifier: com.apple.mail
Version: 7.3 (1878.6)
Build Info: Mail-1878006000000000~1
Code Type: X86-64 (Native)
Parent Process: launchd [326]
Responsible: Mail [1295]
User ID: 501
Date/Time: 2016-05-18 16:17:50.928 +0200
OS Version: Mac OS X 10.9.5 (13F1712)
Report Version: 11
Anonymous UUID: F0AF8036-4BCF-4A00-0307-50D4C4E94AE6
Sleep/Wake UUID: 6700E315-10D8-4773-9622-85A989F41AD3
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000007a0
VM Regions Near 0x7a0:
-->
__TEXT 0000000101bf6000-0000000101ee9000 [ 3020K] r-x/rwx SM=COW /Applications/Mail.app/Contents/MacOS/Mail
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.JavaScriptCore 0x00007fff9006c48c WTF::fastFree(void*) + 92
1 ??? 0x00007fff5e0073e0 0 + 140734770476000
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8edad662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8aa8c421 _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff8aa8c136 _dispatch_mgr_thread + 52
Thread 2:: -[MFLibraryIMAPStore openSynchronously] Dispatch queue: NSOperationQueue 0x610000028700
0 libsystem_kernel.dylib 0x00007fff8edac716 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff9349ac77 _pthread_cond_wait + 787
2 com.apple.Foundation 0x00007fff8d600160 -[__NSOperationInternal _waitUntilFinishedOrTimeout:outer:] + 218
3 com.apple.IMAP 0x00007fff8f66cc70 -[IMAPClientOperationQueue waitUntilOperationIsFinished:] + 228
4 com.apple.IMAP 0x00007fff8f686ca1 -[IMAPGateway waitUntilClientOperationIsFinished:] + 184
5 com.apple.IMAP 0x00007fff8f686bd7 -[IMAPGateway addClientOperation:toQueueAndWaitUntilFinished:] + 397
6 com.apple.IMAP 0x00007fff8f6757ef -[IMAPConnection _authenticateWithAuthenticator:] + 136
7 com.apple.MailCore 0x00007fff8b4f59b0 -[MCConnection authenticate] + 594
8 com.apple.IMAP 0x00007fff8f675690 -[IMAPConnection authenticate] + 66
9 com.apple.Mail.framework 0x00007fff8bf2f3b6 -[MFIMAPAccount connectAndAuthenticate:] + 1163
10 com.apple.IMAP 0x00007fff8f67fad4 -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 323
11 com.apple.IMAP 0x00007fff8f67d6a6 -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 316
12 com.apple.IMAP 0x00007fff8f67e202 -[IMAPConnectionPool checkOutGatewayForMailbox:newConnection:highPriority:waitIndefinitely:] + 344
13 com.apple.Mail.framework 0x00007fff8bf302ce -[MFIMAPAccount _getPotentialGatewayForMailbox:options:createdNewConnection:needsSelect:] + 474
14 com.apple.Mail.framework 0x00007fff8bf2fe34 -[MFIMAPAccount _gatewayForMailbox:name:options:] + 272
15 com.apple.Mail.framework 0x00007fff8bf865ea -[MFLibraryIMAPStore _gatewayCreateIfNeeded:options:] + 158
16 com.apple.Mail.framework 0x00007fff8bf7cdea -[MFLibraryIMAPStore _openSynchronouslyUpdatingMetadata:withOptions:] + 279
17 com.apple.CoreFoundation 0x00007fff93e609ac __invoking___ + 140
18 com.apple.CoreFoundation 0x00007fff93e60814 -[NSInvocation invoke] + 308
19 com.apple.MailCore 0x00007fff8b53e7a4 -[MCMonitoredInvocation invoke] + 211
20 com.apple.MailCore 0x00007fff8b561448 -[MCThrowingInvocationOperation main] + 40
21 com.apple.MailCore 0x00007fff8b505b28 -[_MCInvocationOperation main] + 332
22 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
23 com.apple.Foundation 0x00007fff8d59db6b __NSOQSchedule_f + 64
24 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
25 libdispatch.dylib 0x00007fff8aa8e7e3 _dispatch_async_redirect_invoke + 154
26 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
27 libdispatch.dylib 0x00007fff8aa8c082 _dispatch_root_queue_drain + 326
28 libdispatch.dylib 0x00007fff8aa8d177 _dispatch_worker_thread2 + 40
29 libsystem_pthread.dylib 0x00007fff93499ef8 _pthread_wqthread + 314
30 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 3:: -[MFIMAPAccount fetchSynchronouslyIsAuto:] Dispatch queue: NSOperationQueue 0x618000026420
0 libsystem_kernel.dylib 0x00007fff8edac746 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x00007fff9349b779 _pthread_mutex_lock + 372
2 com.apple.Foundation 0x00007fff8d5a184b -[NSLock lock] + 145
3 com.apple.Mail.framework 0x00007fff8bf2fe12 -[MFIMAPAccount _gatewayForMailbox:name:options:] + 238
4 com.apple.Mail.framework 0x00007fff8bf33386 -[MFIMAPAccount _listingForMailbox:listAllChildren:onlySubscribed:highPriority:] + 134
5 com.apple.Mail.framework 0x00007fff8bf33f92 -[MFIMAPAccount _listingForMailbox:listAllChildren:highPriority:] + 117
6 com.apple.Mail.framework 0x00007fff8bf3695b -[MFIMAPAccount refreshMailboxListingRootedAtMailbox:] + 234
7 com.apple.Mail.framework 0x00007fff8bf32561 -[MFIMAPAccount fetchSynchronouslyIsAuto:] + 150
8 com.apple.CoreFoundation 0x00007fff93e609ac __invoking___ + 140
9 com.apple.CoreFoundation 0x00007fff93e60814 -[NSInvocation invoke] + 308
10 com.apple.MailCore 0x00007fff8b53e7a4 -[MCMonitoredInvocation invoke] + 211
11 com.apple.MailCore 0x00007fff8b561448 -[MCThrowingInvocationOperation main] + 40
12 com.apple.MailCore 0x00007fff8b505b28 -[_MCInvocationOperation main] + 332
13 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
14 com.apple.Foundation 0x00007fff8d59db6b __NSOQSchedule_f + 64
15 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
16 libdispatch.dylib 0x00007fff8aa8e7e3 _dispatch_async_redirect_invoke + 154
17 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
18 libdispatch.dylib 0x00007fff8aa8c082 _dispatch_root_queue_drain + 326
19 libdispatch.dylib 0x00007fff8aa8d177 _dispatch_worker_thread2 + 40
20 libsystem_pthread.dylib 0x00007fff93499ef8 _pthread_wqthread + 314
21 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 4:: Dispatch queue: [MFIMAPAccount remoteTaskQueue]
0 libsystem_kernel.dylib 0x00007fff8edac746 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x00007fff9349b779 _pthread_mutex_lock + 372
2 com.apple.Foundation 0x00007fff8d5a184b -[NSLock lock] + 145
3 com.apple.Mail.framework 0x00007fff8bf2fe12 -[MFIMAPAccount _gatewayForMailbox:name:options:] + 238
4 com.apple.Mail.framework 0x00007fff8bf865ea -[MFLibraryIMAPStore _gatewayCreateIfNeeded:options:] + 158
5 com.apple.Mail.framework 0x00007fff8bf828b3 -[MFLibraryIMAPStore _synchronouslyStoreFlagsFromDictionary:forMessages:] + 740
6 com.apple.Mail.framework 0x00007fff8bf8312c -[MFLibraryIMAPStore _setFlagsFromDictionary:forMessages:] + 263
7 com.apple.Mail.framework 0x00007fff8bf840d4 -[MFLibraryIMAPStore _internalSetFlagsFromDictionary:forMessages:] + 751
8 com.apple.Mail.framework 0x00007fff8bf83c64 __78-[MFLibraryIMAPStore async_setFlagsFromDictionary:forMessages:updatingServer:]_block_invoke588 + 123
9 com.apple.Foundation 0x00007fff8d5be6d5 -[NSBlockOperation main] + 75
10 com.apple.MailCore 0x00007fff8b5611a4 -[MCTaskOperation main] + 642
11 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
12 com.apple.Foundation 0x00007fff8d59db6b __NSOQSchedule_f + 64
13 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
14 libdispatch.dylib 0x00007fff8aa8e7e3 _dispatch_async_redirect_invoke + 154
15 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
16 libdispatch.dylib 0x00007fff8aa8c082 _dispatch_root_queue_drain + 326
17 libdispatch.dylib 0x00007fff8aa8d177 _dispatch_worker_thread2 + 40
18 libsystem_pthread.dylib 0x00007fff93499ef8 _pthread_wqthread + 314
19 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8edace6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff93499f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff8edace6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff93499f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 7:: -[MFIMAPAccount _synchronizeAccountWithServerHighPriority:] Dispatch queue: NSOperationQueue 0x618000026420
0 libsystem_kernel.dylib 0x00007fff8edac716 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff9349ac77 _pthread_cond_wait + 787
2 com.apple.Foundation 0x00007fff8d600160 -[__NSOperationInternal _waitUntilFinishedOrTimeout:outer:] + 218
3 com.apple.IMAP 0x00007fff8f66cc70 -[IMAPClientOperationQueue waitUntilOperationIsFinished:] + 228
4 com.apple.IMAP 0x00007fff8f686ca1 -[IMAPGateway waitUntilClientOperationIsFinished:] + 184
5 com.apple.IMAP 0x00007fff8f686bd7 -[IMAPGateway addClientOperation:toQueueAndWaitUntilFinished:] + 397
6 com.apple.IMAP 0x00007fff8f6771a8 -[IMAPConnection separatorChar] + 117
7 com.apple.IMAP 0x00007fff8f67582d -[IMAPConnection _authenticateWithAuthenticator:] + 198
8 com.apple.MailCore 0x00007fff8b4f59b0 -[MCConnection authenticate] + 594
9 com.apple.IMAP 0x00007fff8f675690 -[IMAPConnection authenticate] + 66
10 com.apple.Mail.framework 0x00007fff8bf2f3b6 -[MFIMAPAccount connectAndAuthenticate:] + 1163
11 com.apple.IMAP 0x00007fff8f67fad4 -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 323
12 com.apple.IMAP 0x00007fff8f67d6a6 -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 316
13 com.apple.Mail.framework 0x00007fff8bf302a3 -[MFIMAPAccount _getPotentialGatewayForMailbox:options:createdNewConnection:needsSelect:] + 431
14 com.apple.Mail.framework 0x00007fff8bf2fe34 -[MFIMAPAccount _gatewayForMailbox:name:options:] + 272
15 com.apple.Mail.framework 0x00007fff8bf33880 -[MFIMAPAccount _namespacePrefixesForPrivate:public:shared:] + 170
16 com.apple.Mail.framework 0x00007fff8bf33fcd -[MFIMAPAccount _listingForMailbox:listAllChildren:highPriority:] + 176
17 com.apple.Mail.framework 0x00007fff8bf329d8 -[MFIMAPAccount _synchronizeMailboxListHighPriority:] + 64
18 com.apple.Mail.framework 0x00007fff8c03085f -[MFRemoteStoreAccount _synchronizeAccountWithServerHighPriority:] + 644
19 com.apple.Mail.framework 0x00007fff8bf36517 -[MFIMAPAccount _synchronizeAccountWithServerHighPriority:] + 52
20 com.apple.CoreFoundation 0x00007fff93e609ac __invoking___ + 140
21 com.apple.CoreFoundation 0x00007fff93e60814 -[NSInvocation invoke] + 308
22 com.apple.MailCore 0x00007fff8b53e7a4 -[MCMonitoredInvocation invoke] + 211
23 com.apple.MailCore 0x00007fff8b561448 -[MCThrowingInvocationOperation main] + 40
24 com.apple.MailCore 0x00007fff8b505b28 -[_MCInvocationOperation main] + 332
25 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
26 com.apple.Foundation 0x00007fff8d59db6b __NSOQSchedule_f + 64
27 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
28 libdispatch.dylib 0x00007fff8aa8e7e3 _dispatch_async_redirect_invoke + 154
29 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
30 libdispatch.dylib 0x00007fff8aa8c082 _dispatch_root_queue_drain + 326
31 libdispatch.dylib 0x00007fff8aa8d177 _dispatch_worker_thread2 + 40
32 libsystem_pthread.dylib 0x00007fff93499ef8 _pthread_wqthread + 314
33 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff8edace6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff93499f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff8edace6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff93499f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 10:: Dispatch queue: NSOperationQueue 0x60800043e2a0
0 libsystem_kernel.dylib 0x00007fff8edac746 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x00007fff9349b779 _pthread_mutex_lock + 372
2 com.apple.Foundation 0x00007fff8d5999de -[NSRecursiveLock lock] + 22
3 com.apple.IMAP 0x00007fff8f67cbfc -[IMAPConnectionPool checkInConnection:forGateway:] + 50
4 com.apple.IMAP 0x00007fff8f685a82 __51-[IMAPGateway _tryToCheckInConnectionAndTryToIdle:]_block_invoke + 268
5 com.apple.Foundation 0x00007fff8d5be6d5 -[NSBlockOperation main] + 75
6 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
7 com.apple.Foundation 0x00007fff8d59db6b __NSOQSchedule_f + 64
8 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff8aa8e7e3 _dispatch_async_redirect_invoke + 154
10 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff8aa8c082 _dispatch_root_queue_drain + 326
12 libdispatch.dylib 0x00007fff8aa8d177 _dispatch_worker_thread2 + 40
13 libsystem_pthread.dylib 0x00007fff93499ef8 _pthread_wqthread + 314
14 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 11:: -[MFIMAPAccount _synchronizeAccountWithServerHighPriority:] Dispatch queue: NSOperationQueue 0x618000026420
0 libsystem_kernel.dylib 0x00007fff8eda8a1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8eda7d18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff93e97f15 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff93e97539 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff93e96e75 CFRunLoopRunSpecific + 309
5 com.apple.Foundation 0x00007fff8d5ff0fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253
6 com.apple.MailCore 0x00007fff8b55df0f -[MCSocket _waitForSecurityLayerNegotiationStreamsAreScheduled:] + 645
7 com.apple.MailCore 0x00007fff8b55d668 -[MCSocket connectToHost:withPort:isBackground:] + 1524
8 com.apple.MailCore 0x00007fff8b4f4a74 -[MCConnection connectDiscoveringBestSettings:] + 1115
9 com.apple.Mail.framework 0x00007fff8bf2f2d1 -[MFIMAPAccount connectAndAuthenticate:] + 934
10 com.apple.IMAP 0x00007fff8f67fad4 -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 323
11 com.apple.IMAP 0x00007fff8f67d6a6 -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 316
12 com.apple.Mail.framework 0x00007fff8bf302a3 -[MFIMAPAccount _getPotentialGatewayForMailbox:options:createdNewConnection:needsSelect:] + 431
13 com.apple.Mail.framework 0x00007fff8bf2fe34 -[MFIMAPAccount _gatewayForMailbox:name:options:] + 272
14 com.apple.Mail.framework 0x00007fff8bf33880 -[MFIMAPAccount _namespacePrefixesForPrivate:public:shared:] + 170
15 com.apple.Mail.framework 0x00007fff8bf33fcd -[MFIMAPAccount _listingForMailbox:listAllChildren:highPriority:] + 176
16 com.apple.Mail.framework 0x00007fff8bf329d8 -[MFIMAPAccount _synchronizeMailboxListHighPriority:] + 64
17 com.apple.Mail.framework 0x00007fff8c03085f -[MFRemoteStoreAccount _synchronizeAccountWithServerHighPriority:] + 644
18 com.apple.Mail.framework 0x00007fff8bf36517 -[MFIMAPAccount _synchronizeAccountWithServerHighPriority:] + 52
19 com.apple.CoreFoundation 0x00007fff93e609ac __invoking___ + 140
20 com.apple.CoreFoundation 0x00007fff93e60814 -[NSInvocation invoke] + 308
21 com.apple.MailCore 0x00007fff8b53e7a4 -[MCMonitoredInvocation invoke] + 211
22 com.apple.MailCore 0x00007fff8b561448 -[MCThrowingInvocationOperation main] + 40
23 com.apple.MailCore 0x00007fff8b505b28 -[_MCInvocationOperation main] + 332
24 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
25 com.apple.Foundation 0x00007fff8d59db6b __NSOQSchedule_f + 64
26 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
27 libdispatch.dylib 0x00007fff8aa8e7e3 _dispatch_async_redirect_invoke + 154
28 libdispatch.dylib 0x00007fff8aa8a28d _dispatch_client_callout + 8
29 libdispatch.dylib 0x00007fff8aa8c082 _dispatch_root_queue_drain + 326
30 libdispatch.dylib 0x00007fff8aa8d177 _dispatch_worker_thread2 + 40
31 libsystem_pthread.dylib 0x00007fff93499ef8 _pthread_wqthread + 314
32 libsystem_pthread.dylib 0x00007fff9349cfb9 start_wqthread + 13
Thread 12:: -[MFIMAPAccount fetchSynchronouslyIsAuto:] Dispatch queue: NSOperationQueue 0x618000026420
0 libsystem_kernel.dylib 0x00007fff8edac746 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x00007fff9349b779 _pthread_mutex_lock + 372
2 com.apple.Foundation 0x00007fff8d5a184b -[NSLock lock] + 145
3 com.apple.Mail.framework 0x00007fff8bf2fe12 -[MFIMAPAccount _gatewayForMailbox:name:options:] + 238
4 com.apple.Mail.framework 0x00007fff8bf33386 -[MFIMAPAccount _listingForMailbox:listAllChildren:onlySubscribed:highPriority:] + 134
5 com.apple.Mail.framework 0x00007fff8bf33f6c -[MFIMAPAccount _listingForMailbox:listAllChildren:highPriority:] + 79
6 com.apple.Mail.framework 0x00007fff8bf3695b -[MFIMAPAccount refreshMailboxListingRootedAtMailbox:] + 234
7 com.apple.Mail.framework 0x00007fff8bf32561 -[MFIMAPAccount fetchSynchronouslyIsAuto:] + 150
8 com.apple.CoreFoundation 0x00007fff93e609ac __invoking___ + 140
9 com.apple.CoreFoundation 0x00007fff93e60814 -[NSInvocation invoke] + 308
10 com.apple.MailCore 0x00007fff8b53e7a4 -[MCMonitoredInvocation invoke] + 211
11 com.apple.MailCore 0x00007fff8b561448 -[MCThrowingInvocationOperation main] + 40
12 com.apple.MailCore 0x00007fff8b505b28 -[_MCInvocationOperation main] + 332
13 com.apple.Foundation 0x00007fff8d59dec1 -[__NSOperationInternal _start:] + 631
14 .....