Skip to content

Commit 079bf93

Browse files
authored
fix: remove mail patches (gitextensions#12522)
Create patches had an option to mail patches directly. This handling was not working with newer mail protocols and certainly not web based email. Also, the implementation would be completely broken with .net10. The implementation was therefore removed. The design of the form was slightly cleaned up as well.
1 parent 55f1e8a commit 079bf93

File tree

12 files changed

+175
-1027
lines changed

12 files changed

+175
-1027
lines changed

src/app/GitCommands/Settings/AppSettings.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -992,24 +992,6 @@ public static GitPullAction FormPullAction
992992
set => SetEnum("FormPullAction", value);
993993
}
994994

995-
public static string SmtpServer
996-
{
997-
get => SettingsContainer.Detailed().SmtpServer;
998-
set => SettingsContainer.Detailed().SmtpServer = value;
999-
}
1000-
1001-
public static int SmtpPort
1002-
{
1003-
get => SettingsContainer.Detailed().SmtpPort;
1004-
set => SettingsContainer.Detailed().SmtpPort = value;
1005-
}
1006-
1007-
public static bool SmtpUseSsl
1008-
{
1009-
get => SettingsContainer.Detailed().SmtpUseSsl;
1010-
set => SettingsContainer.Detailed().SmtpUseSsl = value;
1011-
}
1012-
1013995
public static bool AutoStash
1014996
{
1015997
get => GetBool("autostash", false);

src/app/GitCommands/Settings/DetailedSettings.cs

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ internal sealed class DetailedSettings : IDetailedSettings
66
{
77
private const string DetailedGroupName = "Detailed";
88

9-
private const string SmtpServerDefault = "smtp.gmail.com";
10-
private const int SmtpPortDefault = 465;
11-
private const bool SmtpUseSslDefault = true;
129
private const bool GetRemoteBranchesDirectlyFromRemoteDefault = false;
1310
private const bool AddMergeLogMessagesDefault = false;
1411
private const int MergeLogMessagesCountDefault = 20;
@@ -20,48 +17,6 @@ public DetailedSettings(SettingsSource settingsSource)
2017
_settingsSource = settingsSource;
2118
}
2219

23-
public string SmtpServer
24-
{
25-
get => _settingsSource.GetString(nameof(SmtpServer), SmtpServerDefault);
26-
set
27-
{
28-
if (SmtpServer == value)
29-
{
30-
return;
31-
}
32-
33-
_settingsSource.SetString(nameof(SmtpServer), value);
34-
}
35-
}
36-
37-
public int SmtpPort
38-
{
39-
get => _settingsSource.GetInt(nameof(SmtpPort), SmtpPortDefault);
40-
set
41-
{
42-
if (SmtpPort == value)
43-
{
44-
return;
45-
}
46-
47-
_settingsSource.SetInt(nameof(SmtpPort), value);
48-
}
49-
}
50-
51-
public bool SmtpUseSsl
52-
{
53-
get => _settingsSource.GetBool(nameof(SmtpUseSsl), SmtpUseSslDefault);
54-
set
55-
{
56-
if (SmtpUseSsl == value)
57-
{
58-
return;
59-
}
60-
61-
_settingsSource.SetBool(nameof(SmtpUseSsl), value);
62-
}
63-
}
64-
6520
public bool GetRemoteBranchesDirectlyFromRemote
6621
{
6722
get => _settingsSource.GetBool($"{DetailedGroupName}.{nameof(GetRemoteBranchesDirectlyFromRemote)}", GetRemoteBranchesDirectlyFromRemoteDefault);

src/app/GitExtensions.Extensibility/Settings/IDetailedSettings.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
public interface IDetailedSettings
44
{
5-
string SmtpServer { get; set; }
6-
7-
int SmtpPort { get; set; }
8-
9-
bool SmtpUseSsl { get; set; }
10-
115
bool GetRemoteBranchesDirectlyFromRemote { get; set; }
126

137
bool AddMergeLogMessages { get; set; }

0 commit comments

Comments
 (0)