*/
if (open_warning_by_mail(ctl, (struct msgblk *)NULL))
return;
- stuff_warning(nl_langinfo(CODESET), ctl,
+ stuff_warning(iana_charset, ctl,
GT_("Subject: Fetchmail oversized-messages warning"));
stuff_warning(NULL, ctl, "");
stuff_warning(NULL, ctl,
if (timeoutcount > MAX_TIMEOUTS
&& !open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
- stuff_warning(nl_langinfo(CODESET), ctl,
+ stuff_warning(iana_charset, ctl,
GT_("Subject: fetchmail sees repeated timeouts"));
stuff_warning(NULL, ctl, "");
stuff_warning(NULL, ctl,
/* warn the system administrator */
if (open_warning_by_mail(ctl, (struct msgblk *)NULL) == 0)
{
- stuff_warning(nl_langinfo(CODESET), ctl,
+ stuff_warning(iana_charset, ctl,
GT_("Subject: Fetchmail unreachable-server warning."));
stuff_warning(NULL, ctl, "");
stuff_warning(NULL, ctl, GT_("Fetchmail could not reach the mail server %s:"),
&& !open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
ctl->wehavesentauthnote = 1;
- stuff_warning(nl_langinfo(CODESET), ctl,
+ stuff_warning(iana_charset, ctl,
GT_("Subject: fetchmail authentication failed on %s@%s"),
ctl->remotename, ctl->server.truename);
stuff_warning(NULL, ctl, "");
ctl->server.truename);
if (!open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
- stuff_warning(nl_langinfo(CODESET), ctl,
+ stuff_warning(iana_charset, ctl,
GT_("Subject: fetchmail authentication OK on %s@%s"),
ctl->remotename, ctl->server.truename);
stuff_warning(NULL, ctl, "");
stuff_warning(NULL, ctl, "Date: %s", rfc822timestamp());
stuff_warning(NULL, ctl, "MIME-Version: 1.0");
stuff_warning(NULL, ctl, "Content-Transfer-Encoding: 8bit");
- stuff_warning(NULL, ctl, "Content-Type: text/plain; charset=\"%s\"", nl_langinfo(CODESET));
+ stuff_warning(NULL, ctl, "Content-Type: text/plain; charset=\"%s\"", iana_charset);
}
return(status);
}