X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bfff2c60b2c860c2bc466bdab94daf770d86aec5..366cc6fc4c7bf1eed47cc9b52d0ef809b2e90174:/uip/sendsbr.c diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 50ca8054..be3b414f 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -5,17 +5,36 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "sbr/fmt_new.h" +#include "sendsbr.h" +#include "distsbr.h" +#include "annosbr.h" +#include "sbr/m_name.h" +#include "sbr/m_getfld.h" +#include "sbr/concat.h" +#include "sbr/cpydgst.h" +#include "sbr/trimcpy.h" +#include "sbr/uprf.h" +#include "sbr/getcpy.h" +#include "sbr/m_convert.h" +#include "sbr/m_backup.h" +#include "sbr/folder_read.h" +#include "sbr/folder_free.h" +#include "sbr/context_find.h" +#include "sbr/brkstring.h" +#include "sbr/pidstatus.h" +#include "sbr/arglist.h" #include "sbr/error.h" -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/fmt_compile.h" +#include "h/signals.h" #include #include -#include -#include -#include -#include +#include "h/mime.h" +#include "h/tws.h" +#include "h/utils.h" +#include "h/mts.h" #ifdef HAVE_SYS_TIME_H # include @@ -23,7 +42,7 @@ #include #ifdef OAUTH_SUPPORT -#include +#include "h/oauth.h" #endif #include "h/done.h" #include "sbr/m_maildir.h" @@ -241,12 +260,8 @@ splitmsg (char **vec, int vecp, char *program, char *drft, * of each message/partial in the collection. */ if (!strcasecmp (name, "Subject")) { - size_t sublen; - strncpy (subject, buffer, BUFSIZ); - sublen = strlen (subject); - if (sublen > 0 && subject[sublen - 1] == '\n') - subject[sublen - 1] = '\0'; + trim_suffix_c(subject, '\n'); } dp = add (concat (name, ":", buffer, NULL), dp);