From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74217 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.emacs.gnus.general Subject: sieve-manage & starttls Date: Sun, 21 Nov 2010 15:22:58 +0100 Message-ID: <878w0m3ge5.fsf_-_@gnu.org> References: <1286295391-12854-1-git-send-email-julien@danjou.info> <87vd5cvgkf.fsf@lifelogs.com> <874ocw1xnb.fsf@keller.adm.naquadah.org> <87hbgqma0z.fsf@inria.fr> <8762x6m7i0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1290349409 32763 80.91.229.12 (21 Nov 2010 14:23:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 14:23:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22582@lists.math.uh.edu Sun Nov 21 15:23:25 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKApA-0004r3-CW for ding-account@gmane.org; Sun, 21 Nov 2010 15:23:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PKAp2-0005FJ-5q; Sun, 21 Nov 2010 08:23:16 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PKAp0-0005F4-7j for ding@lists.math.uh.edu; Sun, 21 Nov 2010 08:23:14 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PKAoy-0005GB-Ui for ding@lists.math.uh.edu; Sun, 21 Nov 2010 08:23:14 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PKAoy-0001FP-00 for ; Sun, 21 Nov 2010 15:23:12 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PKAoy-0004ly-5b for ding@gnus.org; Sun, 21 Nov 2010 15:23:12 +0100 Original-Received: from yoda.fdn.fr ([80.67.169.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Nov 2010 15:23:12 +0100 Original-Received: from ludo by yoda.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Nov 2010 15:23:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: yoda.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Frimaire an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:t1dLm+mHVBH07u4ymFMQnDCUkQw= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74217 Archived-At: Hello! ludo@gnu.org (Ludovic Courtès) writes: > $ gnutls-cli --starttls -p 2000 imap.example.com > Resolving 'imap.example.com'... > > - Simple Client Mode: > > "IMPLEMENTATION" "dovecot" > "SASL" "" > "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy" > "STARTTLS" > "RENAME" > OK "mail server - Dovecot ready." > STARTTLS > OK "Begin TLS negotiation now." > *** Starting TLS handshake > - Ephemeral Diffie-Hellman parameters > - Using prime: 1024 bits > - Secret key: 1021 bits > - Peer's public key: 1023 bits > - Certificate type: X.509 > - Got a certificate list of 1 certificates. > - Certificate[0] info: > - subject `...’ > - The hostname in the certificate matches 'imap.example.com'. > - Peer's certificate issuer is unknown > - Peer's certificate is NOT trusted > - Version: TLS1.0 > - Key Exchange: DHE-RSA > - Cipher: AES-128-CBC > - MAC: SHA1 > - Compression: NULL > "IMPLEMENTATION" "dovecot" > "SASL" "PLAIN" > "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify include envelope body relational regex subaddress copy" > "RENAME" > OK "TLS negotiation successful." I’ve tried ‘sieve-manage’ from Gnus HEAD. One problem illustrated by the example above is that capabilities must be re-parsed after STARTTLS authentication. This is complicated by the fact that ‘gnutls-cli’ emits TLS information upon successful handshake (the lines that start with a hyphen above), which ‘sieve-manage-parse-capability-1’ should ignore. I’ve tried to work on this without success so far, so I’d welcome help or even patches. :-) Thanks, Ludo’.