emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"?
@ 2013-03-19 11:18 'Mash (Thomas Herbert)
  2013-03-19 12:20 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: 'Mash (Thomas Herbert) @ 2013-03-19 11:18 UTC (permalink / raw)
  To: Emacs Org

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.

Many thanks,

'Mash

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"?
  2013-03-19 11:18 Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"? 'Mash (Thomas Herbert)
@ 2013-03-19 12:20 ` Nick Dokos
  2013-03-20  9:18   ` 'Mash (Thomas Herbert)
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2013-03-19 12:20 UTC (permalink / raw)
  To: 'Mash (Thomas Herbert); +Cc: Emacs Org

'Mash (Thomas Herbert) <mashdot@toshine.net> 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-<TAB> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"?
  2013-03-19 12:20 ` Nick Dokos
@ 2013-03-20  9:18   ` 'Mash (Thomas Herbert)
  0 siblings, 0 replies; 3+ messages in thread
From: 'Mash (Thomas Herbert) @ 2013-03-20  9:18 UTC (permalink / raw)
  To: Nick Dokos; +Cc: Emacs Org

On 2013-03-19 08:20-0400, Nick Dokos wrote:
> 'Mash (Thomas Herbert) <mashdot@toshine.net> 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-<TAB> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-20  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-19 11:18 Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"? 'Mash (Thomas Herbert)
2013-03-19 12:20 ` Nick Dokos
2013-03-20  9:18   ` 'Mash (Thomas Herbert)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).