include nnir search groups gnus-posting-styles
Hi [th,h]ere! I have a bunch of mail folders where the email address and some headers are rewritten using 'gnus-posting-styles'. I realised that when I'm searching in these folders, this rewrite does not happen. Can I 'simply' include the nnir groups in the rule? Or are the nnir groups different each time I search? ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Fixed already (Re: include nnir search groups gnus-posting-styles)
On 18 Jul 2012, Gijs Hillenius wrote: [...] Can I 'simply' include the nnir groups in the rule? Or are the nnir groups different each time I search? Yes, you can. Added nnir\:.* and it worked. So far, so good. ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Oops. that's not a fix (Re: include nnir search groups gnus-posting-styles)
On 18 Jul 2012, Gijs Hillenius wrote: On 18 Jul 2012, Gijs Hillenius wrote: [...] Can I 'simply' include the nnir groups in the rule? Or are the nnir groups different each time I search? Yes, you can. Added nnir\:.* and it worked. So far, so good. This was before I woke up. Gnus now will rewrite all nnir searches. Hm. I want only rewrites for the folders that need to be rewritten.. ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: How to create/add-to-existing headers in a posting style?
a...@koldfront.dk (Adam Sjøgren) writes: An existing variable in group parameters will be automagically be made local in the corresponding summary buffer. Hm, I can't make it work, though; I get this error in *Messages*: let: Symbol's value as variable is void: bbdb-insinuate-message Hm, do you have a backtrace? The value of message-setup-hook is (asjo-add-now-playing-header bbdb-insinuate-message), which works fine. Maybe I messed up the group parameters somehow... Hm, basically it looks good to me. But it might be a good idea to make that huge lamba an own function. --8---cut here---start-8--- (defun my-gnus-add-special-cc () (save-excursion (message-goto-cc) (when (not (string-match reallyreallyimport...@example.org (buffer-substring-no-properties (line-beginning-position) (line-end-position (when (not (= (- (point) (line-beginning-position)) 4)) (insert , )) (insert reallyreallyimport...@example.org (setq gnus-parameters '((that\.special\.group (message-setup-hook (append message-setup-hook '(my-gnus-add-special-cc)) --8---cut here---end---8--- Bye, Tassilo ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: How to create/add-to-existing headers in a posting style?
On Wed, 18 Jul 2012 12:54:32 +0200, Tassilo wrote: a...@koldfront.dk (Adam Sjøgren) writes: An existing variable in group parameters will be automagically be made local in the corresponding summary buffer. Hm, I can't make it work, though; I get this error in *Messages*: let: Symbol's value as variable is void: bbdb-insinuate-message Hm, do you have a backtrace? No, I do not get a backtrace - the buffer with the email ends up without quotation and the message above is shown in *Messages*. [See below, though] Hm, basically it looks good to me. But it might be a good idea to make that huge lamba an own function. [...] Gives me the same symptom. (I hoped it would :-)) (setq gnus-parameters [...] Note that I am using Group Parameters on the group in question rather than setting the gnus-parameters variable. o o o After factorying out the lambda to a named function I did toggle-debug-on-error and got this backtrace: Debugger entered--Lisp error: (void-variable bbdb-insinuate-message) (asjo-add-now-playing-header bbdb-insinuate-message asjo-handle-cc) (let ((value (asjo-add-now-playing-header bbdb-insinuate-message asjo-handle-cc))) (when value (message-goto-eoh) (insert Message-Setup-Hook : value) (unless (bolp) (insert \n (save-excursion (message-remove-header Message-Setup-Hook) (let ((value (asjo-add-now-playing-header bbdb-insinuate-message asjo-handle-cc))) (when value (message-goto-eoh) (insert Message-Setup-Hook : value) (unless (bolp) (insert \n) (lambda nil (save-excursion (message-remove-header Message-Setup-Hook) (let ((value (asjo-add-now-playing-header bbdb-insinuate-message asjo-handle-cc))) (when value (message-goto-eoh) (insert Message-Setup-Hook : value) (unless (bolp) (insert \n))() run-hooks(message-setup-hook) message-setup-1([...cut...]) message-setup([...cut...]) message-reply(nil t) ad-Orig-gnus-summary-reply((398652) t (398652)) gnus-summary-reply((398652) t (398652)) gnus-summary-very-wide-reply-with-original(nil) call-interactively(gnus-summary-very-wide-reply-with-original nil nil) Best regards, Adam -- You know, if the sun was an oboe, what would you do? Adam Sjøgren a...@koldfront.dk ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english