[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-jami-bot ca58e9ca98 12/22: add timestamp of jami ms
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-jami-bot ca58e9ca98 12/22: add timestamp of jami msg to file captures |
Date: |
Sun, 4 Feb 2024 09:58:51 -0500 (EST) |
branch: externals/org-jami-bot
commit ca58e9ca989bb34f04e7309923e150be42b4be7d
Author: Hanno Perrey <hanno@hoowl.se>
Commit: Hanno Perrey <hanno@hoowl.se>
add timestamp of jami msg to file captures
---
org-jami-bot.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/org-jami-bot.el b/org-jami-bot.el
index 4838b47913..3c5cea7dd3 100644
--- a/org-jami-bot.el
+++ b/org-jami-bot.el
@@ -156,6 +156,7 @@ CONVERSATION for jami ACCOUNT."
(let* ((buf (format "*jami-capture-%s-%s*" account conversation))
(continue (get-buffer buf))
(displayname (cadr (assoc-string "displayName" msg)))
+ (timestamp (string-to-number (cadr (assoc-string "timestamp" msg))))
;; use inactive timestamps
(timefmt (org-time-stamp-format 't 't)))
(with-current-buffer (get-buffer-create buf)
@@ -178,9 +179,11 @@ CONVERSATION for jami ACCOUNT."
"#+ATTR_ORG: :width 400\n"
(org-link-make-string link) "\n")
;; single message capture
- (format "* FILE %s :FILE:\n:PROPERTIES:\n:CREATED:
%s\n:END:\n\n#+ATTR_ORG: :width 400\n%s\n"
+ (format "* FILE %s :FILE:\n:PROPERTIES:\n\
+:CREATED: %s\n:JAMI_TIMESTAMP: %s\n:END:\n\n#+ATTR_ORG: :width 400\n%s\n"
(org-link-make-string link displayname)
(format-time-string timefmt)
+ (format-time-string timefmt timestamp)
(org-link-make-string link)))))
;; store link for easy linking
(push (list dlname displayname) org-stored-links)
- [elpa] branch externals/org-jami-bot created (now dba915182c), ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot fff426636e 04/22: fixes indentation, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 947c573137 01/22: initial commit, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 5d71b1fc64 07/22: fix link in file capture, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot a9ac8f6628 19/22: bump version number, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot ca58e9ca98 12/22: add timestamp of jami msg to file captures,
ELPA Syncer <=
- [elpa] externals/org-jami-bot 909c9bfbc4 09/22: version bump, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 0f286bab39 20/22: fix author's mail address, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot c51dd81660 02/22: adds gitignore, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 99358b11e4 10/22: fix relative file links by specifying ref dir, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 9417d2814d 18/22: make capture key variable customizable, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot aecf06f8f8 03/22: adds missing defvar, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot be3d5fdd91 05/22: fixes flycheck warnings, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 76d6d76871 06/22: fixes typo in package description, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 36ab0cb49f 08/22: sharp-quote function names, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 4403a1a2d4 11/22: fix time stamp format, ELPA Syncer, 2024/02/04