OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

230 lines
8.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dovecot-pigeonhole/dovecot-2.2-pigeonhole-0.4.0-0100-upstream-fixes.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 72a02fd7203a5d3422e7eaa3ff3a517b619402ae Mon Sep 17 00:00:00 2001
  17. From: Stephan Bosch <stephan@rename-it.nl>
  18. Date: Thu, 9 May 2013 16:39:41 +0200
  19. Subject: [PATCH] Forgot to update Dovecot version in README and man pages.
  20. diff --git a/README b/README
  21. index 19263a1..d4e68b4 100644
  22. --- a/README
  23. +++ b/README
  24. @@ -1,4 +1,4 @@
  25. -Pigeonhole for Dovecot v2.1
  26. +Pigeonhole for Dovecot v2.2
  27. Introduction
  28. ============
  29. @@ -100,8 +100,7 @@ following list outlines the implementation status of each supported extension:
  30. copy (RFC 3894): fully supported.
  31. body (RFC 5173): almost fully supported, but the text body-transform
  32. - implementation is simple and some issues make it still not completely
  33. - RFC compliant.
  34. + implementation is simple.
  35. environment (RFC 5183): fully supported (v0.4.0+).
  36. variables (RFC 5229): fully supported.
  37. vacation (RFC 5230): fully supported.
  38. diff --git a/doc/man/pigeonhole.7.in b/doc/man/pigeonhole.7.in
  39. index f86d5e6..75db9ca 100644
  40. --- a/doc/man/pigeonhole.7.in
  41. +++ b/doc/man/pigeonhole.7.in
  42. @@ -1,5 +1,5 @@
  43. -.\" Copyright (c) 2010-2012 Pigeonhole authors, see the included COPYING file
  44. -.TH "PIGEONHOLE" 7 "2012-01-07" "Pigeonhole for Dovecot v2.1" "Pigeonhole"
  45. +.\" Copyright (c) 2010-2013 Pigeonhole authors, see the included COPYING file
  46. +.TH "PIGEONHOLE" 7 "2013-05-09" "Pigeonhole for Dovecot v2.2" "Pigeonhole"
  47. .\"------------------------------------------------------------------------
  48. .SH NAME
  49. pigeonhole \- Overview of the Pigeonhole project\(aqs Sieve support for the
  50. diff --git a/doc/man/sieve-dump.1.in b/doc/man/sieve-dump.1.in
  51. index faf886f..3ea65f7 100644
  52. --- a/doc/man/sieve-dump.1.in
  53. +++ b/doc/man/sieve-dump.1.in
  54. @@ -1,5 +1,5 @@
  55. -.\" Copyright (c) 2010-2012 Pigeonhole authors, see the included COPYING file
  56. -.TH "SIEVE\-DUMP" 1 "2012-01-07" "Pigeonhole for Dovecot v2.1" "Pigeonhole"
  57. +.\" Copyright (c) 2010-2013 Pigeonhole authors, see the included COPYING file
  58. +.TH "SIEVE\-DUMP" 1 "2013-05-09" "Pigeonhole for Dovecot v2.2" "Pigeonhole"
  59. .\"------------------------------------------------------------------------
  60. .SH NAME
  61. sieve\-dump \- Pigeonhole\(aqs Sieve script binary dump tool
  62. diff --git a/doc/man/sieve-filter.1.in b/doc/man/sieve-filter.1.in
  63. index 1566dfa..df3fc36 100644
  64. --- a/doc/man/sieve-filter.1.in
  65. +++ b/doc/man/sieve-filter.1.in
  66. @@ -1,5 +1,5 @@
  67. -.\" Copyright (c) 2010-2012 Pigeonhole authors, see the included COPYING file
  68. -.TH "SIEVE\-FILTER" 1 "2012-01-07" "Pigeonhole for Dovecot v2.1" "Pigeonhole"
  69. +.\" Copyright (c) 2010-2013 Pigeonhole authors, see the included COPYING file
  70. +.TH "SIEVE\-FILTER" 1 "2013-05-09" "Pigeonhole for Dovecot v2.2" "Pigeonhole"
  71. .SH NAME
  72. sieve\-filter \- Pigeonhole\(aqs Sieve mailbox filter tool
  73. diff --git a/doc/man/sieve-test.1.in b/doc/man/sieve-test.1.in
  74. index 946c5b7..4331250 100644
  75. --- a/doc/man/sieve-test.1.in
  76. +++ b/doc/man/sieve-test.1.in
  77. @@ -1,5 +1,5 @@
  78. -.\" Copyright (c) 2010-2012 Pigeonhole authors, see the included COPYING file
  79. -.TH "SIEVE\-TEST" 1 "2012-01-07" "Pigeonhole for Dovecot v2.1" "Pigeonhole"
  80. +.\" Copyright (c) 2010-2013 Pigeonhole authors, see the included COPYING file
  81. +.TH "SIEVE\-TEST" 1 "2013-05-09" "Pigeonhole for Dovecot v2.2" "Pigeonhole"
  82. .SH NAME
  83. sieve\-test \- Pigeonhole\(aqs Sieve script tester
  84. .\"------------------------------------------------------------------------
  85. diff --git a/doc/man/sievec.1.in b/doc/man/sievec.1.in
  86. index 28ef9e3..9307800 100644
  87. --- a/doc/man/sievec.1.in
  88. +++ b/doc/man/sievec.1.in
  89. @@ -1,5 +1,5 @@
  90. -.\" Copyright (c) 2010-2012 Pigeonhole authors, see the included COPYING file
  91. -.TH "SIEVEC" 1 "2012-01-07" "Pigeonhole for Dovecot v2.1" "Pigeonhole"
  92. +.\" Copyright (c) 2010-2013 Pigeonhole authors, see the included COPYING file
  93. +.TH "SIEVEC" 1 "2013-05-09" "Pigeonhole for Dovecot v2.2" "Pigeonhole"
  94. .\"------------------------------------------------------------------------
  95. .SH NAME
  96. sievec \- Pigeonhole\(aqs Sieve script compiler
  97. --
  98. 1.7.10.2
  99. From 32ee54152c032b9e6f90bce9a6787de29a42ac4b Mon Sep 17 00:00:00 2001
  100. From: Stephan Bosch <stephan@rename-it.nl>
  101. Date: Wed, 15 May 2013 21:59:32 +0200
  102. Subject: [PATCH] lib-sieve: Fixed datastack problem in message header
  103. composition.
  104. diff --git a/src/lib-sieve/rfc2822.c b/src/lib-sieve/rfc2822.c
  105. index fc2bb36..27f94d4 100644
  106. --- a/src/lib-sieve/rfc2822.c
  107. +++ b/src/lib-sieve/rfc2822.c
  108. @@ -211,32 +211,26 @@ unsigned int rfc2822_header_append
  109. void rfc2822_header_printf
  110. (string_t *header, const char *name, const char *fmt, ...)
  111. {
  112. + const char *body;
  113. va_list args;
  114. - T_BEGIN {
  115. - const char *body;
  116. + va_start(args, fmt);
  117. + body = t_strdup_vprintf(fmt, args);
  118. + va_end(args);
  119. - va_start(args, fmt);
  120. - body = t_strdup_vprintf(fmt, args);
  121. - va_end(args);
  122. -
  123. - rfc2822_header_write(header, name, body);
  124. - } T_END;
  125. + rfc2822_header_write(header, name, body);
  126. }
  127. void rfc2822_header_utf8_printf
  128. (string_t *header, const char *name, const char *fmt, ...)
  129. {
  130. + string_t *body = t_str_new(256);
  131. va_list args;
  132. - T_BEGIN {
  133. - string_t *body = t_str_new(256);
  134. -
  135. - va_start(args, fmt);
  136. - message_header_encode(t_strdup_vprintf(fmt, args), body);
  137. - va_end(args);
  138. + va_start(args, fmt);
  139. + message_header_encode(t_strdup_vprintf(fmt, args), body);
  140. + va_end(args);
  141. - rfc2822_header_write(header, name, str_c(body));
  142. - } T_END;
  143. + rfc2822_header_write(header, name, str_c(body));
  144. }
  145. --
  146. 1.7.10.2
  147. From 5989f3dbb6dc5ad54d4d6e8fa5367e34b6cded34 Mon Sep 17 00:00:00 2001
  148. From: Stephan Bosch <stephan@rename-it.nl>
  149. Date: Mon, 20 May 2013 21:20:04 +0200
  150. Subject: [PATCH] Sieve extprograms plugin: Fixed interaction between pipe
  151. command and remote script service. The output from the
  152. script service was never read, causing a broken pipe error
  153. at the script service. Apparently, this was broken since
  154. the I/O handling for extprograms was last revised.
  155. diff --git a/src/plugins/sieve-extprograms/script-client-remote.c b/src/plugins/sieve-extprograms/script-client-remote.c
  156. index 54b8356..f437e04 100644
  157. --- a/src/plugins/sieve-extprograms/script-client-remote.c
  158. +++ b/src/plugins/sieve-extprograms/script-client-remote.c
  159. @@ -183,7 +183,7 @@ static void script_client_remote_connected(struct script_client *sclient)
  160. io_remove(&sclient->io);
  161. script_client_init_streams(sclient);
  162. - if ( sclient->output != NULL && !slclient->noreply ) {
  163. + if ( !slclient->noreply ) {
  164. sclient->script_input = script_client_istream_create
  165. (sclient, sclient->script_input);
  166. }
  167. diff --git a/src/plugins/sieve-extprograms/script-client.c b/src/plugins/sieve-extprograms/script-client.c
  168. index 52832e8..06a5d5d 100644
  169. --- a/src/plugins/sieve-extprograms/script-client.c
  170. +++ b/src/plugins/sieve-extprograms/script-client.c
  171. @@ -145,7 +145,7 @@ static int script_client_script_output(struct script_client *sclient)
  172. if ( input == NULL ) {
  173. o_stream_unref(&sclient->script_output);
  174. - if ( sclient->output == NULL ) {
  175. + if ( sclient->script_input == NULL ) {
  176. script_client_disconnect(sclient, FALSE);
  177. } else {
  178. sclient->close_output(sclient);
  179. @@ -164,17 +164,19 @@ static void script_client_script_input(struct script_client *sclient)
  180. size_t size;
  181. int ret = 0;
  182. - if ( input != NULL && output != NULL ) {
  183. -
  184. + if ( input != NULL ) {
  185. while ( (ret=i_stream_read_data(input, &data, &size, 0)) > 0 ) {
  186. - ssize_t sent;
  187. + if ( output != NULL ) {
  188. + ssize_t sent;
  189. - if ( (sent=o_stream_send(output, data, size)) < 0 ) {
  190. - script_client_fail(sclient, SCRIPT_CLIENT_ERROR_IO);
  191. - return;
  192. + if ( (sent=o_stream_send(output, data, size)) < 0 ) {
  193. + script_client_fail(sclient, SCRIPT_CLIENT_ERROR_IO);
  194. + return;
  195. + }
  196. + size = (size_t)sent;
  197. }
  198. - i_stream_skip(input, sent);
  199. + i_stream_skip(input, size);
  200. }
  201. if ( ret < 0 ) {
  202. --
  203. 1.7.10.2