/*
Bacula® - The Network Backup Solution
- Copyright (C) 2001-2012 Free Software Foundation Europe e.V.
+ Copyright (C) 2001-2014 Free Software Foundation Europe e.V.
- The main author of Bacula is Kern Sibbald, with contributions from
- many others, a complete list can be found in the file AUTHORS.
- This program is Free Software; you can redistribute it and/or
- modify it under the terms of version three of the GNU Affero General Public
- License as published by the Free Software Foundation and included
- in the file LICENSE.
+ The main author of Bacula is Kern Sibbald, with contributions from many
+ others, a complete list can be found in the file AUTHORS.
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301, USA.
+ You may use this file and others of this release according to the
+ license defined in the LICENSE file, which includes the Affero General
+ Public License, v3.0 ("AGPLv3") and some additional permissions and
+ terms pursuant to its AGPLv3 Section 7.
Bacula® is a registered trademark of Kern Sibbald.
- The licensor of Bacula is the Free Software Foundation Europe
- (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
- Switzerland, email:ftf@fsfeurope.org.
*/
/*
Derived from a SMTPclient:
- ======== Original copyrights ==========
+ ======== Original copyrights ==========
SMTPclient -- simple SMTP client
/*
* Dummy functions
*/
-int generate_daemon_event(JCR *jcr, const char *event)
+int generate_daemon_event(JCR *jcr, const char *event)
{
return 1;
}
static bool content_utf8 = false;
static resolv_type default_resolv_type = RESOLV_PROTO_IPV4;
-/*
+/*
* Take input that may have names and other stuff and strip
* it down to the mail box address ... i.e. what is enclosed
* in < >. Otherwise add < >.
*q = 0;
}
Dmsg2(100, "cleanup in=%s out=%s\n", addr, buf);
- return buf;
+ return buf;
}
/*
#else
const char *options = "48ac:d:f:h:r:s:l:?";
#endif
-
+
setlocale(LC_ALL, "en_US");
bindtextdomain("bacula", LOCALEDIR);
textdomain("bacula");
get_response(); /* banner */
chat("HELO %s\r\n", my_hostname);
chat("MAIL FROM:%s\r\n", cleanup_addr(from_addr, buf, sizeof(buf)));
-
+
for (i = 0; i < argc; i++) {
Dmsg1(20, "rcpt to: %s\n", argv[i]);
chat("RCPT TO:%s\r\n", cleanup_addr(argv[i], buf, sizeof(buf)));