Exemplo n.º 1
0
        private string GetAccountMessageDirectory(Account account)
        {
            var mailbox = EmailAddressParser.GetMailbox(account.Address);
            var domain  = EmailAddressParser.GetDomain(account.Address);

            return(Path.Combine(_dataDirectory, domain, mailbox));
        }
Exemplo n.º 2
0
        private bool IsMailerDaemonAddress(string address)
        {
            var mailbox = EmailAddressParser.GetMailbox(address);

            return(mailbox.Equals("MAILER-DAEMON", StringComparison.InvariantCultureIgnoreCase));
        }