jeevatkm / ReplyWithHeader

Quoting Outlook style headers and Signatures for Mail.app
https://myjeeva.com/replywithheader
MIT License
64 stars 7 forks source link

RWH plugin hangs if Subject value is empty #94

Closed jeevatkm closed 9 years ago

jeevatkm commented 9 years ago

Reported issue reference

Error Info:

20.10.15 20:08:20,229 Mail[780]: RWH:: Unable to parse date [-[__NSCFString replaceCharactersInRange:withString:]: nil argument]
20.10.15 20:08:20,230 Mail[780]: NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds
20.10.15 20:08:20,231 Mail[780]: (
    0   CoreFoundation                      0x00007fff85797bd2 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fff91c774fa objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff857fe3fd +[NSException raise:format:] + 205
    3   Foundation                          0x00007fff8f317c6f -[NSRLEArray objectAtIndex:effectiveRange:] + 142
    4   Foundation                          0x00007fff8f318b13 -[NSMutableAttributedString addAttributes:range:] + 181
    5   ReplyWithHeader                     0x0000000110381ccb -[MHHeaderString applyHeaderTypography] + 1339
    6   ReplyWithHeader                     0x0000000110387bd5 -[MHQuotedMailOriginal insertMailHeader:] + 101
    7   ReplyWithHeader                     0x000000011038b69b -[MHMailMessage MH_continueToSetupContentsForView:withParsedMessages:] + 379
    8   Mail                                0x000000010a3980c4 Mail + 450756
    9   Mail                                0x000000010a43abfd Mail + 1117181
    10  Mail                                0x000000010a43a9e9 Mail + 1116649
    11  CoreFoundation                      0x00007fff857098cc __invoking___ + 140
    12  CoreFoundation                      0x00007fff8570975e -[NSInvocation invoke] + 286
    13  MailCore                            0x00007fff95690f3b -[MCThrowingInvocationOperation main] + 48
    14  MailCore                            0x00007fff9561e3e6 -[MCMainThreadInvocationOperation main] + 55
    15  Foundation                          0x00007fff8f33e54e __NSThreadPerformPerform + 279
    16  CoreFoundation                      0x00007fff8572d621 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    17  CoreFoundation                      0x00007fff8570ce1c __CFRunLoopDoSources0 + 556
    18  CoreFoundation                      0x00007fff8570c33f __CFRunLoopRun + 927
    19  CoreFoundation                      0x00007fff8570bd38 CFRunLoopRunSpecific + 296
    20  HIToolbox                           0x00007fff82f04d55 RunCurrentEventLoopInMode + 235
    21  HIToolbox                           0x00007fff82f04b8f ReceiveNextEventCommon + 432
    22  HIToolbox                           0x00007fff82f049cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
    23  AppKit                              0x00007fff8d005f3a _DPSNextEvent + 1067
    24  AppKit                              0x00007fff8d005369 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
    25  AppKit                              0x00007fff8cff9ecc -[NSApplication run] + 682
    26  AppKit                              0x00007fff8cfc3162 NSApplicationMain + 1176
    27  libdyld.dylib                       0x00007fff8a81d5ad start + 1
    28  ???                                 0x0000000000000001 0x0 + 1
)
jeevatkm commented 9 years ago

Done!