From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Troxel Subject: org-mobile agenda failure with encryption and tramp Date: Wed, 13 Oct 2010 12:49:17 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0160318406==" Return-path: Received: from [140.186.70.92] (port=52906 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P64W3-0008Dv-D5 for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:49:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P64Vy-000739-RU for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:49:23 -0400 Received: from fnord.ir.bbn.com ([192.1.100.210]:55549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P64Vy-000731-Nf for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:49:18 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0160318406== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain I think the problem is that I have org-mobile-directory set to "/ssh:foo.example.com:/usr/home/gdt/ORG" then in here the encryption tries to be done in place, which means (I think) a tramp pathname is passed to openssl. Probably agendas.org needs to be created in a staging area and then the encrypted version moved with copy-file. (defun org-mobile-create-sumo-agenda () "Create a file that contains all custom agenda views." (interactive) (let* ((file (expand-file-name "agendas.org" org-mobile-directory)) (file1 (if org-mobile-use-encryption org-mobile-encryption-tempfile file)) (sumo (org-mobile-sumo-agenda-command)) (org-agenda-custom-commands (list (append sumo (list (list file1))))) (org-mobile-creating-agendas t)) (unless (file-writable-p file1) (error "Cannot write to file %s" file1)) (when sumo (org-store-agenda-views)) (when org-mobile-use-encryption (org-mobile-encrypt-file file1 file) (delete-file file1)))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (NetBSD) iEYEARECAAYFAky14w0ACgkQ+vesoDJhHiXTfwCgp6l7OSm2sEhoN+Jl6LgdfZFG NfYAnAjsMPB8nsbbfk4vzldCiYnOwWKs =F7c2 -----END PGP SIGNATURE----- --=-=-=-- --===============0160318406== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0160318406==--