* SIGUSR1 is now used for wakeup rather than SIGHUP. This eliminates any
possible confusion about fetchmail's behavior at logout time.
+* Received line parsing for envelope addresses now matches MX as well as
+ canonical DNS addresses, making multidrop routing slightly more reliable.
+
bugs --
* Fixed a FreeBSD compilation glitch involving SIGCLD (thanks to
else if (sscanf(buf, "%d %s", &num, id) == 2)
{
save_str(&ctl->newsaved, num, id);
+
+ /* note: ID comparison is caseblind */
if (!str_in_list(&ctl->oldsaved, id))
(*newp)++;
}
if (!ctl->oldsaved)
return (num <= last);
else
+ /* note: ID comparison is caseblind */
return (str_in_list(&ctl->oldsaved,
str_find (&ctl->newsaved, num)));
}
#endif
int str_in_list(struct idlist **idl, const char *str)
-/* is a given ID in the given list? */
+/* is a given ID in the given list? (comparison is caseblind) */
{
if (*idl == (struct idlist *)NULL || str == (char *) NULL)
return(0);
- else if (strcmp(str, (*idl)->id) == 0)
+ else if (strcasecmp(str, (*idl)->id) == 0)
return(1);
else
return(str_in_list(&(*idl)->next, str));