]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/imap/imap_misc.c
CM_SetField() no longer accepts a length, just uses strdup()
[citadel.git] / citadel / server / modules / imap / imap_misc.c
index e5efc0f1e353e0a3bb9d15cb8d51e6c88e847537..2351d618a11939c8bae512c914f247b5c56cdb57 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1987-2020 by the citadel.org team
+ * Copyright (c) 1987-2023 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -364,9 +364,8 @@ void imap_append(int num_parms, ConstStr *Params) {
         * show up as the real sender.  (Configurable setting)
         */
        if (CC->logged_in) {
-               if ( ((CC->room.QRflags & QR_MAILBOX) == 0) && (CtdlGetConfigInt("c_imap_keep_from") == 0))
-               {
-                       CM_SetField(msg, eAuthor, CC->user.fullname, strlen(CC->user.fullname));
+               if ( ((CC->room.QRflags & QR_MAILBOX) == 0) && (CtdlGetConfigInt("c_imap_keep_from") == 0)) {
+                       CM_SetField(msg, eAuthor, CC->user.fullname);
                }
        }