コード例 #1
0
ファイル: Contact.cs プロジェクト: ArsenShnurkov/beagle-1
		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;
			}
			
			Logger.Log.Info ("Indexing address book containing {0} contact(s) ({1})", db.Count, RelativePath);
		}
コード例 #2
0
ファイル: Nntp.cs プロジェクト: ArsenShnurkov/beagle-1
		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} NNTP messages", db.Count);
		}
コード例 #3
0
ファイル: Contact.cs プロジェクト: ArsenShnurkov/beagle-1
        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;
            }

            Logger.Log.Info("Indexing address book containing {0} contact(s) ({1})", db.Count, RelativePath);
        }
コード例 #4
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);
        }
コード例 #5
0
ファイル: Mail.cs プロジェクト: ArsenShnurkov/beagle-1
		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"));
		}
コード例 #6
0
ファイル: Mail.cs プロジェクト: ArsenShnurkov/beagle-1
        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"));
        }
コード例 #7
0
ファイル: Rss.cs プロジェクト: ArsenShnurkov/beagle-1
		public override void LoadDatabase ()
		{
			string folder_name = null;
			
			try {
				db = new TB.Database (account, DbFile);
				db.Load ();
				
				Hashtable tbl = db.Db.Compile ("1", "ns:msg:db:row:scope:dbfolderinfo:all");
				feed_url = tbl ["feedUrl"] as string;
				folder_name = tbl ["folderName"] as string;
			} 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;
			}
			
			Logger.Log.Info ("Indexing \"{0}\" RSS feed containing {1} entries ({2})", folder_name, db.Count, RelativePath);
		}
コード例 #8
0
ファイル: Rss.cs プロジェクト: ArsenShnurkov/beagle-1
        public override void LoadDatabase()
        {
            string folder_name = null;

            try {
                db = new TB.Database(account, DbFile);
                db.Load();

                Hashtable tbl = db.Db.Compile("1", "ns:msg:db:row:scope:dbfolderinfo:all");
                feed_url    = tbl ["feedUrl"] as string;
                folder_name = tbl ["folderName"] as string;
            } 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;
            }

            Logger.Log.Info("Indexing \"{0}\" RSS feed containing {1} entries ({2})", folder_name, db.Count, RelativePath);
        }