-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
und - [0.1.1] Scaffolding for POP3 mail
--- Type: und Breaking: False Doc Required: False Part: 1/1
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
public/Nitrocid.Addons/Nitrocid.Extras.MailShell/PopMailCommandExec.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// Nitrocid KS Copyright (C) 2018-2024 Aptivi | ||
// | ||
// This file is part of Nitrocid KS | ||
// | ||
// Nitrocid KS is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Nitrocid KS 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 General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
// | ||
|
||
using Nitrocid.ConsoleBase.Colors; | ||
using Nitrocid.ConsoleBase.Writers; | ||
// using Nitrocid.Extras.MailShell.Tools; | ||
using Nitrocid.Languages; | ||
// using Nitrocid.Network.Connections; | ||
// using Nitrocid.Network.SpeedDial; | ||
using Nitrocid.Shell.ShellBase.Commands; | ||
|
||
namespace Nitrocid.Extras.MailShell | ||
{ | ||
internal class PopMailCommandExec : BaseCommand, ICommand | ||
{ | ||
|
||
public override int Execute(CommandParameters parameters, ref string variableValue) | ||
{ | ||
// Implement on 0.1.1. | ||
TextWriters.Write(Translate.DoTranslation("POP3 mail is returning from 0.0.20.0, but we don't currently plan to release it in this version. Wait for the next version."), KernelColorType.Warning); | ||
// NetworkConnectionTools.OpenConnectionForShell("MailShell", EstablishMailConnection, (_, connection) => | ||
// EstablishMailConnectionSpeedDial(connection), parameters.ArgumentsText); | ||
return 0; | ||
} | ||
|
||
// private NetworkConnection EstablishMailConnection(string username) => | ||
// string.IsNullOrEmpty(username) ? MailLogin.PromptUser() : MailLogin.PromptPassword(username); | ||
|
||
// private NetworkConnection EstablishMailConnectionSpeedDial(SpeedDialEntry connection) => | ||
// MailLogin.PromptPassword(connection.Options[0].ToString()); | ||
|
||
} | ||
} |