2006-11-12 [paul] 2.6.0cvs34
[claws.git] / tools / multiwebsearch.pl
index 16ad643ed27e25ea0ed3a7e96fc175ba8d573585..f893c0adf289b8eef16fab03c93c7a16c25bd1c4 100644 (file)
@@ -14,7 +14,7 @@
 #  *
 #  * You should have received a copy of the GNU General Public License
 #  * along with this program; if not, write to the Free Software
-#  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #  *
 
 use Getopt::Long;
@@ -25,11 +25,13 @@ my $what  = '';
 GetOptions("where=s"   => \$where,
           "what=s"     => \$what);
 
-chdir($ENV{HOME} . "/.sylpheed") 
-       || die("Can't find your ~/.sylpheed directory\n");
+$what =~ s/\s/%20/g;
+
+chdir($ENV{HOME} . "/.claws-mail") 
+       || die("Can't find your ~/.claws-mail directory\n");
 
 open (CONF, "<multiwebsearch.conf") 
-       || die("Can't open ~/.sylpheed/multiwebsearch.conf\n");
+       || die("Can't open ~/.claws-mail/multiwebsearch.conf\n");
        @conflines = <CONF>;
 close CONF;
 
@@ -48,8 +50,8 @@ if (!$url) {
        die("No url found with the alias \"$where\"\n");
 } 
 
-open (SYLRC, "<sylpheedrc") 
-       || die("Can't open ~/.sylpheed/sylpheedrc\n");
+open (SYLRC, "<clawsrc") 
+       || die("Can't open ~/.claws-mail/clawsrc\n");
        @rclines = <SYLRC>;
 close SYLRC;