Exemplo n.º 1
0
        public override void LoadDatabase()
        {
            try {
                db = new TB.Database(account, DbFile);
                db.Load();
            } catch (Exception e) {
                Logger.Log.Warn(e, "Failed to load {0}", DbFile);
                return;
            }

            if (db.Count <= 0)
            {
                Logger.Log.Debug("Empty file {0}; skipping", DbFile);
                return;
            }

            FullIndex = (Thunderbird.IsFullyIndexable(DbFile) ? true : false);
            Logger.Log.Info("Indexing {0} Movemails ({1})", db.Count, RelativePath);
        }
Exemplo n.º 2
0
        public override void LoadDatabase()
        {
            try {
                db = new TB.Database(account, DbFile);
                db.Load();

                Hashtable tbl = db.Db.Compile("1", "ns:msg:db:row:scope:dbfolderinfo:all");
                mailbox_name = (string)tbl ["mailboxName"];
            } catch (Exception e) {
                Logger.Log.Warn(e, "Failed to load {0}:", DbFile);
                return;
            }

            if (db.Count <= 0)
            {
                Logger.Log.Debug("Empty file {0}; skipping", DbFile);
                return;
            }

            FullIndex = (Thunderbird.IsFullyIndexable(DbFile) ? true : false);
            Logger.Log.Info("Indexing {0} containing {1} mails ({2})", RelativePath, db.Count, (FullIndex ? "Full" : "Partial"));
        }