コード例 #1
0
   void 
   FetchAccounts::RefreshPendingList()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_fetchaccounts where fanexttry <= %s and falocked = 0 and faactive = 1 order by faid asc"), SQLStatement::GetCurrentTimestamp());

      _DBLoad(sSQL);
   }
コード例 #2
0
ファイル: RuleCriterias.cpp プロジェクト: jrallo/hMailServer
   void 
   RuleCriterias::Refresh()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_rule_criterias where criteriaruleid = %I64d order by criteriaid asc"), m_iRuleID);

      _DBLoad(sSQL);
   }
コード例 #3
0
ファイル: Aliases.cpp プロジェクト: Bill48105/hmailserver
   void
   Aliases::Refresh()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_aliases where aliasdomainid = %I64d order by aliasname asc"), m_iDomainID);

      _DBLoad(sSQL);
   }
コード例 #4
0
   void 
   FetchAccounts::Refresh()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_fetchaccounts where faaccountid = %I64d")
                        _T(" order by faid asc"), m_iAccountID);

      _DBLoad(sSQL);
   }
コード例 #5
0
 void 
 TCPIPPorts::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Reads all SURBL servers from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL = "select * from hm_tcpipports order by portaddress1 asc, portaddress2 asc, portnumber asc";
    _DBLoad(sSQL);
 }
コード例 #6
0
ファイル: Routes.cpp プロジェクト: OutbackMatt/hmailserver
 void 
 Routes::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Reloads all routes from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL = "select * from hm_routes order by routedomainname asc";
    _DBLoad(sSQL);
 }
コード例 #7
0
 void 
 WhiteListAddresses::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Reads all SURBL servers from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL = "select * from hm_whitelist order by whiteloweripaddress1 asc, whiteloweripaddress2 asc";
    _DBLoad(sSQL);
 }
コード例 #8
0
ファイル: Groups.cpp プロジェクト: bogri5520/hMailServer
   void 
   Groups::Refresh()
   //---------------------------------------------------------------------------()
   // DESCRIPTION:
   // Reads all groups form the database
   //---------------------------------------------------------------------------()
   {
      String sSQL = "select * from hm_groups order by groupname asc";

      _DBLoad(sSQL);
   }
コード例 #9
0
ファイル: Rules.cpp プロジェクト: Bill48105/hmailserver
 void 
 Rules::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Refreshes this collection from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL;
    sSQL.Format(_T("select * from hm_rules where ruleaccountid = %I64d order by rulesortorder asc"), m_iAccountID);
    _DBLoad(sSQL);
 }
コード例 #10
0
   void 
   GroupMembers::Refresh()
   //---------------------------------------------------------------------------()
   // DESCRIPTION:
   // Reads all group members from the database
   //---------------------------------------------------------------------------()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_group_members where membergroupid = %I64d order by memberid asc"), m_iGroupID);

      _DBLoad(sSQL);      
   }
コード例 #11
0
ファイル: Accounts.cpp プロジェクト: bogri5520/hMailServer
   void
   Accounts::Refresh()
   {
      SQLCommand command;

      String sSQL;
      if (m_iDomainID == 0)
      {
         command.SetQueryString(_T("select * from hm_accounts order by accountaddress asc"));
      }
      else if (m_iAccountID == 0)
      {
         command.SetQueryString("select * from hm_accounts where accountdomainid = @DOMAINID order by accountaddress asc");
         command.AddParameter("@DOMAINID", m_iDomainID);
      }
      else
      {
         command.SetQueryString("select * from hm_accounts where accountdomainid = @DOMAINID and accountid = @ACCOUNTID order by accountaddress asc");
         command.AddParameter("@DOMAINID", m_iDomainID);
         command.AddParameter("@ACCOUNTID", m_iAccountID);
      }

      _DBLoad(command);
   }