aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-10-19 22:56:57 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-10-19 22:56:57 +0000
commitf82b44f182e9852322cdd19cf369a5ac7dfb75d5 (patch)
treeb75d7b068f92b61324d0c2b6acc1af5c2d7ae2e5 /driver.c
parent9ef647242d5bd8185aaa5337527dc03ffc8a6611 (diff)
downloadfetchmail-f82b44f182e9852322cdd19cf369a5ac7dfb75d5.tar.gz
fetchmail-f82b44f182e9852322cdd19cf369a5ac7dfb75d5.tar.bz2
fetchmail-f82b44f182e9852322cdd19cf369a5ac7dfb75d5.zip
RFC-2047 subjects of warning messages.
svn path=/trunk/; revision=3949
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/driver.c b/driver.c
index dbd455e7..95ff5b91 100644
--- a/driver.c
+++ b/driver.c
@@ -312,6 +312,7 @@ static void send_size_warnings(struct query *ctl)
int msg_to_send = FALSE;
struct idlist *head=NULL, *current=NULL;
int max_warning_poll_count;
+ char *tmp;
head = ctl->skipped;
if (!head)
@@ -332,10 +333,12 @@ static void send_size_warnings(struct query *ctl)
if (open_warning_by_mail(ctl, (struct msgblk *)NULL))
return;
stuff_warning(ctl,
- GT_("Subject: Fetchmail oversized-messages warning.\n"
- "\n"
- "The following oversized messages remain on the mail server %s:"),
- ctl->server.pollname);
+ tmp = rfc2047e(
+ GT_("Subject: Fetchmail oversized-messages warning"), nl_langinfo(CODESET)));
+ stuff_warning(ctl, "");
+ stuff_warning(ctl,
+ GT_("The following oversized messages remain on the mail server %s:"),
+ ctl->server.pollname);
stuff_warning(ctl, "");
@@ -908,7 +911,8 @@ static int do_session(
&& !open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
stuff_warning(ctl,
- GT_("Subject: fetchmail sees repeated timeouts\n"));
+ rfc2047e(GT_("Subject: fetchmail sees repeated timeouts"),nl_langinfo(CODESET)));
+ stuff_warning(ctl, "");
stuff_warning(ctl,
GT_("Fetchmail saw more than %d timeouts while attempting to get mail from %s@%s.\n"),
MAX_TIMEOUTS,
@@ -1105,9 +1109,9 @@ static int do_session(
if (open_warning_by_mail(ctl, (struct msgblk *)NULL) == 0)
{
stuff_warning(ctl,
- GT_("Subject: Fetchmail unreachable-server warning.\n"
- "\n"
- "Fetchmail could not reach the mail server %s:")
+ rfc2047e(GT_("Subject: Fetchmail unreachable-server warning."), nl_langinfo(CODESET)));
+ stuff_warning(ctl, "");
+ stuff_warning(ctl, GT_("Fetchmail could not reach the mail server %s:"),
ctl->server.pollname);
stuff_warning(ctl, errbuf, ctl->server.pollname);
close_warning_by_mail(ctl, (struct msgblk *)NULL);
@@ -1220,8 +1224,9 @@ static int do_session(
{
ctl->wehavesentauthnote = 1;
stuff_warning(ctl,
- GT_("Subject: fetchmail authentication failed on %s@%s\n"),
+ rfc2047e(GT_("Subject: fetchmail authentication failed on %s@%s"), nl_langinfo(CODESET)),
ctl->remotename, ctl->server.truename);
+ stuff_warning(ctl, "");
stuff_warning(ctl,
GT_("Fetchmail could not get mail from %s@%s.\n"),
ctl->remotename,
@@ -1292,8 +1297,9 @@ is restored."));
if (!open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
stuff_warning(ctl,
- GT_("Subject: fetchmail authentication OK on %s@%s\n"),
+ rfc2047e(GT_("Subject: fetchmail authentication OK on %s@%s"), nl_langinfo(CODESET)),
ctl->remotename, ctl->server.truename);
+ stuff_warning(ctl, "");
stuff_warning(ctl,
GT_("Fetchmail was able to log into %s@%s.\n"),
ctl->remotename,