Skip to content

Commit

Permalink
drop configure options --enable-exact-address
Browse files Browse the repository at this point in the history
Unused option.
  • Loading branch information
flatcap committed Jun 10, 2017
1 parent 7a5914e commit 5841a6c
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 119 deletions.
7 changes: 0 additions & 7 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ to ``configure'' to help it out, or change the default behavior:
LC_CTYPE correctly, then you might find you can solve the problem
with either or both of --enable-locales-fix and --without-wc-funcs.

--enable-exact-address
By default, Mutt will rewrite all addresses in the form
Personal Name <[email protected]>
regardless of the input. By enabling this option, Mutt will write
addresses in the same form they are parsed. NOTE: this requires
significantly more memory.

Once ``configure'' has completed, simply type ``make install.''

Mutt should compile cleanly (without errors) and you should end up with a
Expand Down
3 changes: 0 additions & 3 deletions address.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

struct Address
{
#ifdef EXACT_ADDRESS
char *val; /* value of address as parsed */
#endif
char *personal; /* real name of address */
char *mailbox; /* mailbox and host address */
int group; /* group mailbox? */
Expand Down
4 changes: 0 additions & 4 deletions alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ static struct Address *expand_aliases_r(struct Address *a, struct List **expn)

mutt_gecos_name(namebuf, sizeof(namebuf), pw);
mutt_str_replace(&a->personal, namebuf);

#ifdef EXACT_ADDRESS
FREE(&a->val);
#endif
}
}
}
Expand Down
8 changes: 0 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,6 @@ AC_ARG_ENABLE(locales-fix, AS_HELP_STRING([--enable-locales-fix],[The result of
AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ])
fi])

AC_ARG_ENABLE(exact-address, AS_HELP_STRING([--enable-exact-address],[Enable regeneration of email addresses]),
[if test $enableval = yes; then
AC_DEFINE(EXACT_ADDRESS,1,
[Enable exact regeneration of email addresses as parsed?
NOTE: this requires significant more memory when defined.])
fi])

dnl -- start cache --
hcache_db_used=
AC_ARG_WITH(gdbm,
Expand Down
13 changes: 0 additions & 13 deletions doc/manual.xml.head
Original file line number Diff line number Diff line change
Expand Up @@ -9484,19 +9484,6 @@ folder-hook imap://user@host2/ 'set folder=imap://host2/ ; set record=+INBOX/Sen
</sect2>
</sect1>

<sect1 id="exact-address">
<title>Exact Address Generation</title>
<para>Mutt supports the
<quote>Name &lt;user@host&gt;</quote>address syntax for reading and
writing messages, the older
<quote>user@host (Name)</quote>syntax is only supported when reading
messages. The
<emphasis>--enable-exact-address</emphasis> switch can be given to
configure to build it with write-support for the latter syntax.
<literal>+exact_address</literal> in the output of
<literal>mutt -v</literal> indicates whether it's supported.</para>
</sect1>

<sect1 id="sending-mixmaster">
<title>Sending Anonymous Messages via Mixmaster</title>
<para>You may also have compiled Mutt to co-operate with Mixmaster, an
Expand Down
6 changes: 0 additions & 6 deletions hcache/hcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ static unsigned char *dump_address(struct Address *a, unsigned char *d, int *off

while (a)
{
#ifdef EXACT_ADDRESS
d = dump_char(a->val, d, off, convert);
#endif
d = dump_char(a->personal, d, off, convert);
d = dump_char(a->mailbox, d, off, 0);
d = dump_int(a->group, d, off);
Expand All @@ -265,9 +262,6 @@ static void restore_address(struct Address **a, const unsigned char *d, int *off
while (counter)
{
*a = rfc822_new_address();
#ifdef EXACT_ADDRESS
restore_char(&(*a)->val, d, off, convert);
#endif
restore_char(&(*a)->personal, d, off, convert);
restore_char(&(*a)->mailbox, d, off, 0);
restore_int((unsigned int *) &(*a)->group, d, off);
Expand Down
4 changes: 0 additions & 4 deletions query.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ static int query_search(struct Menu *m, regex_t *re, int n)
if (table[n].data->addr->mailbox &&
!regexec(re, table[n].data->addr->mailbox, 0, NULL, 0))
return 0;
#ifdef EXACT_ADDRESS
if (table[n].data->addr->val && !regexec(re, table[n].data->addr->val, 0, NULL, 0))
return 0;
#endif
}

return REG_NOMATCH;
Expand Down
8 changes: 0 additions & 8 deletions rfc2047.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,6 @@ void rfc2047_encode_adrlist(struct Address *addr, const char *tag)
_rfc2047_encode_string(&ptr->personal, 1, col);
else if (ptr->group && ptr->mailbox)
_rfc2047_encode_string(&ptr->mailbox, 1, col);
#ifdef EXACT_ADDRESS
if (ptr->val)
_rfc2047_encode_string(&ptr->val, 1, col);
#endif
ptr = ptr->next;
}
}
Expand Down Expand Up @@ -887,10 +883,6 @@ void rfc2047_decode_adrlist(struct Address *a)
rfc2047_decode(&a->personal);
else if (a->group && a->mailbox && (strstr(a->mailbox, "=?") != NULL))
rfc2047_decode(&a->mailbox);
#ifdef EXACT_ADDRESS
if (a->val && strstr(a->val, "=?") != NULL)
rfc2047_decode(&a->val);
#endif
a = a->next;
}
}
61 changes: 0 additions & 61 deletions rfc822.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ static void free_address(struct Address *a)
{
FREE(&a->personal);
FREE(&a->mailbox);
#ifdef EXACT_ADDRESS
FREE(&a->val);
#endif
FREE(&a);
}

Expand Down Expand Up @@ -133,9 +130,6 @@ void rfc822_free_address(struct Address **p)
{
t = *p;
*p = (*p)->next;
#ifdef EXACT_ADDRESS
FREE(&t->val);
#endif
FREE(&t->personal);
FREE(&t->mailbox);
FREE(&t);
Expand Down Expand Up @@ -367,9 +361,6 @@ static void add_addrspec(struct Address **top, struct Address **last, const char
struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
{
int ws_pending, nl;
#ifdef EXACT_ADDRESS
const char *begin = NULL;
#endif
const char *ps = NULL;
char comment[LONG_STRING], phrase[LONG_STRING];
size_t phraselen = 0, commentlen = 0;
Expand All @@ -386,9 +377,6 @@ struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
nl = s[nl - 1] == '\n';

s = skip_email_wsp(s);
#ifdef EXACT_ADDRESS
begin = s;
#endif
while (*s)
{
if (*s == ',')
Expand All @@ -404,16 +392,9 @@ struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
last->personal = safe_strdup(comment);
}

#ifdef EXACT_ADDRESS
if (last && !last->val)
last->val = mutt_substrdup(begin, s);
#endif
commentlen = 0;
phraselen = 0;
s++;
#ifdef EXACT_ADDRESS
begin = skip_email_wsp(s);
#endif
}
else if (*s == '(')
{
Expand Down Expand Up @@ -450,16 +431,9 @@ struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
top = cur;
last = cur;

#ifdef EXACT_ADDRESS
last->val = mutt_substrdup(begin, s);
#endif

phraselen = 0;
commentlen = 0;
s++;
#ifdef EXACT_ADDRESS
begin = skip_email_wsp(s);
#endif
}
else if (*s == ';')
{
Expand All @@ -473,10 +447,6 @@ struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
terminate_buffer(comment, commentlen);
last->personal = safe_strdup(comment);
}
#ifdef EXACT_ADDRESS
if (last && !last->val)
last->val = mutt_substrdup(begin, s);
#endif

/* add group terminator */
cur = rfc822_new_address();
Expand All @@ -489,9 +459,6 @@ struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
phraselen = 0;
commentlen = 0;
s++;
#ifdef EXACT_ADDRESS
begin = skip_email_wsp(s);
#endif
}
else if (*s == '<')
{
Expand Down Expand Up @@ -542,10 +509,6 @@ struct Address *rfc822_parse_adrlist(struct Address *top, const char *s)
terminate_buffer(comment, commentlen);
last->personal = safe_strdup(comment);
}
#ifdef EXACT_ADDRESS
if (last)
last->val = mutt_substrdup(begin, s - nl < begin ? begin : s - nl);
#endif

return top;
}
Expand Down Expand Up @@ -601,27 +564,6 @@ void rfc822_write_address_single(char *buf, size_t buflen, struct Address *addr,

buflen--; /* save room for the terminal nul */

#ifdef EXACT_ADDRESS
if (addr->val)
{
if (!buflen)
goto done;
strfcpy(pbuf, addr->val, buflen);
len = mutt_strlen(pbuf);
pbuf += len;
buflen -= len;
if (addr->group)
{
if (!buflen)
goto done;
*pbuf++ = ':';
buflen--;
*pbuf = 0;
}
return;
}
#endif

if (addr->personal)
{
if (strpbrk(addr->personal, RFC822Specials))
Expand Down Expand Up @@ -787,9 +729,6 @@ struct Address *rfc822_cpy_adr_real(struct Address *addr)
{
struct Address *p = rfc822_new_address();

#ifdef EXACT_ADDRESS
p->val = safe_strdup(addr->val);
#endif
p->personal = safe_strdup(addr->personal);
p->mailbox = safe_strdup(addr->mailbox);
p->group = addr->group;
Expand Down
5 changes: 0 additions & 5 deletions version.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ static struct CompileOptions comp_opts[] = {
{ "dotlock", 0 },
#endif
{ "encrypt_to_self", 1 },
#ifdef EXACT_ADDRESS
{ "exact_address", 1 },
#else
{ "exact_address", 0 },
#endif
#ifdef USE_FCNTL
{ "fcntl", 1 },
#else
Expand Down

0 comments on commit 5841a6c

Please sign in to comment.