emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH 1/2] org-gnus: trim date
@ 2010-12-14 14:32 Julien Danjou
  2010-12-14 14:32 ` [PATCH 2/2] Allow to retrieve email link date Julien Danjou
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julien Danjou @ 2010-12-14 14:32 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Julien Danjou

* org-gnus.el (org-gnus-store-link): Trim date.

Signed-off-by: Julien Danjou <julien@danjou.info>
---
 lisp/org-gnus.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index fccd3e9..32641bf 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -151,7 +151,7 @@ If `org-store-link' was called with a prefix arg the meaning of
 		     (gnus-summary-article-header)))
 	   (from (mail-header-from header))
 	   (message-id (org-remove-angle-brackets (mail-header-id header)))
-	   (date (mail-header-date header))
+	   (date (org-trim (mail-header-date header)))
 	   (date-ts (and date (format-time-string
 			       (org-time-stamp-format t) (date-to-time date))))
 	   (date-ts-ia (and date (format-time-string
-- 
1.7.2.3

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

* [PATCH 2/2] Allow to retrieve email link date
  2010-12-14 14:32 [PATCH 1/2] org-gnus: trim date Julien Danjou
@ 2010-12-14 14:32 ` Julien Danjou
  2010-12-16 13:18   ` [Accepted] [Orgmode, " Carsten Dominik
  2010-12-16 13:20   ` [PATCH " Carsten Dominik
  2010-12-16 13:21 ` [Accepted] [Orgmode,1/2] org-gnus: trim date Carsten Dominik
  2010-12-16 13:22 ` [PATCH 1/2] " Carsten Dominik
  2 siblings, 2 replies; 6+ messages in thread
From: Julien Danjou @ 2010-12-14 14:32 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Julien Danjou

* org.el (org-email-link-description): Allow to retrieve email link date.

Signed-off-by: Julien Danjou <julien@danjou.info>
---
 lisp/org.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 79c5bf8..7841198 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1321,6 +1321,7 @@ The following %-escapes will be replaced by corresponding information:
 %c   correspondent.  Usually \"from NAME\", but if you sent it yourself, it
      will be \"to NAME\".  See also the variable `org-from-is-user-regexp'.
 %s   subject
+%d   date
 %m   message-id.
 
 You may use normal field width specification between the % and the letter.
@@ -8496,6 +8497,7 @@ according to FMT (default from `org-email-link-description-format')."
 	   (cons "%T" (plist-get p :to))
 	   (cons "%t" (or (plist-get p :toname) (plist-get p :toaddress) "?"))
 	   (cons "%s" (plist-get p :subject))
+	   (cons "%d" (plist-get p :date))
 	   (cons "%m" (plist-get p :message-id)))))
     (when (string-match "%c" fmt)
       ;; Check if the user wrote this message
-- 
1.7.2.3

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

* [Accepted] [Orgmode, 2/2] Allow to retrieve email link date
  2010-12-14 14:32 ` [PATCH 2/2] Allow to retrieve email link date Julien Danjou
@ 2010-12-16 13:18   ` Carsten Dominik
  2010-12-16 13:20   ` [PATCH " Carsten Dominik
  1 sibling, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-12-16 13:18 UTC (permalink / raw)
  To: emacs-orgmode

Patch 481 (http://patchwork.newartisans.com/patch/481/) is now "Accepted".

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C1292337138-14321-2-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode,2/2] Allow to retrieve email link date
> Date: Tue, 14 Dec 2010 19:32:18 -0000
> From: Julien Danjou <julien@danjou.info>
> X-Patchwork-Id: 481
> Message-Id: <1292337138-14321-2-git-send-email-julien@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou <julien@danjou.info>
> 
> * org.el (org-email-link-description): Allow to retrieve email link date.
> 
> Signed-off-by: Julien Danjou <julien@danjou.info>
> 
> ---
> lisp/org.el |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 79c5bf8..7841198 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1321,6 +1321,7 @@ The following %-escapes will be replaced by corresponding information:
>  %c   correspondent.  Usually \"from NAME\", but if you sent it yourself, it
>       will be \"to NAME\".  See also the variable `org-from-is-user-regexp'.
>  %s   subject
> +%d   date
>  %m   message-id.
>  
>  You may use normal field width specification between the % and the letter.
> @@ -8496,6 +8497,7 @@ according to FMT (default from `org-email-link-description-format')."
>  	   (cons "%T" (plist-get p :to))
>  	   (cons "%t" (or (plist-get p :toname) (plist-get p :toaddress) "?"))
>  	   (cons "%s" (plist-get p :subject))
> +	   (cons "%d" (plist-get p :date))
>  	   (cons "%m" (plist-get p :message-id)))))
>      (when (string-match "%c" fmt)
>        ;; Check if the user wrote this message
> 

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

* Re: [PATCH 2/2] Allow to retrieve email link date
  2010-12-14 14:32 ` [PATCH 2/2] Allow to retrieve email link date Julien Danjou
  2010-12-16 13:18   ` [Accepted] [Orgmode, " Carsten Dominik
@ 2010-12-16 13:20   ` Carsten Dominik
  1 sibling, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-12-16 13:20 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

Applied, thanks!

- Carsten

On Dec 14, 2010, at 3:32 PM, Julien Danjou wrote:

> * org.el (org-email-link-description): Allow to retrieve email link  
> date.
>
> Signed-off-by: Julien Danjou <julien@danjou.info>
> ---
> lisp/org.el |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 79c5bf8..7841198 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1321,6 +1321,7 @@ The following %-escapes will be replaced by  
> corresponding information:
> %c   correspondent.  Usually \"from NAME\", but if you sent it  
> yourself, it
>      will be \"to NAME\".  See also the variable `org-from-is-user- 
> regexp'.
> %s   subject
> +%d   date
> %m   message-id.
>
> You may use normal field width specification between the % and the  
> letter.
> @@ -8496,6 +8497,7 @@ according to FMT (default from `org-email-link- 
> description-format')."
> 	   (cons "%T" (plist-get p :to))
> 	   (cons "%t" (or (plist-get p :toname) (plist-get p :toaddress)  
> "?"))
> 	   (cons "%s" (plist-get p :subject))
> +	   (cons "%d" (plist-get p :date))
> 	   (cons "%m" (plist-get p :message-id)))))
>     (when (string-match "%c" fmt)
>       ;; Check if the user wrote this message
> -- 
> 1.7.2.3
>
>
> _______________________________________________
> 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] 6+ messages in thread

* [Accepted] [Orgmode,1/2] org-gnus: trim date
  2010-12-14 14:32 [PATCH 1/2] org-gnus: trim date Julien Danjou
  2010-12-14 14:32 ` [PATCH 2/2] Allow to retrieve email link date Julien Danjou
@ 2010-12-16 13:21 ` Carsten Dominik
  2010-12-16 13:22 ` [PATCH 1/2] " Carsten Dominik
  2 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-12-16 13:21 UTC (permalink / raw)
  To: emacs-orgmode

Patch 480 (http://patchwork.newartisans.com/patch/480/) is now "Accepted".

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C1292337138-14321-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode,1/2] org-gnus: trim date
> Date: Tue, 14 Dec 2010 19:32:17 -0000
> From: Julien Danjou <julien@danjou.info>
> X-Patchwork-Id: 480
> Message-Id: <1292337138-14321-1-git-send-email-julien@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou <julien@danjou.info>
> 
> * org-gnus.el (org-gnus-store-link): Trim date.
> 
> Signed-off-by: Julien Danjou <julien@danjou.info>
> 
> ---
> lisp/org-gnus.el |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
> index fccd3e9..32641bf 100644
> --- a/lisp/org-gnus.el
> +++ b/lisp/org-gnus.el
> @@ -151,7 +151,7 @@ If `org-store-link' was called with a prefix arg the meaning of
>  		     (gnus-summary-article-header)))
>  	   (from (mail-header-from header))
>  	   (message-id (org-remove-angle-brackets (mail-header-id header)))
> -	   (date (mail-header-date header))
> +	   (date (org-trim (mail-header-date header)))
>  	   (date-ts (and date (format-time-string
>  			       (org-time-stamp-format t) (date-to-time date))))
>  	   (date-ts-ia (and date (format-time-string
> 

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

* Re: [PATCH 1/2] org-gnus: trim date
  2010-12-14 14:32 [PATCH 1/2] org-gnus: trim date Julien Danjou
  2010-12-14 14:32 ` [PATCH 2/2] Allow to retrieve email link date Julien Danjou
  2010-12-16 13:21 ` [Accepted] [Orgmode,1/2] org-gnus: trim date Carsten Dominik
@ 2010-12-16 13:22 ` Carsten Dominik
  2 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-12-16 13:22 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

Applied, thanks.

- Carsten

On Dec 14, 2010, at 3:32 PM, Julien Danjou wrote:

> * org-gnus.el (org-gnus-store-link): Trim date.
>
> Signed-off-by: Julien Danjou <julien@danjou.info>
> ---
> lisp/org-gnus.el |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
> index fccd3e9..32641bf 100644
> --- a/lisp/org-gnus.el
> +++ b/lisp/org-gnus.el
> @@ -151,7 +151,7 @@ If `org-store-link' was called with a prefix arg  
> the meaning of
> 		     (gnus-summary-article-header)))
> 	   (from (mail-header-from header))
> 	   (message-id (org-remove-angle-brackets (mail-header-id header)))
> -	   (date (mail-header-date header))
> +	   (date (org-trim (mail-header-date header)))
> 	   (date-ts (and date (format-time-string
> 			       (org-time-stamp-format t) (date-to-time date))))
> 	   (date-ts-ia (and date (format-time-string
> -- 
> 1.7.2.3
>
>
> _______________________________________________
> 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] 6+ messages in thread

end of thread, other threads:[~2010-12-19 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14 14:32 [PATCH 1/2] org-gnus: trim date Julien Danjou
2010-12-14 14:32 ` [PATCH 2/2] Allow to retrieve email link date Julien Danjou
2010-12-16 13:18   ` [Accepted] [Orgmode, " Carsten Dominik
2010-12-16 13:20   ` [PATCH " Carsten Dominik
2010-12-16 13:21 ` [Accepted] [Orgmode,1/2] org-gnus: trim date Carsten Dominik
2010-12-16 13:22 ` [PATCH 1/2] " Carsten Dominik

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