[arch-commits] Commit in dovecot/trunk (2 files)

2018-06-21 Thread Thore Bödecker via arch-commits
Date: Thursday, June 21, 2018 @ 07:46:40
  Author: foxxx0
Revision: 344249

upgpkg: dovecot 2.3.1-7

allow localpart only too (taken from git master)

Modified:
  dovecot/trunk/PKGBUILD
  dovecot/trunk/dovecot-0007-lda-allow-empty-envelope-sender.patch

+
 PKGBUILD   |4 ++--
 dovecot-0007-lda-allow-empty-envelope-sender.patch |   16 ++--
 2 files changed, 4 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-21 07:23:52 UTC (rev 344248)
+++ PKGBUILD2018-06-21 07:46:40 UTC (rev 344249)
@@ -11,7 +11,7 @@
 
 pkgname=dovecot
 pkgver=2.3.1
-pkgrel=6
+pkgrel=7
 
 pkgdesc="An IMAP and POP3 server written with security primarily in mind"
 url="http://dovecot.org/";
@@ -44,7 +44,7 @@
 '38d944d7fb3790f1ac64ecd855a37ba5c16374a83b374306ce6296a598f5257c'
 'd4e34418dbe1b3ddd10e859bccd735e8708081916a5be3d35a8a54bdf8cda70c'
 '27f3624ea33165c5eddd0bcdb2c92cb92c559b6e1e74975c72241383656c3b2a'
-'53514030608054566bd8530c4bc388e0e325352f86764bece2ebef6205108ce2')
+'558aeef4c827a2c3663f6d7fc5b3185bf177582d624833890aa58bb1a793060f')
 
 validpgpkeys=(
   'E643F0BDFDCD04D9FFCB6279C948525140558AC9' # Timo Sirainen 

Modified: dovecot-0007-lda-allow-empty-envelope-sender.patch
===
--- dovecot-0007-lda-allow-empty-envelope-sender.patch  2018-06-21 07:23:52 UTC 
(rev 344248)
+++ dovecot-0007-lda-allow-empty-envelope-sender.patch  2018-06-21 07:46:40 UTC 
(rev 344249)
@@ -1,26 +1,14 @@
-From 6553f20bb31b5f0eebb73a0db526f00816b47d71 Mon Sep 17 00:00:00 2001
-From: Stephan Bosch 
-Date: Sun, 8 Apr 2018 11:28:19 +0200
-Subject: [PATCH] lda: Allow empty envelope sender.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Fix by Martin Waschbüsch.

- src/lda/main.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
 diff --git a/src/lda/main.c b/src/lda/main.c
 index bab20e88ad..1d7c8473d2 100644
 --- a/src/lda/main.c
 +++ b/src/lda/main.c
-@@ -332,7 +332,8 @@ int main(int argc, char *argv[])
+@@ -332,7 +332,9 @@ int main(int argc, char *argv[])
case 'f':
/* envelope sender address */
if (smtp_address_parse_path(ctx.pool, optarg,
 -  SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL,
 +  SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL |
++  SMTP_ADDRESS_PARSE_FLAG_ALLOW_LOCALPART |
 +  SMTP_ADDRESS_PARSE_FLAG_ALLOW_EMPTY,
&mail_from, &errstr) < 0) {
i_fatal_status(EX_USAGE,


[arch-commits] Commit in dovecot/trunk (2 files)

2018-06-20 Thread Thore Bödecker via arch-commits
Date: Wednesday, June 20, 2018 @ 07:09:04
  Author: foxxx0
Revision: 344189

upgpkg: dovecot 2.3.1-6

add patch for FS#59050

Added:
  dovecot/trunk/dovecot-0007-lda-allow-empty-envelope-sender.patch
Modified:
  dovecot/trunk/PKGBUILD

+
 PKGBUILD   |8 +++--
 dovecot-0007-lda-allow-empty-envelope-sender.patch |   27 +++
 2 files changed, 32 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-20 06:38:40 UTC (rev 344188)
+++ PKGBUILD2018-06-20 07:09:04 UTC (rev 344189)
@@ -11,7 +11,7 @@
 
 pkgname=dovecot
 pkgver=2.3.1
-pkgrel=5
+pkgrel=6
 
 pkgdesc="An IMAP and POP3 server written with security primarily in mind"
 url="http://dovecot.org/";
@@ -33,7 +33,8 @@
 'dovecot.ld.so.conf'
 'dovecot-0004-fix-replication-hang-ioloop.patch'
 'dovecot-0005-fix-mail_user_home_mkdir.patch'
-'dovecot-0006-fix-segfault-when-overquota.patch')
+'dovecot-0006-fix-segfault-when-overquota.patch'
+'dovecot-0007-lda-allow-empty-envelope-sender.patch')
 
 sha256sums=('0883821b97fd02a084a84b9469a681f7e6edc56541d854b5419d98891c51fb93'
 'SKIP'
@@ -42,7 +43,8 @@
 'a457a1691cfa82495fc0503bfa4b61e54b149e63400fe0f568dff2c24a3f7858'
 '38d944d7fb3790f1ac64ecd855a37ba5c16374a83b374306ce6296a598f5257c'
 'd4e34418dbe1b3ddd10e859bccd735e8708081916a5be3d35a8a54bdf8cda70c'
-'27f3624ea33165c5eddd0bcdb2c92cb92c559b6e1e74975c72241383656c3b2a')
+'27f3624ea33165c5eddd0bcdb2c92cb92c559b6e1e74975c72241383656c3b2a'
+'53514030608054566bd8530c4bc388e0e325352f86764bece2ebef6205108ce2')
 
 validpgpkeys=(
   'E643F0BDFDCD04D9FFCB6279C948525140558AC9' # Timo Sirainen 

Added: dovecot-0007-lda-allow-empty-envelope-sender.patch
===
--- dovecot-0007-lda-allow-empty-envelope-sender.patch  
(rev 0)
+++ dovecot-0007-lda-allow-empty-envelope-sender.patch  2018-06-20 07:09:04 UTC 
(rev 344189)
@@ -0,0 +1,27 @@
+From 6553f20bb31b5f0eebb73a0db526f00816b47d71 Mon Sep 17 00:00:00 2001
+From: Stephan Bosch 
+Date: Sun, 8 Apr 2018 11:28:19 +0200
+Subject: [PATCH] lda: Allow empty envelope sender.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix by Martin Waschbüsch.
+---
+ src/lda/main.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/lda/main.c b/src/lda/main.c
+index bab20e88ad..1d7c8473d2 100644
+--- a/src/lda/main.c
 b/src/lda/main.c
+@@ -332,7 +332,8 @@ int main(int argc, char *argv[])
+   case 'f':
+   /* envelope sender address */
+   if (smtp_address_parse_path(ctx.pool, optarg,
+-  SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL,
++  SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL |
++  SMTP_ADDRESS_PARSE_FLAG_ALLOW_EMPTY,
+   &mail_from, &errstr) < 0) {
+   i_fatal_status(EX_USAGE,
+   "Invalid -f parameter: %s", errstr);


[arch-commits] Commit in dovecot/trunk (2 files)

2018-06-12 Thread Thore Bödecker via arch-commits
Date: Tuesday, June 12, 2018 @ 17:44:45
  Author: foxxx0
Revision: 342612

upgpkg: dovecot 2.3.1-5

add fix segfault patch

Added:
  dovecot/trunk/dovecot-0006-fix-segfault-when-overquota.patch
Modified:
  dovecot/trunk/PKGBUILD

+
 PKGBUILD   |9 +---
 dovecot-0006-fix-segfault-when-overquota.patch |   25 +++
 2 files changed, 31 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-12 17:42:53 UTC (rev 342611)
+++ PKGBUILD2018-06-12 17:44:45 UTC (rev 342612)
@@ -11,7 +11,7 @@
 
 pkgname=dovecot
 pkgver=2.3.1
-pkgrel=4
+pkgrel=5
 
 pkgdesc="An IMAP and POP3 server written with security primarily in mind"
 url="http://dovecot.org/";
@@ -32,7 +32,8 @@
 'dovecot.tmpfilesd'
 'dovecot.ld.so.conf'
 'dovecot-0004-fix-replication-hang-ioloop.patch'
-'dovecot-0005-fix-mail_user_home_mkdir.patch')
+'dovecot-0005-fix-mail_user_home_mkdir.patch'
+'dovecot-0006-fix-segfault-when-overquota.patch')
 
 sha256sums=('0883821b97fd02a084a84b9469a681f7e6edc56541d854b5419d98891c51fb93'
 'SKIP'
@@ -40,7 +41,9 @@
 'bb7620be7fc0217d77fcac940441c2abbd9efc6ef660153288d09ba412e27e06'
 'a457a1691cfa82495fc0503bfa4b61e54b149e63400fe0f568dff2c24a3f7858'
 '38d944d7fb3790f1ac64ecd855a37ba5c16374a83b374306ce6296a598f5257c'
-'d4e34418dbe1b3ddd10e859bccd735e8708081916a5be3d35a8a54bdf8cda70c')
+'d4e34418dbe1b3ddd10e859bccd735e8708081916a5be3d35a8a54bdf8cda70c'
+'27f3624ea33165c5eddd0bcdb2c92cb92c559b6e1e74975c72241383656c3b2a')
+
 validpgpkeys=(
   'E643F0BDFDCD04D9FFCB6279C948525140558AC9' # Timo Sirainen 
   '2BE74AAB3EE754DFB9C80D3318A348AEED409DA1' # Dovecot Community Edition

Added: dovecot-0006-fix-segfault-when-overquota.patch
===
--- dovecot-0006-fix-segfault-when-overquota.patch  
(rev 0)
+++ dovecot-0006-fix-segfault-when-overquota.patch  2018-06-12 17:44:45 UTC 
(rev 342612)
@@ -0,0 +1,25 @@
+From 847790d5aab84df38256a6f9b4849af0eb408419 Mon Sep 17 00:00:00 2001
+From: Stephan Bosch 
+Date: Mon, 14 May 2018 23:56:21 +0200
+Subject: [PATCH] lmtp: Fix segfault occurring when a user turns out to be over
+ quota at DATA transfer.
+
+The LMTP recipient context was not updated with the final recipient address 
when
+the RCPT command was accepted. This left a dangling struct smtp_address pointer
+which triggered the segfault when used.
+---
+ src/lmtp/lmtp-common.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lmtp/lmtp-common.c b/src/lmtp/lmtp-common.c
+index b3f13dec41..39ed6c1b4f 100644
+--- a/src/lmtp/lmtp-common.c
 b/src/lmtp/lmtp-common.c
+@@ -22,6 +22,7 @@ void lmtp_recipient_finish(struct lmtp_recipient *rcpt,
+ {
+   trcpt->context = rcpt;
+ 
++  rcpt->path = trcpt->path;
+   rcpt->rcpt = trcpt;
+   rcpt->index = index;
+   rcpt->rcpt_cmd = NULL;


[arch-commits] Commit in dovecot/trunk (2 files)

2014-05-12 Thread Andreas Radke
Date: Monday, May 12, 2014 @ 20:06:58
  Author: andyrtr
Revision: 212313

upgpkg: dovecot 2.2.13-1

upstream update 2.2.13

Modified:
  dovecot/trunk/PKGBUILD
Deleted:
  dovecot/trunk/pop3_Access_sequence_numbers_correctly.diff

-+
 PKGBUILD|   13 ++---
 pop3_Access_sequence_numbers_correctly.diff |   36 --
 2 files changed, 4 insertions(+), 45 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-12 17:53:26 UTC (rev 212312)
+++ PKGBUILD2014-05-12 18:06:58 UTC (rev 212313)
@@ -8,7 +8,7 @@
 # --->>> remember to rebuild/bump pigeonhole in one step <<<---
 
 pkgname=dovecot
-pkgver=2.2.11
+pkgver=2.2.13
 pkgrel=1
 pkgdesc="An IMAP and POP3 server written with security primarily in mind"
 arch=('i686' 'x86_64')
@@ -23,12 +23,10 @@
 provides=('imap-server' 'pop3-server')
 install=$pkgname.install
 source=(http://dovecot.org/releases/2.2/${pkgname}-${pkgver}.tar.gz{,.sig}
-dovecot.tmpfilesd
-pop3_Access_sequence_numbers_correctly.diff)
-md5sums=('d53d207727df99e4362a3787223c6fa3'
+dovecot.tmpfilesd)
+md5sums=('a3eb1c0b1822c4f2b0fe9247776baa71'
  'SKIP'
- '342a28251d40f983c98c0d1f1bf3d07d'
- 'c8096d3966651222accd7f6bc678d08d')
+ '342a28251d40f983c98c0d1f1bf3d07d')
 
 prepare() {
   cd $pkgname-$pkgver
@@ -35,9 +33,6 @@
 
   # fix path in helper script
   sed -i 
's:OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}:OPENSSLCONFIG=${OPENSSLCONFIG-
 /etc/ssl/dovecot-openssl.cnf}:' doc/mkcert.sh
-
-  # post release segfault fix
-  patch -Np1 -i ${srcdir}/pop3_Access_sequence_numbers_correctly.diff
 }
 
 build() {

Deleted: pop3_Access_sequence_numbers_correctly.diff
===
--- pop3_Access_sequence_numbers_correctly.diff 2014-05-12 17:53:26 UTC (rev 
212312)
+++ pop3_Access_sequence_numbers_correctly.diff 2014-05-12 18:06:58 UTC (rev 
212313)
@@ -1,36 +0,0 @@
-
-diff -r 59decc957b39 -r d20059f7d3a1 src/pop3/pop3-commands.c
 a/src/pop3/pop3-commands.c Fri Feb 07 15:03:33 2014 -0500
-+++ b/src/pop3/pop3-commands.c Thu Feb 13 05:33:13 2014 +0200
-@@ -253,7 +253,7 @@
-   for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
-   bit = 1 << (msgnum % CHAR_BIT);
-   if ((client->deleted_bitmask[msgnum / CHAR_BIT] & bit) 
!= 0)
--  seq_range_array_add(&deleted_msgs, 
client->msgnum_to_seq_map[msgnum]);
-+  seq_range_array_add(&deleted_msgs, 
msgnum_to_seq(client, msgnum));
-   }
-   }
-   t_array_init(&seen_msgs, 8);
-@@ -261,7 +261,7 @@
-   for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
-   bit = 1 << (msgnum % CHAR_BIT);
-   if ((client->seen_bitmask[msgnum / CHAR_BIT] & bit) != 
0)
--  seq_range_array_add(&seen_msgs, 
client->msgnum_to_seq_map[msgnum]);
-+  seq_range_array_add(&seen_msgs, 
msgnum_to_seq(client, msgnum));
-   }
-   }
- 
-@@ -826,7 +826,7 @@
- client->messages_count+1);
-   for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
-   client->message_uidls[msgnum] =
--  seq_uidls[client->msgnum_to_seq_map[msgnum]];
-+  seq_uidls[msgnum_to_seq(client, msgnum)];
-   }
-   i_free(seq_uidls);
- }
-
-
-
-
-



[arch-commits] Commit in dovecot/trunk (2 files)

2014-02-13 Thread Andreas Radke
Date: Thursday, February 13, 2014 @ 17:48:28
  Author: andyrtr
Revision: 205899

upgpkg: dovecot 2.2.11-1

upstream update 2.2.11

Added:
  dovecot/trunk/pop3_Access_sequence_numbers_correctly.diff
Modified:
  dovecot/trunk/PKGBUILD

-+
 PKGBUILD|   22 ++-
 pop3_Access_sequence_numbers_correctly.diff |   36 ++
 2 files changed, 51 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-02-13 16:32:59 UTC (rev 205898)
+++ PKGBUILD2014-02-13 16:48:28 UTC (rev 205899)
@@ -8,7 +8,7 @@
 # --->>> remember to rebuild/bump pigeonhole in one step <<<---
 
 pkgname=dovecot
-pkgver=2.2.10
+pkgver=2.2.11
 pkgrel=1
 pkgdesc="An IMAP and POP3 server written with security primarily in mind"
 arch=('i686' 'x86_64')
@@ -23,17 +23,25 @@
 provides=('imap-server' 'pop3-server')
 install=$pkgname.install
 source=(http://dovecot.org/releases/2.2/${pkgname}-${pkgver}.tar.gz{,.sig}
-dovecot.tmpfilesd)
-md5sums=('037e9c9e07d9dbff54dcff09f280fc8c'
+dovecot.tmpfilesd
+pop3_Access_sequence_numbers_correctly.diff)
+md5sums=('d53d207727df99e4362a3787223c6fa3'
  'SKIP'
- '342a28251d40f983c98c0d1f1bf3d07d')
+ '342a28251d40f983c98c0d1f1bf3d07d'
+ 'c8096d3966651222accd7f6bc678d08d')
 
-build() {
+prepare() {
   cd $pkgname-$pkgver
-  
+
   # fix path in helper script
   sed -i 
's:OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}:OPENSSLCONFIG=${OPENSSLCONFIG-
 /etc/ssl/dovecot-openssl.cnf}:' doc/mkcert.sh
 
+  # post release segfault fix
+  patch -Np1 -i ${srcdir}/pop3_Access_sequence_numbers_correctly.diff
+}
+
+build() {
+  cd $pkgname-$pkgver
   # configure with openssl, mysql, and postgresql support
   ./configure --prefix=/usr --sysconfdir=/etc \
 --sbindir=/usr/bin \
@@ -61,7 +69,7 @@
 
 check() {
   cd $pkgname-$pkgver
-  make -k check
+  make
 }
 
 package() {

Added: pop3_Access_sequence_numbers_correctly.diff
===
--- pop3_Access_sequence_numbers_correctly.diff (rev 0)
+++ pop3_Access_sequence_numbers_correctly.diff 2014-02-13 16:48:28 UTC (rev 
205899)
@@ -0,0 +1,36 @@
+
+diff -r 59decc957b39 -r d20059f7d3a1 src/pop3/pop3-commands.c
+--- a/src/pop3/pop3-commands.c Fri Feb 07 15:03:33 2014 -0500
 b/src/pop3/pop3-commands.c Thu Feb 13 05:33:13 2014 +0200
+@@ -253,7 +253,7 @@
+   for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
+   bit = 1 << (msgnum % CHAR_BIT);
+   if ((client->deleted_bitmask[msgnum / CHAR_BIT] & bit) 
!= 0)
+-  seq_range_array_add(&deleted_msgs, 
client->msgnum_to_seq_map[msgnum]);
++  seq_range_array_add(&deleted_msgs, 
msgnum_to_seq(client, msgnum));
+   }
+   }
+   t_array_init(&seen_msgs, 8);
+@@ -261,7 +261,7 @@
+   for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
+   bit = 1 << (msgnum % CHAR_BIT);
+   if ((client->seen_bitmask[msgnum / CHAR_BIT] & bit) != 
0)
+-  seq_range_array_add(&seen_msgs, 
client->msgnum_to_seq_map[msgnum]);
++  seq_range_array_add(&seen_msgs, 
msgnum_to_seq(client, msgnum));
+   }
+   }
+ 
+@@ -826,7 +826,7 @@
+ client->messages_count+1);
+   for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
+   client->message_uidls[msgnum] =
+-  seq_uidls[client->msgnum_to_seq_map[msgnum]];
++  seq_uidls[msgnum_to_seq(client, msgnum)];
+   }
+   i_free(seq_uidls);
+ }
+
+
+
+
+