summaryrefslogtreecommitdiff
path: root/notifier
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-05-11 10:25:39 -0700
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-05-11 10:25:39 -0700
commit2de7c5f81cf94b6387969d9f694ea28af06c86e1 (patch)
treeb67d24d962a455193c322d80b758035f00336fb3 /notifier
parent8127ebd190a26ff859c47b01020ac00ffdefe0d7 (diff)
downloadcups-2de7c5f81cf94b6387969d9f694ea28af06c86e1.tar.gz
Update changelog, copyright...
Diffstat (limited to 'notifier')
-rw-r--r--notifier/mailto.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/notifier/mailto.c b/notifier/mailto.c
index 9b3aeccab..93258556a 100644
--- a/notifier/mailto.c
+++ b/notifier/mailto.c
@@ -1,10 +1,11 @@
/*
* "mailto" notifier for CUPS.
*
- * Copyright 2007-2011 by Apple Inc.
- * Copyright 1997-2005 by Easy Software Products.
+ * Copyright © 2007-2018 by Apple Inc.
+ * Copyright © 1997-2005 by Easy Software Products.
*
- * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more
+ * information.
*/
/*
@@ -32,8 +33,7 @@ char mailtoSendmail[1024]; /* Sendmail program to use */
* Local functions...
*/
-void email_message(const char *to, const char *subject,
- const char *text);
+void email_message(const char *to, const char *subject, const char *text);
int load_configuration(void);
cups_file_t *pipe_sendmail(const char *to);
void print_attributes(ipp_t *ipp, int indent);
@@ -229,7 +229,9 @@ email_message(const char *to, /* I - Recipient of message */
if (strchr(mailtoSMTPServer, ':'))
+ {
fp = cupsFileOpen(mailtoSMTPServer, "s");
+ }
else
{
char spec[1024]; /* Host:service spec */