Lines Matching refs:account

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