Examples of EmailID


Examples of com.stimulus.archiva.domain.EmailID

        boolean att  = (attach!=null) ? Integer.parseInt(doc.get("attach"))==1 : false;
       
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
        String sentDate = doc.get("sentdate");
        Date sent = (sentDate!=null) ? format.parse(sentDate, new ParsePosition(1)) : new Date(0);
        addMessage(new EmailID(uid), score, subject,to,from, sent, sz, att, pri);
      } else {
     
        // legacy index (all fields are taken from the email directly as opposed to the lucene index
        addMessage(new EmailID(uid), score);
        setFetchMessage(new LegacyFetchMessage());
      }
    }
View Full Code Here

Examples of com.stimulus.archiva.domain.EmailID

  public String getUniqueID() {
    return searchResult.getEmailId().getUniqueID();
  }
 
  public String getVolumeID() {
    EmailID emailID = searchResult.getEmailId();
    Volume volume = emailID.getVolume();
    if (volume!=null) {
      String volumeID = volume.getID();
      return volumeID;
    } else return null;
    //return searchResult.getEmailId().getVolume().getID();
View Full Code Here

Examples of com.stimulus.archiva.domain.EmailID

            while (!shutdown) {
                    try {  
                       indexers = new ArrayList<IndexAction>();
                      
                          for (int i=0; i<indexThreads;i++) {
                            EmailID emailId = (EmailID)indexQueue.removeLast(); // will throw exception if not found
                            logger.debug("found new message in indexing queue {"+emailId+"}");
                           Volume volume = emailId.getVolume();
                           VolumeIndex vs = getVolumeIndex(volume);
                           vs.openIndex()
                           t++;
                            IndexAction action =  new IndexAction(vs,emailId,"indexa"+t);
                                indexers.add(action);
View Full Code Here

Examples of com.stimulus.archiva.domain.EmailID

            }
                }
            } else {
                  logger.debug("unique file name:"+file.getName());
                  Email email = null;
                  EmailID emailID = EmailID.getEmailID(process.workingVolume, getUniqueIdFromFileName(file.getName()));
     
                  try {
                      email = retrieveMessage(emailID);
                      process.process(process.config, process.workingVolume, email, process.completeSize, process.totalSize, process.completeFileCount, process.totalFileCount)
                  } catch (Exception e) {
View Full Code Here

Examples of com.stimulus.archiva.domain.EmailID

    if (volumeName == null || uniqueId == null)
          throw new ArchivaException("assertion failure: null emailId",logger);

    logger.debug("getMessageByID() {volumeName="+volumeName+",uniqueId='"+uniqueId+"'}");
    Volume volume = ConfigurationService.getConfig().getVolumes().getNewVolume(volumeName);
    EmailID emailID = EmailID.getEmailID(volume, uniqueId);
    return messageStore.retrieveMessage(emailID);
  }
View Full Code Here

Examples of com.stimulus.archiva.domain.EmailID

      vols.readyActiveVolume();
      Volume activeVolume = vols.getActiveVolume();
      if (activeVolume==null)
        throw new ArchivaException("failed to archive message. there are no volumes available with sufficient diskspace. please configure one.",logger);
      EmailID emailID = EmailID.getEmailID(activeVolume, message);
      message.setEmailID(emailID)
  }
View Full Code Here

Examples of com.stimulus.archiva.domain.EmailID

   
    public void end(int failed, int success, int total) {};
  
    public boolean recover(InputStream is, String filename) {
      Volumes vols = ConfigurationService.getConfig().getVolumes();
      EmailID emailID = EmailID.getEmailID(null,filename);
      Email email = null;
      try {
       email = new Email(emailID,is);
        assignEmailID(email,vols);
          messageStore.insertMessage(email.getEmailID(), email);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.