X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dc4d0c4bf247cfc88e1f3f9463fa2264d3d226b5..9f1e781a5c2beb9df943c832300a3f5bee1e4ed3:/uip/sendsbr.c?ds=sidebyside diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 5a841b0a..ca03877a 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -5,16 +5,18 @@ * complete copyright information. */ -#include -#include -#include -#include +#include "h/mh.h" +#include "sbr/arglist.h" +#include "sbr/error.h" +#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 @@ -22,7 +24,7 @@ #include #ifdef OAUTH_SUPPORT -#include +#include "h/oauth.h" #endif #include "h/done.h" #include "sbr/m_maildir.h" @@ -738,8 +740,7 @@ oops: } -static -void +static void handle_sendfrom(char **vec, int *vecp, char *draft, const char *auth_svc) { const char *addr, *host; @@ -848,8 +849,7 @@ setup_oauth_params(char *vec[], int *vecp, const char *auth_svc, /* * Extract user and domain from From: header line in draft. */ -static -int +static int get_from_header_info(const char *filename, const char **addr, const char **host, const char **message) { struct stat st; @@ -903,8 +903,7 @@ get_from_header_info(const char *filename, const char **addr, const char **host, * Get formatted information from header of a message. * Adapted from process_single_file() in uip/fmttest.c. */ -static -const char * +static const char * get_message_header_info(FILE *in, char *format) { int dat[5]; @@ -982,8 +981,7 @@ get_message_header_info(FILE *in, char *format) * If no -server passed in from profile or commandline, could use smtp..com for gmail, * but that might not generalize for other svcs. */ -static -void +static void merge_profile_entry(const char *addr, const char *host, char *vec[], int *vecp) { char *addr_entry = concat("sendfrom-", addr, NULL);