Lars Ingebrigtsen <[email protected]> writes:
> Abramov Aleksey <[email protected]> writes:
>
>> ((header "Subject" "Ticket#")
>> (bcc (concat
>> (gnus-with-article-buffer
>> (mail-fetch-field "bcc" nil t)) " ,"
>> (bbdb-full-address "[email protected]"))))))
>> Where is my mistake? Any suggestions are welcome.
>
> Is there really a Bcc header in the article buffer? That's kinda
> surprising, since the point of the Bcc header is that it's "blind",
> i.e., it's never seen by the recipient.
No, there should be no one bcc header in the original article. Bcc
header have to be set by myself twice. And at the second time it ?have?
to be found by `mail-fetch-field'.
But in any case, this is my solution to my problem:
#+begin_src emacs-lisp
(setq gnus-posting-styles
'((".*"
(name "Abramov Aleksey")
(address "[email protected]")
(signature "Sincerely,\nAbramov Aleksey."))
("^nnimap\\+aabramov"
(name "Aleksey Abramov")
(address "Aleksey Abramov <[email protected]>")
(organization "Skytel")
(bcc (bbdb-full-address "[email protected]"))
(signature-file "~/emacs-config/mail-signature.work"))
("^nnimap\\+localhost"
(address "[email protected]"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Header replacement
(to (with-current-buffer gnus-article-buffer
(if (string-match "[email protected]" (message-fetch-field
"from"))
"[email protected]"
(message-fetch-field "from"))))
(bcc (with-current-buffer gnus-article-buffer
(if (string-match "[email protected]" (message-fetch-field
"from"))
"[email protected]"
(format "%s, %s" "[email protected]"
"[email protected]"))))))
#+end_src
--
Sincerely,
Abramov Aleksey.
_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english