]> code.citadel.org Git - citadel.git/blobdiff - citadel/internet_addressing.c
* Fixed an unterminated string bug in IMAP APPEND. Storing messages should
[citadel.git] / citadel / internet_addressing.c
index 7db812b4ab74803c2bfecb2d4245986c524e9aaa..389000713f78db483d7ce552c7cca14d703341ec 100644 (file)
@@ -489,6 +489,10 @@ int convert_field(struct CtdlMessage *msg, int beg, int end) {
 
 /*
  * Convert an RFC822 message (headers + body) to a CtdlMessage structure.
+ * NOTE: the supplied buffer becomes part of the CtdlMessage structure, and
+ * will be deallocated when CtdlFreeMessage() is called.  Therefore, the
+ * supplied buffer should be DEREFERENCED.  It should not be freed or used
+ * again.
  */
 struct CtdlMessage *convert_internet_message(char *rfc822) {