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);
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));
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
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;
int r;
bool key_selected;
- const char *fqdn = mutt_fqdn(1);
+ const char *fqdn = mutt_fqdn(true);
for (p = addrlist; p; p = p->next)
{
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);
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 "
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?
*
* @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;
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);
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;
#endif
}
- fqdn = mutt_fqdn(0);
+ fqdn = mutt_fqdn(false);
if (!fqdn)
fqdn = NONULL(ShortHostname);