* Concat signatures.
@ 2005-02-11 12:50 François LAGARDE
2005-02-11 13:49 ` Reiner Steib
0 siblings, 1 reply; 2+ messages in thread
From: François LAGARDE @ 2005-02-11 12:50 UTC (permalink / raw)
Hello,
I would like to concat differents signature-file in my
posting-style. Ideally I would lile something like that:
(setq gnus-posting-styles
'((".*"
(signature (concat "my_first_file" "my_second_file")))
(".*afield.*"
(signature (concat "my_first_file" "my_third_file")))
)
)
Any idea.
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Concat signatures.
2005-02-11 12:50 Concat signatures François LAGARDE
@ 2005-02-11 13:49 ` Reiner Steib
0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2005-02-11 13:49 UTC (permalink / raw)
On Fri, Feb 11 2005, François LAGARDE wrote:
> I would like to concat differents signature-file in my
> posting-style. Ideally I would lile something like that:
> (setq gnus-posting-styles
> '((".*"
> (signature (concat "my_first_file" "my_second_file")))
> (".*afield.*"
> (signature (concat "my_first_file" "my_third_file")))
> )
> )
>
> Any idea.
(defun rs-gnus-signature-files-to-string (&rest files)
"Concat FILES and return a string."
(with-temp-buffer
(dolist (f files)
(insert-file-contents f))
;; Borrowed from `gnus-configure-posting-styles':
(buffer-substring (point-min)
(progn
(goto-char (point-max))
(if (zerop (skip-chars-backward "\n"))
(point)
(1+ (point)))))))
(setq gnus-posting-styles
`((".*"
(signature ,(rs-gnus-signature-files-to-string
"my_first_file" "my_second_file")))
(".*test.*"
(signature ,(rs-gnus-signature-files-to-string
"my_first_file" "my_third_file")))))
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-11 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 12:50 Concat signatures François LAGARDE
2005-02-11 13:49 ` Reiner Steib
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 NNTP newsgroup(s).