Gnus development mailing list
 help / color / mirror / Atom feed
* Feature request: optional sig separator
@ 2000-11-06 21:51 Christoph Conrad
  2000-11-06 22:40 ` Francisco Solsona
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Conrad @ 2000-11-06 21:51 UTC (permalink / raw)


Hello!

See my sig below: it's really all beginning with "Best regards". You
cannot achieve that with Gnus out of the box, cause the sig insertion
code of Gnus always inserts the separator. This should be the default
separator, but it should also possible to turn the insertion of the
default separator off. Maybe THEN should be tested when inserting the
sig if the separator is a valid "^-- $".

To achieve this behaviour i had to do some ugly coding (prevents using
`gnus-posting-styles'):

(setq message-signature-file "~/.signature")
(setq message-signature nil)

;; Calling sequence in function `message-setup':
;; 1) `message-signature-setup-hook'
;; 2) `message-insert-signature'
;;    (not called because message-signature is nil)
;; 3) `message-setup-hook'
(add-hook 'message-signature-setup-hook
          (function
           (lambda()
             "Add sig without extra \"-- \""
             (goto-char (point-max))
             ;; Insert the signature.
             (insert "\n")
             (unless (bolp)
               (insert "\n"))
             (insert-file-contents message-signature-file)
             (goto-char (point-max))
             (or (bolp) (insert "\n")))))

Best regards,
cu, -cc-
-- 
This message was written completely with recycled 0's and 1's.
(defvar my-computer '((OS . "GNU Emacs") (system-type . gnu/linux))
	"Programming environment.")



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

end of thread, other threads:[~2000-11-07  7:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-06 21:51 Feature request: optional sig separator Christoph Conrad
2000-11-06 22:40 ` Francisco Solsona
2000-11-07  7:38   ` Christoph Conrad

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