Initial project's source code check-in.
This commit is contained in:
commit
b03b0b373f
4573 changed files with 981205 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.Mail.SM7.Extensions
|
||||
{
|
||||
public static class MailAccountExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Prepares all the necessary parameters to call SetUserSettings web method.
|
||||
/// </summary>
|
||||
/// <param name="mailbox"></param>
|
||||
/// <returns></returns>
|
||||
public static string[] PrepareSetRequestedUserSettingsWebMethodParams(this MailAccount mailbox)
|
||||
{
|
||||
return new string[] {
|
||||
"isenabled=" + mailbox.Enabled.ToString(),
|
||||
// Fix for incorrect mailbox size
|
||||
"maxsize=" + (mailbox.UnlimitedSize ? "0" : mailbox.MaxMailboxSize.ToString()),
|
||||
"lockpassword=" + mailbox.PasswordLocked.ToString(),
|
||||
"passwordlocked" + mailbox.PasswordLocked.ToString(),
|
||||
"replytoaddress=" + (mailbox.ReplyTo != null ? mailbox.ReplyTo : ""),
|
||||
"signature=" + (mailbox.Signature != null ? mailbox.Signature : ""),
|
||||
"spamforwardoption=none"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue