protected function getSubscriberInfo(DeliveranceList $list)
 {
     $info = $list->getDefaultSubscriberInfo();
     // Send welcome is used to signify a new signup to the list. In that
     // case set correct site as the source.
     if ($this->send_welcome && $this->app->config->mail_chimp->source != '') {
         $info['source'] = $this->app->config->mail_chimp->source;
     }
     return $info;
 }
 protected function subscribe(DeliveranceList $list)
 {
     $default_info = $list->getDefaultSubscriberInfo();
     // Check to see if the email address is already a member before doing
     // anything else. This allows the welcome flag to be set correctly,
     // and for subscriber info to be based on whether it's a new member or
     // not.
     $email = $this->getEmail();
     $this->checkMember($list, $email);
     $info = $this->getSubscriberInfo($list);
     $array_map = $this->getArrayMap();
     $response = $list->subscribe($email, $info, $this->send_welcome, $array_map);
     $this->handleSubscribeResponse($list, $response);
     if ($response === DeliveranceList::SUCCESS || $response === DeliveranceList::QUEUED) {
         $this->sendNotification($list);
     }
 }