I add an extra header value with MailCore2:
MCOMessageHeader *messageHeader = message.header;
[messageHeader setExtraHeaderValue:spamScoreString forName:@"Spam Score"];
How can I save this new header value to the IMAP server?
I have already searched for sample code and I have also read the class reference for MCOMessageHeader (which, by the way, states the wrong method name - (void)addHeaderValue:(NSString *)
value forName:(NSString *)name
)
editWith the help of dinhviethoa in the MailCore2 forum on GitHub (https://github.com/MailCore/mailcore2/issues/680), the question could be answered: