[Pkg-xfce-commits] r8440 - in /desktop/trunk/exo/debian: changelog patches/02_exo-compose-mail_add-support-for-bcc.patch patches/series
Yves-Alexis Perez
corsac at moszumanska.debian.org
Sun May 25 12:51:27 UTC 2014
Author: corsac
Date: Sun May 25 12:51:27 2014
New Revision: 8440
URL: http://svn.debian.org/wsvn/pkg-xfce/?sc=1&rev=8440
Log:
* debian/patches:
- 02_exo-compose-mail_add-support-for-bcc added, add support for BCC field
in exo-compose-mail. closes: #748162
Added:
desktop/trunk/exo/debian/patches/02_exo-compose-mail_add-support-for-bcc.patch
Modified:
desktop/trunk/exo/debian/changelog
desktop/trunk/exo/debian/patches/series
Modified: desktop/trunk/exo/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-xfce/desktop/trunk/exo/debian/changelog?rev=8440&op=diff
==============================================================================
--- desktop/trunk/exo/debian/changelog (original)
+++ desktop/trunk/exo/debian/changelog Sun May 25 12:51:27 2014
@@ -1,3 +1,11 @@
+exo (0.10.2-4) UNRELEASED; urgency=medium
+
+ * debian/patches:
+ - 02_exo-compose-mail_add-support-for-bcc added, add support for BCC field
+ in exo-compose-mail. closes: #748162
+
+ -- Yves-Alexis Perez <corsac at debian.org> Sun, 25 May 2014 14:46:20 +0200
+
exo (0.10.2-3) unstable; urgency=low
[ Evgeni Golov ]
Added: desktop/trunk/exo/debian/patches/02_exo-compose-mail_add-support-for-bcc.patch
URL: http://svn.debian.org/wsvn/pkg-xfce/desktop/trunk/exo/debian/patches/02_exo-compose-mail_add-support-for-bcc.patch?rev=8440&op=file
==============================================================================
--- desktop/trunk/exo/debian/patches/02_exo-compose-mail_add-support-for-bcc.patch (added)
+++ desktop/trunk/exo/debian/patches/02_exo-compose-mail_add-support-for-bcc.patch Sun May 25 12:51:27 2014
@@ -0,0 +1,94 @@
+--- a/exo-helper/helpers/exo-compose-mail-1
++++ b/exo-helper/helpers/exo-compose-mail-1
+@@ -40,6 +40,7 @@ my $mailtoUrl = url($ARGV[2]);
+ # mailto:-components
+ my @to = ();
+ my @cc = ();
++my @bcc = ();
+ my $subject = undef;
+ my $body = undef;
+ my @attachments = ();
+@@ -53,6 +54,9 @@ for (my $n = 0; $n < $#headers; $n += 2)
+ elsif ($headers[$n] =~ /^cc$/i ) {
+ push (@cc, $headers[$n + 1]);
+ }
++ elsif ($headers[$n] =~ /^bcc$/i ) {
++ push (@bcc, $headers[$n + 1]);
++ }
+ elsif ($headers[$n] =~ /^subject$/i ) {
+ $subject = $headers[$n + 1];
+ }
+@@ -74,6 +78,7 @@ if ($style eq 'mozilla') {
+ # similar to mozilla-remote, but with --compose
+ my $command = "to='" . join(",", @to) . "'";
+ $command .= ",cc='" . join(",", @cc) . "'";
++ $command .= ",bcc='" . join(",", @bcc) . "'";
+ $command .= ",attachment='" . join(",", @attachments) . "'";
+ $subject and $command .= ",subject='$subject'";
+ $body and $command .= ",body='$body'";
+@@ -87,6 +92,7 @@ elsif ($style eq 'mozilla-remote') {
+ my $command = 'xfeDoCommand(composeMessage';
+ $command .= ",to='" . join(",", @to) . "'";
+ $command .= ",cc='" . join(",", @cc) . "'";
++ $command .= ",bcc='" . join(",", @bcc) . "'";
+ $command .= ",attachment='" . join(",", @attachments) . "'";
+ $subject and $command .= ",subject='$subject'";
+ $body and $command .= ",body='$body'";
+@@ -110,6 +116,9 @@ elsif ($style eq 'evolution') {
+ for my $cc (@cc) {
+ $mailto .= 'cc=' . uri_escape($cc) . '&';
+ }
++ for my $bcc (@bcc) {
++ $mailto .= 'bcc=' . uri_escape($bcc) . '&';
++ }
+ for my $attachment (@attachments) {
+ $mailto .= "attach=$attachment&";
+ }
+@@ -127,6 +136,9 @@ elsif ($style eq 'kmail') {
+ for my $cc (@cc) {
+ push (@argv, '--cc', $cc);
+ }
++ for my $bcc (@bcc) {
++ push (@argv, '--bcc', $bcc);
++ }
+ for my $attachment (@attachments) {
+ push (@argv, '--attach', $attachment);
+ }
+@@ -134,6 +146,7 @@ elsif ($style eq 'kmail') {
+ $body and push (@argv, '--body', $body);
+ push (@argv, '--composer');
+ (@to > 0) and push (@argv, $to[0]);
++ print @argv;
+ }
+ elsif ($style eq 'sylpheed') {
+ # generate the mailto:-URI (somewhat like Evolution)
+@@ -144,6 +157,9 @@ elsif ($style eq 'sylpheed') {
+ for my $cc (@cc) {
+ $mailto .= 'cc=' . $cc . '&';
+ }
++ for my $bcc (@bcc) {
++ $mailto .= 'bcc=' . $bcc . '&';
++ }
+ $subject and $mailto .= 'subject=' . uri_escape($subject) . '&';
+ $body and $mailto .= 'body=' . uri_escape($body);
+
+@@ -171,6 +187,9 @@ elsif ($style eq 'balsa') {
+ for my $cc (@cc) {
+ $mailto .= 'cc=' . uri_escape($cc) . '&';
+ }
++ for my $bcc (@bcc) {
++ $mailto .= 'bcc=' . uri_escape($bcc) . '&';
++ }
+ $subject and $mailto .= 'subject=' . uri_escape($subject) . '&';
+ $body and $mailto .= 'body=' . uri_escape($body);
+
+@@ -185,6 +204,9 @@ elsif ($style eq 'mutt') {
+ for my $cc (@cc) {
+ push (@argv, '-c', $cc);
+ }
++ for my $bcc (@bcc) {
++ push (@argv, '-b', $bcc);
++ }
+ for my $uri (@attachments) {
+ push (@argv, '-a', $uri->path ());
+ }
Modified: desktop/trunk/exo/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-xfce/desktop/trunk/exo/debian/patches/series?rev=8440&op=diff
==============================================================================
--- desktop/trunk/exo/debian/patches/series (original)
+++ desktop/trunk/exo/debian/patches/series Sun May 25 12:51:27 2014
@@ -1 +1,2 @@
0001-Fix-exo_str_looks_like_an_uri-bug-10098.patch
+02_exo-compose-mail_add-support-for-bcc.patch
More information about the Pkg-xfce-commits
mailing list