Lines Matching refs:account

240 		int32 account;  in RefsReceived()  local
241 if (node.ReadAttr(B_MAIL_ATTR_ACCOUNT_ID, B_INT32_TYPE, 0, &account, in RefsReceived()
242 sizeof(account)) < 0) in RefsReceived()
245 BInboundMailProtocol* protocol = _InboundProtocol(account); in RefsReceived()
293 int32 account = msg->FindInt32("account"); in MessageReceived() local
299 BInboundMailProtocol* protocol = _InboundProtocol(account); in MessageReceived()
476 int32 account = -1; in GetNewMessages() local
477 if (msg->FindInt32("account", &account) == B_OK && account >= 0) { in GetNewMessages()
479 BInboundMailProtocol* protocol = _InboundProtocol(account); in GetNewMessages()
502 int32 account = msg->GetInt32("account", -1); in SendPendingMessages() local
516 if (account >= 0) { in SendPendingMessages()
518 query.PushInt32(account); in SendPendingMessages()
537 &account, sizeof(int32)) < 0) in SendPendingMessages()
538 account = -1; in SendPendingMessages()
540 _AddMessage(messages[account], entry, node); in SendPendingMessages()
550 _AddMessage(messages[account], entry, BNode(&entry)); in SendPendingMessages()
637 account_protocols account; in _InitAccount() local
641 account.inboundProtocol = _CreateInboundProtocol(settings, in _InitAccount()
642 account.inboundImage); in _InitAccount()
644 if (account.inboundProtocol != NULL) { in _InitAccount()
647 account.inboundProtocol->SetMailNotifier(notifier); in _InitAccount()
648 account.inboundProtocol->Run(); in _InitAccount()
653 account.outboundProtocol = _CreateOutboundProtocol(settings, in _InitAccount()
654 account.outboundImage); in _InitAccount()
656 if (account.outboundProtocol != NULL) { in _InitAccount()
659 account.outboundProtocol->SetMailNotifier(notifier); in _InitAccount()
660 account.outboundProtocol->Run(); in _InitAccount()
664 (int)settings.AccountID(), account.inboundProtocol, in _InitAccount()
665 account.outboundProtocol); in _InitAccount()
667 if (account.inboundProtocol != NULL || account.outboundProtocol != NULL) in _InitAccount()
668 fAccounts[settings.AccountID()] = account; in _InitAccount()
685 int32 account = message->FindInt32("account", i); in _ReloadAccounts() local
686 AccountMap::iterator found = fAccounts.find(account); in _ReloadAccounts()
692 BMailAccountSettings* settings = accounts.AccountByID(account); in _ReloadAccounts()
700 MailDaemonApplication::_RemoveAccount(const account_protocols& account) in _RemoveAccount() argument
702 if (account.inboundProtocol != NULL) { in _RemoveAccount()
703 account.inboundProtocol->Lock(); in _RemoveAccount()
704 account.inboundProtocol->Quit(); in _RemoveAccount()
706 unload_add_on(account.inboundImage); in _RemoveAccount()
709 if (account.outboundProtocol != NULL) { in _RemoveAccount()
710 account.outboundProtocol->Lock(); in _RemoveAccount()
711 account.outboundProtocol->Quit(); in _RemoveAccount()
713 unload_add_on(account.outboundImage); in _RemoveAccount()
763 MailDaemonApplication::_InboundProtocol(int32 account) in _InboundProtocol() argument
765 AccountMap::iterator found = fAccounts.find(account); in _InboundProtocol()
773 MailDaemonApplication::_OutboundProtocol(int32 account) in _OutboundProtocol() argument
775 if (account < 0) in _OutboundProtocol()
776 account = BMailSettings().DefaultOutboundAccount(); in _OutboundProtocol()
778 AccountMap::iterator found = fAccounts.find(account); in _OutboundProtocol()