]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - notifier/mailto.c
Load cups into easysw/current.
[thirdparty/cups.git] / notifier / mailto.c
index e90a9eeca5fc2ca242ed024529c5ff2aa05dd277..afa1a30d01d13a9f39ba98322aa57025628cf1d0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: mailto.c 4961 2006-01-20 22:19:13Z mike $"
+ * "$Id: mailto.c 5235 2006-03-06 13:02:23Z mike $"
  *
  *   "mailto" notifier for the Common UNIX Printing System (CUPS).
  *
@@ -274,7 +274,8 @@ email_message(const char *to,               /* I - Recipient of message */
 
     fprintf(stderr, "DEBUG: Connected to \"%s\"...\n", mailtoSMTPServer);
 
-    cupsFilePrintf(fp, "HELO %s\r\n", httpGetHostname(hostbuf, sizeof(hostbuf)));
+    cupsFilePrintf(fp, "HELO %s\r\n",
+                   httpGetHostname(NULL, hostbuf, sizeof(hostbuf)));
     fprintf(stderr, "DEBUG: >>> HELO %s\n", hostbuf);
 
     if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500)
@@ -413,7 +414,7 @@ load_configuration(void)
     strlcpy(mailtoFrom, server_admin, sizeof(mailtoFrom));
   else
     snprintf(mailtoFrom, sizeof(mailtoFrom), "root@%s",
-             httpGetHostname(line, sizeof(line)));
+             httpGetHostname(NULL, line, sizeof(line)));
 
   strlcpy(mailtoSendmail, "/usr/sbin/sendmail", sizeof(mailtoSendmail));
 
@@ -794,5 +795,5 @@ print_attributes(ipp_t *ipp,                /* I - IPP request */
 
 
 /*
- * End of "$Id: mailto.c 4961 2006-01-20 22:19:13Z mike $".
+ * End of "$Id: mailto.c 5235 2006-03-06 13:02:23Z mike $".
  */