示例#1
0
 private function createChangeset(Tracker_Artifact_MailGateway_IncomingMessage $incoming_message, $body, $raw_mail)
 {
     $changeset = null;
     if ($incoming_message->isAFollowUp()) {
         $changeset = $this->addFollowUp($incoming_message->getUser(), $incoming_message->getArtifact(), $body);
     } else {
         $artifact = $this->createArtifact($incoming_message->getUser(), $incoming_message->getTracker(), $incoming_message->getSubject(), $body);
         if ($artifact) {
             $this->logger->debug('New artifact created: ' . $artifact->getXRef());
             $changeset = $artifact->getFirstChangeset();
         }
     }
     if ($changeset) {
         $this->linkRawMailToChangeset($raw_mail, $changeset);
     }
 }
示例#2
0
 private function logNoSufficientRightsToCreateChangeset(Tracker_Artifact_MailGateway_IncomingMessage $incoming_message, $raw_mail_parsed)
 {
     $this->logger->info('An artifact for the tracker #' . $incoming_message->getTracker()->getId() . ' has been received but this tracker does not allow create/reply by mail or' . ' his configuration is not compatible with this feature');
     $this->notifier->sendErrorMailTrackerGeneric($raw_mail_parsed);
 }