Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
92391e7c
Commit
92391e7c
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Make SMTP configuration elements optional.
parent
1e41897f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AutoTx/Resources/configuration-example.xml
+9
-6
9 additions, 6 deletions
AutoTx/Resources/configuration-example.xml
AutoTx/XmlWrapper/ServiceConfig.cs
+13
-4
13 additions, 4 deletions
AutoTx/XmlWrapper/ServiceConfig.cs
with
22 additions
and
10 deletions
AutoTx/Resources/configuration-example.xml
+
9
−
6
View file @
92391e7c
...
...
@@ -62,12 +62,6 @@
<ProcessName>
wordpad
</ProcessName>
</BlacklistedProcesses>
<SmtpHost>
smtp.mydomain.xy
</SmtpHost>
<!--><SmtpHost /><-->
<SmtpPort>
25
</SmtpPort>
<SmtpUserCredential
/>
<SmtpPasswortCredential
/>
<!-- SendAdminNotification: send email to user on finished transfers -->
<SendTransferNotification>
true
</SendTransferNotification>
<EmailFrom>
admin@mydomain.xy
</EmailFrom>
...
...
@@ -85,6 +79,15 @@
<!-- OPTIONAL CONFIGURATION SETTINGS -->
<!-- SmtpHost: SMTP server hostname -->
<SmtpHost>
smtp.mydomain.xy
</SmtpHost>
<!-- SmtpPort: SMTP server port, defaults to 25 if omitted -->
<SmtpPort>
25
</SmtpPort>
<!-- SmtpUserCredential: SMTP user name if authentication required -->
<SmtpUserCredential
/>
<!-- SmtpPasswortCredential: SMTP password if authentication required -->
<SmtpPasswortCredential
/>
<!-- EnforceInheritedACLs: whether to enforce ACL inheritance when moving
files and directories, see this page for details (DEFAULT: true)
https://support.microsoft.com/en-us/help/320246 -->
...
...
This diff is collapsed.
Click to expand it.
AutoTx/XmlWrapper/ServiceConfig.cs
+
13
−
4
View file @
92391e7c
...
...
@@ -14,8 +14,14 @@ namespace AutoTx.XmlWrapper
{
public
ServiceConfig
()
{
// set values for the optional XML elements:
SmtpHost
=
""
;
SmtpPort
=
25
;
SmtpUserCredential
=
""
;
SmtpPasswortCredential
=
""
;
EnforceInheritedACLs
=
true
;
}
#
region
required
configuration
parameters
/// <summary>
/// A human friendly name for the host, to be used in emails etc.
...
...
@@ -59,9 +65,7 @@ namespace AutoTx.XmlWrapper
/// to keep the temporary data of running transfers.
/// </summary>
public
string
TmpTransferDir
{
get
;
set
;
}
public
string
SmtpHost
{
get
;
set
;
}
public
string
SmtpUserCredential
{
get
;
set
;
}
public
string
SmtpPasswortCredential
{
get
;
set
;
}
public
string
EmailFrom
{
get
;
set
;
}
public
string
AdminEmailAdress
{
get
;
set
;
}
public
string
AdminDebugEmailAdress
{
get
;
set
;
}
...
...
@@ -71,7 +75,6 @@ namespace AutoTx.XmlWrapper
public
int
InterPacketGap
{
get
;
set
;
}
public
int
MaxCpuUsage
{
get
;
set
;
}
public
int
MinAvailableMemory
{
get
;
set
;
}
public
int
SmtpPort
{
get
;
set
;
}
public
int
AdminNotificationDelta
{
get
;
set
;
}
public
int
StorageNotificationDelta
{
get
;
set
;
}
...
...
@@ -93,10 +96,16 @@ namespace AutoTx.XmlWrapper
[
XmlArrayItem
(
ElementName
=
"ProcessName"
)]
public
List
<
string
>
BlacklistedProcesses
{
get
;
set
;
}
#
endregion
#
region
optional
configuration
parameters
public
string
SmtpHost
{
get
;
set
;
}
public
string
SmtpUserCredential
{
get
;
set
;
}
public
string
SmtpPasswortCredential
{
get
;
set
;
}
public
int
SmtpPort
{
get
;
set
;
}
/// <summary>
/// EnforceInheritedACLs: whether to enforce ACL inheritance when moving files and
/// directories, see https://support.microsoft.com/en-us/help/320246 for more details.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment