+2007-12-20 18:22 mones 0.2.0svn28
+
+ * clawsker
+ Detect running Claws Mail in alternate dir when
+ option --alternate-config-dir is given
+ * README
+ Fix typo
+
2007-12-19 11:57 mones 0.2.0
* VERSION
Contributing
------------
-Patches, and specially, new translations (or updates to th existing) are
+Patches, and specially, new translations (or updates to the existing) are
welcome.
To create a new translation just change to 'po' directory, copy 'clawsker.pot'
=head1 LIMITATIONS
-Alternate configuration directories are not (yet) supported.
+A running Claws Mail cannot be detected if using the --clawsrc option because
+the directory is not assumed to be a Claws Mail configuration dir. If that is
+the case the --alternate-config-dir option instead.
=head1 AUTHOR
# values of all preferences handled by clawsker
my %HPVALUE = ();
# default config dir and file name
+my $ALTCONFIGDIR = FALSE;
my $CONFIGDIR = $ENV{HOME} . '/.claws-mail/';
my $CONFIGRC = 'clawsrc';
}
sub check_claws_not_running() {
- my $socket = "/tmp/claws-mail-$<";
+ my $socket = ($ALTCONFIGDIR)? "/tmp/": $CONFIGDIR;
+ $socket .= "claws-mail-$<";
-S $socket and die "$xl::s{e_error}$xl::s{e_running}\n";
}
die "$xl::s{e_error}$xl::s{e_notadir}\n"
unless -d $ARGV[$arg];
$CONFIGDIR = $ARGV[$arg];
+ $ALTCONFIGDIR = TRUE;
last;
};
/--clawsrc/ && do {