]> granicus.if.org Git - neomutt/commitdiff
mutt_fqdn
authorRichard Russon <rich@flatcap.org>
Sat, 23 Jun 2018 00:43:55 +0000 (01:43 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 23 Jun 2018 15:24:59 +0000 (16:24 +0100)
alias.c
ncrypt/crypt.c
ncrypt/crypt_gpgme.c
ncrypt/pgp.c
protos.h
remailer.c
send.c
sendlib.c
smtp.c

diff --git a/alias.c b/alias.c
index d93d7e9ae7e6e7df601f09266b0c287c648962ac..e8814feb864e092f5000318a9975ad041657717b 100644 (file)
--- a/alias.c
+++ b/alias.c
@@ -115,7 +115,7 @@ static struct Address *expand_aliases_r(struct Address *a, struct ListHead *expn
     last->next = NULL;
   }
 
-  if (UseDomain && (fqdn = mutt_fqdn(1)))
+  if (UseDomain && (fqdn = mutt_fqdn(true)))
   {
     /* now qualify all local addresses */
     mutt_addr_qualify(head, fqdn);
@@ -682,13 +682,13 @@ bool mutt_addr_is_user(struct Address *addr)
     mutt_debug(5, "#2 yes, %s = %s @ %s\n", addr->mailbox, Username, ShortHostname);
     return true;
   }
-  fqdn = mutt_fqdn(0);
+  fqdn = mutt_fqdn(false);
   if (string_is_address(addr->mailbox, Username, fqdn))
   {
     mutt_debug(5, "#3 yes, %s = %s @ %s\n", addr->mailbox, Username, NONULL(fqdn));
     return true;
   }
-  fqdn = mutt_fqdn(1);
+  fqdn = mutt_fqdn(true);
   if (string_is_address(addr->mailbox, Username, fqdn))
   {
     mutt_debug(5, "#4 yes, %s = %s @ %s\n", addr->mailbox, Username, NONULL(fqdn));
index ab6d8fa66f906c05363f2cfbe08932fd0d5a076c..a70cf0ee124c8cc2bd0659c4b14a4f2e3e6488db 100644 (file)
@@ -861,7 +861,7 @@ void crypt_extract_keys_from_messages(struct Header *h)
 int crypt_get_keys(struct Header *msg, char **keylist, bool oppenc_mode)
 {
   struct Address *addrlist = NULL, *last = NULL;
-  const char *fqdn = mutt_fqdn(1);
+  const char *fqdn = mutt_fqdn(true);
   char *self_encrypt = NULL;
 
   /* Do a quick check to make sure that we can find all of the encryption
index 1435f18cb0474dc39f91fe3628f8aba996ac32e4..83d9caa5780fa5a8c5f5954972cb15468aac0969 100644 (file)
@@ -4595,7 +4595,7 @@ static char *find_keys(struct Address *addrlist, unsigned int app, bool oppenc_m
   struct Address *addr = NULL;
   struct Address *p = NULL, *q = NULL;
   struct CryptKeyInfo *k_info = NULL;
-  const char *fqdn = mutt_fqdn(1);
+  const char *fqdn = mutt_fqdn(true);
   char buf[LONG_STRING];
   int forced_valid;
   int r;
index 487818f13ec51104e5838897624fbdefc84091e8..77c916cde43fe3bccf77b314c4c8a42dc325c635 100644 (file)
@@ -1325,7 +1325,7 @@ char *pgp_class_find_keys(struct Address *addrlist, bool oppenc_mode)
   int r;
   bool key_selected;
 
-  const char *fqdn = mutt_fqdn(1);
+  const char *fqdn = mutt_fqdn(true);
 
   for (p = addrlist; p; p = p->next)
   {
index b75bdf369b96c5d722c76374309ccb2bc13100c2..afeb1577650515250c4f3f41677f5b0be36371ca 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -137,7 +137,7 @@ int mutt_set_xdg_path(enum XdgType type, char *buf, size_t bufsize);
 
 const char *mutt_make_version(void);
 
-const char *mutt_fqdn(short may_hide_host);
+const char *mutt_fqdn(bool may_hide_host);
 
 void mutt_account_hook(const char *url);
 void mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *curenv);
index 29a56c1eb1a3c9cfdea2588d28310eb8f274693c..0ec1f434085a87873c0be4d098e98e1f982a25fb 100644 (file)
@@ -726,7 +726,7 @@ int mix_check_message(struct Header *msg)
 
   if (need_hostname)
   {
-    fqdn = mutt_fqdn(1);
+    fqdn = mutt_fqdn(true);
     if (!fqdn)
     {
       mutt_error(_("Please set the hostname variable to a proper value when "
diff --git a/send.c b/send.c
index 45cc8cdd7456e722799a247fcd18329ca395647d..4996dac5c9e6b154a2acce22e73856f04ba20205 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1069,7 +1069,7 @@ static struct Address *set_reverse_name(struct Envelope *env)
 struct Address *mutt_default_from(void)
 {
   struct Address *addr = NULL;
-  const char *fqdn = mutt_fqdn(1);
+  const char *fqdn = mutt_fqdn(true);
 
   /* Note: We let $from override $realname here.
    *       Is this the right thing to do?
index 16d17001df294e5dd3546b0be307b68c6fa87dc1..d97504ed4d080de858131dcfa5284686c78dc32e 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -2316,7 +2316,7 @@ static void encode_headers(struct ListHead *h)
  *
  * @warning Do not free the returned pointer
  */
-const char *mutt_fqdn(short may_hide_host)
+const char *mutt_fqdn(bool may_hide_host)
 {
   if (!Hostname || (Hostname[0] == '@'))
     return NULL;
@@ -2356,7 +2356,7 @@ static char *gen_msgid(void)
   rndid[MUTT_RANDTAG_LEN] = 0;
   now = time(NULL);
   struct tm *tm = gmtime(&now);
-  const char *fqdn = mutt_fqdn(0);
+  const char *fqdn = mutt_fqdn(false);
   if (!fqdn)
     fqdn = NONULL(ShortHostname);
 
@@ -2914,7 +2914,7 @@ static int bounce_message(FILE *fp, struct Header *h, struct Address *to,
 
 int mutt_bounce_message(FILE *fp, struct Header *h, struct Address *to)
 {
-  const char *fqdn = mutt_fqdn(1);
+  const char *fqdn = mutt_fqdn(true);
   char resent_from[STRING];
   char *err = NULL;
 
diff --git a/smtp.c b/smtp.c
index 5fec33c8674a5b2326435a4cca2c96dca1878784..03566ad5d0aa04ea402c88a8d1d80143e6f7ed68 100644 (file)
--- a/smtp.c
+++ b/smtp.c
@@ -340,7 +340,7 @@ static int smtp_helo(struct Connection *conn)
 #endif
   }
 
-  fqdn = mutt_fqdn(0);
+  fqdn = mutt_fqdn(false);
   if (!fqdn)
     fqdn = NONULL(ShortHostname);