( cvs diff -u -r 1.100.2.56 -r 1.100.2.57 AUTHORS; cvs diff -u -r 1.382.2.418 -r 1.382.2.419 src/compose.c; cvs diff -u -r 1.1.2.42 -r 1.1.2.43 src/gtk/authors.h; ) > 3.0.2cvs112.patchset
( cvs diff -u -r 1.36.2.121 -r 1.36.2.122 src/common/utils.c; ) > 3.0.2cvs113.patchset
( cvs diff -u -r 1.5.2.70 -r 1.5.2.71 src/gtk/gtkutils.c; ) > 3.0.2cvs114.patchset
+( cvs diff -u -r 1.30.2.24 -r 1.30.2.25 tools/README; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 tools/claws-mail-compose-insert-files.pl; ) > 3.0.2cvs115.patchset
WHAT IT DOES
This script enables inserting files into the message body of a new
Claws Mail Compose window from the command line. Additionally To,
- Cc, Subject and files to attach to the message can be specified.
+ Cc, Bcc, Subject and files to attach to the message can be specified.
HOW TO USE IT
claws-mail-compose-insert-files.pl [options]
Options:
- --help -h
- --to mail@address.net[,mail2@address.net]
- --cc mail@address.net[,mail2@address.net]
- --subject "My subject"
- --attach FILE
- --insert FILE
-
+ --help -h
+ --to "Person One <mail@address.net>"
+ --cc "Person One <mail@address.net>"
+ --bcc "Person One <mail@address.net>"
+ --subject "My subject"
+ --attach FILE
+ --insert FILE
+
+ For multiple recipients separate the addresses with ','
+ e.g. --to "Person One <mail@address.net>,Person Two <mail2@address.net>"
--attach and --insert can be used multiple times
Contact: Paul Mangan <paul@claws-mail.org>
# *
# This script enables inserting files into the message body of a new Claws Mail
-# Compose window from the command line. Additionally To, Cc, Subject and files
-# to attach to the message can be specified
+# Compose window from the command line. Additionally To, Cc, Bcc, Subject and
+# files to attach to the message can be specified
my (@inserts,@attachments,@lines,@output) = ();
my $body = "";
my $attach_list = "";
my $to = "";
my $cc = "";
+my $bcc = "";
my $subject = "";
my $help = "";
GetOptions("to=s" => \$to,
"cc=s" => \$cc,
+ "bcc=s" => \$bcc,
"subject=s" => \$subject,
"attach=s" => \@attachments,
"insert=s" => \@inserts,
$body .= "$line";
}
+$to = uri_escape($to);
+$cc = uri_escape($cc);
+$bcc = uri_escape($bcc);
+$subject = uri_escape($subject);
$body = uri_escape($body);
-system("claws-mail --compose \"mailto:$to?subject=$subject&cc=$cc&body=$body\" --attach $attach_list");
+system("claws-mail --compose \"mailto:$to?subject=$subject&cc=$cc&bcc=$bcc&body=$body\" --attach $attach_list");
exit;
claws-mail-compose-insert-files.pl [options]
Options:
--help -h
- --to mail@address.net[,mail2@address.net]
- --cc mail@address.net[,mail2@address.net]
+ --to "Person One <mail@address.net>"
+ --cc "Person One <mail@address.net>"
+ --bcc "Person One <mail@address.net>"
--subject "My subject"
--attach FILE
--insert FILE
+For multiple recipients separate the addresses with ','
+e.g. --to "Person One <mail@address.net>,Person Two <mail2@address.net>"
--attach and --insert can be used multiple times
EOH