Fixing bug in startup sequence

imap-support
Jordan Wages 1 month ago
parent 9e32e275b4
commit 2c63a393e1
  1. 6
      gray-duck-mail/gray-duck-mail-web/Startup.cs
  2. 6
      gray-duck-mail/gray-duck-mail-web/Worker/EmailSender.cs

@ -150,12 +150,6 @@ namespace GrayDuckMail.Web
{
logger.Info("Application stopped.");
});
//Configure Email Unsubscribe Link
if (DockerEnvironmentVariables.WebUnsubscribe)
{
EmailHelper.ConfigureUnsubscribeLink(DockerEnvironmentVariables.WebExternalURL, DockerEnvironmentVariables.WebUseHTTPS);
}
}
#endregion

@ -42,6 +42,12 @@ namespace GrayDuckMail.Web.Worker
logger.Debug("Establishing database context using {0}", ApplicationSettings.DatabaseFilePath.AbsolutePath);
var database = new SqliteDatabase(ApplicationSettings.DatabaseFilePath.AbsolutePath);
//Configure Email Unsubscribe Link
if (DockerEnvironmentVariables.WebUnsubscribe)
{
EmailHelper.ConfigureUnsubscribeLink(DockerEnvironmentVariables.WebExternalURL, DockerEnvironmentVariables.WebUseHTTPS);
}
logger.Info("Beginning email sender loop.");
while (!cancellationToken.IsCancellationRequested)
{

Loading…
Cancel
Save