projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
alias.c
diff --git
a/alias.c
b/alias.c
index
8835fa9
..
9005f48
100644
(file)
--- a/
alias.c
+++ b/
alias.c
@@
-29,7
+29,7
@@
ADDRESS *mutt_lookup_alias (const char *s)
ALIAS *t = Aliases;
for (; t; t = t->next)
ALIAS *t = Aliases;
for (; t; t = t->next)
- if (!s
afe_str
casecmp (s, t->name))
+ if (!s
tr_
casecmp (s, t->name))
return (t->addr);
return (NULL); /* no such alias */
}
return (t->addr);
return (NULL); /* no such alias */
}
@@
-49,7
+49,7
@@
static ADDRESS *mutt_expand_aliases_r (ADDRESS * a, LIST ** expn)
if (t) {
i = 0;
for (u = *expn; u; u = u->next) {
if (t) {
i = 0;
for (u = *expn; u; u = u->next) {
- if (
mutt_str
cmp (a->mailbox, u->data) == 0) { /* alias already found */
+ if (
str_
cmp (a->mailbox, u->data) == 0) { /* alias already found */
debug_print(1, ("loop in alias found for '%s'\n", a->mailbox));
i = 1;
break;
debug_print(1, ("loop in alias found for '%s'\n", a->mailbox));
i = 1;
break;
@@
-58,7
+58,7
@@
static ADDRESS *mutt_expand_aliases_r (ADDRESS * a, LIST ** expn)
if (!i) {
u = safe_malloc (sizeof (LIST));
if (!i) {
u = safe_malloc (sizeof (LIST));
- u->data = s
afe_str
dup (a->mailbox);
+ u->data = s
tr_
dup (a->mailbox);
u->next = *expn;
*expn = u;
w = rfc822_cpy_adr (t);
u->next = *expn;
*expn = u;
w = rfc822_cpy_adr (t);
@@
-240,7
+240,7
@@
retry_name:
new = safe_calloc (1, sizeof (ALIAS));
new->self = new;
new = safe_calloc (1, sizeof (ALIAS));
new->self = new;
- new->name = s
afe_str
dup (buf);
+ new->name = s
tr_
dup (buf);
mutt_addrlist_to_local (adr);
mutt_addrlist_to_local (adr);
@@
-276,7
+276,7
@@
retry_name:
mutt_free_alias (&new);
return;
}
mutt_free_alias (&new);
return;
}
- new->addr->personal = s
afe_str
dup (buf);
+ new->addr->personal = s
tr_
dup (buf);
buf[0] = 0;
rfc822_write_address (buf, sizeof (buf), new->addr, 1);
buf[0] = 0;
rfc822_write_address (buf, sizeof (buf), new->addr, 1);
@@
-392,7
+392,7
@@
int mutt_alias_complete (char *s, size_t buflen)
if (a->name && strstr (a->name, s) == a->name) {
if (!bestname[0]) /* init */
strfcpy (bestname, a->name,
if (a->name && strstr (a->name, s) == a->name) {
if (!bestname[0]) /* init */
strfcpy (bestname, a->name,
- min (
mutt_str
len (a->name) + 1, sizeof (bestname)));
+ min (
str_
len (a->name) + 1, sizeof (bestname)));
else {
for (i = 0; a->name[i] && a->name[i] == bestname[i]; i++);
bestname[i] = 0;
else {
for (i = 0; a->name[i] && a->name[i] == bestname[i]; i++);
bestname[i] = 0;
@@
-402,9
+402,9
@@
int mutt_alias_complete (char *s, size_t buflen)
}
if (bestname[0] != 0) {
}
if (bestname[0] != 0) {
- if (
mutt_str
cmp (bestname, s) != 0) {
+ if (
str_
cmp (bestname, s) != 0) {
/* we are adding something to the completion */
/* we are adding something to the completion */
- strfcpy (s, bestname,
mutt_str
len (bestname) + 1);
+ strfcpy (s, bestname,
str_
len (bestname) + 1);
return 1;
}
return 1;
}