From mboxrd@z Thu Jan 1 00:00:00 1970 From: "'Mash (Thomas Herbert)" Subject: Re: Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"? Date: Wed, 20 Mar 2013 09:18:04 +0000 Message-ID: <20130320091804.GB4558@localhost> References: <20130319111832.GA17118@localhost> <9880.1363695656@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIF9v-0001oK-CP for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 05:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIF9r-0004qd-O2 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 05:18:11 -0400 Received: from mxout-07.mxes.net ([216.86.168.182]:16376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIF9r-0004qQ-I3 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 05:18:07 -0400 Content-Disposition: inline In-Reply-To: <9880.1363695656@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: Emacs Org On 2013-03-19 08:20-0400, Nick Dokos wrote: > 'Mash (Thomas Herbert) wrote: > > > Morning, > > > > I wanted to know how I would change the default '_archive' extension? > > > > I work with encrypted org files "foo.gpg" with Easy PG and the > > added header... > > > > # -*- mode: org; epa-file-encrypt-to: ("mashdot@toshine.net") -*- > > > > But today I discovered that when I archive my TODO items they are of > > course saved unencrypted to the archive file "foo.gpg_archive". > > > > This really is not ideal situation! > > > > I tried adding my header to the "_archive" file but this doesn't work, I > > assume because the extension is not ".gpg". > > > > Any ideas how would I change the default "_archive" extension to > > "_archive.gpg" or better setup a case where it would change the > > extension only if the org file is ".gpg" to begin with? > > > > I suppose could also look to setup a case for Easy PG to work with a > > different extension, but would prefer to define the change for > > org-mode instead. > > > > C-h v org-archive- gives some idea of the variables that are there. > > org-archive-location is what you need to change in order to add the .gpg > suffix. > > I have no idea however, whether that's enough to allow you to do what > you want to do. > > Nick > Nick, thanks. For those who are interested. I got this to work by amending my "foo.gpg" header line to... # -*- mode: org; epa-file-encrypt-to: ("mashdot@toshine.net") -*- #+ARCHIVE: %s_archive.gpg:: Then I had to amend my "foo.gpg_archive.gpg" header to... # -*- mode: org; epa-file-encrypt-to: ("mashdot@toshine.net") -*- This then allowed automatic encryption without me having to 'select recipient for encryption', etc. Thanks again, 'Mash