From alec@alec.pl Thu Aug 23 08:03:12 2012 From: "A.L.E.C" To: dev@lists.roundcube.net Subject: Re: [RCD] Enigma plugin Date: Thu, 23 Aug 2012 08:03:01 +0200 Message-ID: <5035C795.70707@alec.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3521965875871689370==" --===============3521965875871689370== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 08/22/2012 10:52 PM, Szuts Attila wrote: > > I composed a simple HTML mail with one txt attachment. > enigma.php calling this hook: > $this->add_hook('message_outgoing_body', array($this, 'msg_encode')); > > In msg_encode function debugging 'message' argument gives the following > output: you mean debugging all hook arguments.... > /array ( > 'body' => ' > Where can I find the attached txt file? How can I reach and encrypt it? Attachments are available via $GLOBALS['COMPOSE']['attachments'] If using message_outgoing_body will be still uncomfortable, I suppose we could add an additional hook after complete message is composed, ca. line 606 of sendmail.inc file. Also extending Mail_mime package with some more getters could be useful. -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl --===============3521965875871689370==--