emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* crypt entries and journal
@ 2011-02-07 14:04 Richard Riley
  2011-02-07 16:12 ` Richard Riley
  2011-02-08 10:40 ` Julien Danjou
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Riley @ 2011-02-07 14:04 UTC (permalink / raw)
  To: Emacs-orgmode mailing list


crypt tagged entries are not showing up in the journal. Is it because the properties
are being encrypted too?

,----
| **** vodafone new pin 			    :pin:vodafone:superpin:sim:crypt:
|            :PROPERTIES:
|            :DateCreated: <2011-02-07 Mo 14:48>
|            :END:
| sim : ****
| superpin : 5471****
`----

when saved becomes

,----
| **** vodafone new pin 			    :pin:vodafone:superpin:sim:crypt:
| -----BEGIN PGP MESSAGE-----
| Version: GnuPG v1.4.10 (GNU/Linux)
| 
| hQEMA7IjL5SkHG4iAQgAhuR4Da6ErKs8g8wFiLDePgGk/sYo839h6Ew0W40qmUho
| pwkIJQf8qv4fLKv7WxeXzLSonuIyIhdYVeH/l4l4Vvb1AMp2GV1279CMqq0Zv2Cu
| KkWsK1rg3D/gJBE+LBRQRh/NlBAn/oAkkAYWrE7wKoW03T7iDJTDfjR9szW3S177
| CsHx6H5Q89r5XBCGu8USUmJLIZaSLsgiDe58W7It1qGOKtbisYF+HJn/hF91HmeO
| mPpdAhKg0N8nsQ0UKEDkOSGqBxDm2oD8S+ky6jex/Ycj3VIArQK02zCvjvRBp57O
| VCQ2EBp7zDl3LVX8xz2O75GNCFo+4rohtZYDpX1TS9KTASkIWa+Sa6Jo+rNoFcFP
| bfRxtyR/a+my0tAKq6QgzQLMGtSmXKr6ypkDcVCcEWDe6K3d3u0PwlVvRHZ1CQRV
| 3DI58LLJky7LUDBIdYpmi8xU9c/wwtbcu9WtRIKuiW+V/H5IZ5180eJnqcFMvtYI
| v1ZBC8BxUgFm6x3f+ih0wVny0Ysqo1qmRXmD4PF1qx+YMcmU
| =36UC
| -----END PGP MESSAGE-----
`----

And doesnt appear as a journal log in my agenda.

I wouldnt swear to it but I thought they used to show up in the journal.

I would like them to. Best way?

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

* Re: crypt entries and journal
  2011-02-07 14:04 crypt entries and journal Richard Riley
@ 2011-02-07 16:12 ` Richard Riley
  2011-02-08 10:40 ` Julien Danjou
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Riley @ 2011-02-07 16:12 UTC (permalink / raw)
  To: emacs-orgmode

Richard Riley <rileyrg@googlemail.com> writes:

> crypt tagged entries are not showing up in the journal. Is it because the properties
> are being encrypted too?
>
> ,----
> | **** vodafone new pin 			    :pin:vodafone:superpin:sim:crypt:
> |            :PROPERTIES:
> |            :DateCreated: <2011-02-07 Mo 14:48>
> |            :END:
> | sim : ****
> | superpin : 5471****
> `----
>
> when saved becomes
>
> ,----
> | **** vodafone new pin 			    :pin:vodafone:superpin:sim:crypt:
> | -----BEGIN PGP MESSAGE-----
> | Version: GnuPG v1.4.10 (GNU/Linux)
> | 
> | hQEMA7IjL5SkHG4iAQgAhuR4Da6ErKs8g8wFiLDePgGk/sYo839h6Ew0W40qmUho
> | pwkIJQf8qv4fLKv7WxeXzLSonuIyIhdYVeH/l4l4Vvb1AMp2GV1279CMqq0Zv2Cu
> | KkWsK1rg3D/gJBE+LBRQRh/NlBAn/oAkkAYWrE7wKoW03T7iDJTDfjR9szW3S177
> | CsHx6H5Q89r5XBCGu8USUmJLIZaSLsgiDe58W7It1qGOKtbisYF+HJn/hF91HmeO
> | mPpdAhKg0N8nsQ0UKEDkOSGqBxDm2oD8S+ky6jex/Ycj3VIArQK02zCvjvRBp57O
> | VCQ2EBp7zDl3LVX8xz2O75GNCFo+4rohtZYDpX1TS9KTASkIWa+Sa6Jo+rNoFcFP
> | bfRxtyR/a+my0tAKq6QgzQLMGtSmXKr6ypkDcVCcEWDe6K3d3u0PwlVvRHZ1CQRV
> | 3DI58LLJky7LUDBIdYpmi8xU9c/wwtbcu9WtRIKuiW+V/H5IZ5180eJnqcFMvtYI
> | v1ZBC8BxUgFm6x3f+ih0wVny0Ysqo1qmRXmD4PF1qx+YMcmU
> | =36UC
> | -----END PGP MESSAGE-----
> `----
>
> And doesnt appear as a journal log in my agenda.
>
> I wouldnt swear to it but I thought they used to show up in the journal.
>
> I would like them to. Best way?


ugh. A while away.

I had moved the timestamp into the properties which are
encrypted. Adding %T to me org entry heading solves the issue.

I think I would prefer to have the "logged" properties unencrypted
though.

e.g my journal capture template is contained in 

,----
|  '(org-capture-templates (quote (("t" "Todo" entry (file+headline "" "Tasks To Refile") "* TODO %?
| :PROPERTIES:
|  :DateCreated: %T
| :END:
| %i
| %a") ("j" "Journal" entry (file+datetree "journal.org") "* %?
| :PROPERTIES:
|  :DateCreated: %T
| :END:
| 
| #+begin_src emacs-lisp
| %i
| #+end_src
| %a") ("n" "Quick note to refile later" entry (file+headline "" "Notes To Refile") "* %?
| :PROPERTIES:
|  :DateCreated: %T
| :END:
| #+being_src
| %i
| #+end_src
| 
| %a") ("w" "web capture" entry (file "refile.org") "* %a %?\\n:PROPERTIES:
|  :DateCreated: %T
| :END:n
| %i"))) t)
`----

I would like that date created to be visible in my agenda despite the
entry being encrypted - it just keeps the heading cleaner without the
datestamp. Any way of doing this?

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

* Re: crypt entries and journal
  2011-02-07 14:04 crypt entries and journal Richard Riley
  2011-02-07 16:12 ` Richard Riley
@ 2011-02-08 10:40 ` Julien Danjou
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Danjou @ 2011-02-08 10:40 UTC (permalink / raw)
  To: Richard Riley; +Cc: Emacs-orgmode mailing list


[-- Attachment #1.1: Type: text/plain, Size: 473 bytes --]

On Mon, Feb 07 2011, Richard Riley wrote:

> I would like them to. Best way?

Decrypt them on file loading.

(defun jd:org-decrypt-entires-silently ()
  (let ((m (buffer-modified-p)))
    (org-decrypt-entries)
    (unless m
      (set-buffer-modified-p nil))))
(add-hook 'org-mode-hook 'jd:org-decrypt-entires-silently)

I think that's something that could be added to org-crypt. I'll make a
patch later.

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 835 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

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

end of thread, other threads:[~2011-02-08 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 14:04 crypt entries and journal Richard Riley
2011-02-07 16:12 ` Richard Riley
2011-02-08 10:40 ` Julien Danjou

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).