예제 #1
0
        // FIXME: This need some more info
        private Indexable MoveMailToIndexable(TB.MoveMail mail)
        {
            Indexable indexable;

            indexable          = NewIndexable(mail.Uri, DateTime.UtcNow, "MailMessage");
            indexable.MimeType = "message/rfc822";

            string subject = GMime.Utils.HeaderDecodePhrase(mail.GetString("subject"));

            indexable.AddProperty(Property.New("dc:title", subject));

            return(indexable);
        }
예제 #2
0
        public override Indexable GetNextIndexable()
        {
            TB.MoveMail message = DbEnumerator.Current as TB.MoveMail;

            // If status is different, than something happend when loading this mail and we dont'
            // want to change it's status.
            if (message.GetObject("FullIndex") == null)
            {
                message.SetObject("FullIndex", (object)FullIndex);
            }

            return(MoveMailToIndexable(message));
        }