Saturday, September 24, 2011

Synchronising Folder Problem in Evolution Mail

My Evolution Mail kept synchronising one of the existing folders whenever I clicked on it or read any of the emails inside the folder.


Forcing Evolution to re-index its mailbox file by deleting the associated files with the extensions ".index", and "cmeta" in "~/.local/share/evolution/mail/local/Inbox.sbd" didn't help. The size of the mailfox file for that folder was surprisingly 4GB. Not sure this is the cause of the problem though.

To fix this, I

  • Created a new folder in Evolution.

  • Moved all emails from the folder that had the problem to the new folder. Be patient as this took ages. Evolution was synchronising the folder repeatedly for hours while moving the emails. After it finished, the mailbox file size of the new folder was just a bit over 200 MB.

  • Closed Evolution and deleted the bad folder by removing all of its associated files (mailbox, cmeta, index, and data files) in "~/.local/share/evolution/mail/local/Inbox.sbd" because trying to delete it in Evolution gave this error:-




Refs
http://ubuntuforums.org/showthread.php?t=974536

Sunday, September 4, 2011

Search for File Contents in Nautilus

Create a script file (text file) called "Find" in "~/.gnome2/nautilus-scripts" and allow it to be executable. Add the commands below in the script file:- 

#!/bin/bash
gnome-search-tool --hidden --path="$*" --contains= 

From its command help:-
--hidden               Select the "Show hidden and backup files" search option
--path=PATH            Set the text of "Look in folder" search option
--contains=STRING      Select and set the "Contains the text" search option

To search for files using this script in Nautilus,
Right click a folder -> Scripts -> Find

Refs
http://forums.linuxmint.com/viewtopic.php?f=42&t=25114