Commit Graph
21 Commits
Author SHA1 Message Date
Kenneth Skovhede 9e6eefad9f Merge branch 'feature/add_single_result_code'
# Conflicts:
#	Duplicati/Library/Modules/Builtin/Strings.cs
2017-01-23 23:32:30 +01:00
Kenneth Skovhede 1424be05f9 Fixed a bunch of typos.
This fixes #2278.
2017-01-23 22:12:24 +01:00
Kenneth Skovhede bc725e0edf Updated SendMail and SendJabberMessage to use the new result codes.
This fixes #2257
2017-01-23 20:49:33 +01:00
Kenneth Skovhede 34ee487379 Fixed a spelling issue 2017-01-15 23:08:52 +01:00
Kenneth Skovhede 6bb1579aa9 Updated MailKit, fixed a bug with DnsLite, added backward compatible tls support from MailKit.
This fixes #1540.
This fixes #1948.
This fixes #2060
This fixes #2225
2017-01-09 23:21:00 +01:00
Max 3ace0ee9b7 fix done 2016-06-25 22:34:53 +02:00
Kenneth Skovhede 841d87abd2 Fixed an issue where the %PARSEDRESULT% field would be empty if a custom --send-mail-level was set 2015-12-26 22:37:30 +01:00
Kenneth Skovhede afdf2e5224 Improved logic for mail templates 2015-09-05 10:17:21 +02:00
Kenneth Skovhede 89e70c1f7b Added the parsed result status as a field that can be sent in the xmpp or email templates.
This fixes #1371.
2015-05-04 10:53:19 +02:00
Kenneth Skovhede d0090632c9 Fixed usage of EntryAssembly to work better with NUnit 2015-04-09 21:52:07 +02:00
Kenneth Skovhede 16c791f0b5 Removed all resx files, now using Duplicati.Library.Localization exclusively 2015-01-20 21:07:24 +01:00
Kenneth Skovhede 997e72ee0e Fixed a warning with --send-mail-level 2014-09-02 18:03:49 +02:00
Kenneth Skovhede 5d5559e169 Added support for multiple mail servers, both manually and through DNS lookup.
Each address is tried by priority until the message passes.
2014-01-18 23:16:34 +01:00
Kenneth Skovhede 393e5e325f Improved autodetection of target stmp server, and added fallback DNS support for Google and OpenDNS 2014-01-18 22:28:51 +01:00
Kenneth Skovhede cb88c5c90b Update issue #882
Status: Fixed

The valid values were not reported for --send-mail-level
2013-11-07 10:14:35 +01:00
Kenneth Skovhede 8f69fc85c2 Removed a bunch of warnings 2013-06-26 21:29:03 +02:00
Kenneth Skovhede d696670598 Reworked the result reporting to support type safe values 2013-05-25 16:40:15 +02:00
Kenneth Skovhede 86b52d364d Added a custom URL parser 2013-05-05 21:18:00 +02:00
kenneth@hexad.dk 86e19e76f8 Fixed a bug where the sendmail-levels were reported as invalid.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1473 59da171f-624f-0410-aa54-27559c288bec
2012-11-03 18:27:37 +00:00
kenneth@hexad.dk 23515674fd Added --backup-name to help when constructing emails and running scripts
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1445 59da171f-624f-0410-aa54-27559c288bec
2012-08-27 18:43:58 +00:00
kenneth@hexad.dk 6822fc69fa Update issue #29
This adds the email feature to Duplicati.
Currently there is no GUI for this, just advanced options.
The options supported are:
--send-mail-to="Name <test@example.com>, Other <test2@example.com>, test3@example.com"
--send-mail-from="Backup Admin <admin@example.com>
--send-mail-subject="Duplicati %OPERATIONNAME% Report"
--send-mail-body="%RESULT%%"
--send-mail-url="tls://smtp.google.com:587"
--send-mail-username="username"
--send-mail-password="password"
--send-mail-level="Warning"
--send-mail-any-operation=true

The only required setting is --send-mail-to.
If the --send-mail-from is not set, it will use the host of the "to" and set "no-reply@" in front.
E.g. --send-mail-to="name@example.com" will cause the sender to be "no-reply@example.com".

If the --send-mail-url is not set, a DNS lookup will find the MX record for the first recipient domain,
and send directly to that. The url can be either "smtp://server:port" or "tis://server:port".

The --send-mail-subject and --send-mail-body parameters can contain placeholders like %RESULT%.
Each option will be exported like this, e.g. %volsize% or %use-ssl%. The special placeholders are:
%RESULT% - The result/log of the backup
%OPERATIONNAME% - The name of the operation, usually "Backup", but could be "Restore" etc.
%REMOTEURL% - The backend url
%LOCALPATH% - The path to the local folders involved (i.e. the folders being backed up)

The --send-mail-level can be either "Success", "Warning" or "Error". Default "Success" means all backups generate an email. "Warning" will only send an email if the backup caused a warning or an error. "Error" will only send an email if the backup failed.

The --send-mail-any-operation can be set to "true" if all operations (e.g. "Restore", "Cleanup", "DeleteAllButN", ...) should generate an email. By default only backup operations will send an email.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@1436 59da171f-624f-0410-aa54-27559c288bec
2012-08-21 09:35:55 +00:00