Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Louis <usenet26@ossh.com>
Subject: Re: multiple id's and additional headers
Date: Tue, 09 Dec 2003 18:13:04 GMT	[thread overview]
Message-ID: <nntp.hhptexq2ed.fsf@ossh.com> (raw)
In-Reply-To: <87ekveq7rf.fsf@oz.fapse.ulg.ac.be>

Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> writes:

> Hi all,
>
> I'd like to setup several id's (changing the from and other headers
> fields) like I did in Mew. Can someone point me the info node or
> something?

I use the following to change headers depending on where I'm posting:

;; add to ~/.gnus

;; customize message id for each group / mailing list

   (defun message-make-message-id()
      (concat "<nntp." (message-unique-id) "@" ossh\.com ">"))

;; customize group headings - edited for privacy

(setq gnus-posting-styles
	'(("nnml:.*"
         (From (save-excursion
                 (set-buffer gnus-article-buffer)
                 (message-fetch-field "to"))))
	("^nnml\\+private\\:mainemail@ossh\\.com"
	 (address "mainemail@ossh.com")
         (signature-file "~/.signature"))

	 ("^nnml\\+private\\:Gentoo Users"
	 (address "email-00@ossh.com")
         (signature-file "~/.signature-gentoo"))

        ("^nn.+:"
         (signature-file "~/.signature"))

	("^nnml\\+private\\:lug@lug\\.org"
	 (address "lugemail@ossh.com")
	 (to "lug@lug.org")
	 (cc nil)
         (signature-file "~/.sig/signature-lug"))

	("^earthlink"
	 (address "usenet26@ossh.com")
	 (x-face nil)
	 (face nil)
	 (organization " change to whaterver")
	 (name "Louis")
   (eval (setq ossh.com "anotherdomain.foo"))
	 (signature "change sig"))
	
	("^alt"
	 (address "usenet26@ossh.com")
	 (organization "LCC")
	 (name "Louis")
   (eval (setq ossh.com "yetanotherdomain.foo"))
	 (signature "LCC"))

;; snipped for privacy

))

(setq message-default-headers
      (concat

"X-Whatever: whatever you want \n"
"X-Anotherheader: whatever you want \n"
"X-etc: you get the point \n"

"Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWQcmwjGBYIAQK3l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J4PvibalOt8FEo8VVAo23DNXhy
 tysf/wFufjz6UR4fC3h/VWxXfMVCURpgXOrFAATzHV9x7i3E1+P0eiBILOPGDwa2KFPTVKN/BP8C
 vna5gvPAc7oAAAAASUVORK5CYII= \n"

(with-temp-buffer
          (insert "X-Face: ")
          (insert-file-contents "~/.xface13")
          (buffer-string))))

;; end of ~/.gnus stuff

> Also, i'd like to add x-face and face headers. I think there was an
> article about that some times (days) ago but I did not press '*' and it
> seems to be away :'(

I use the above to do what you requested within this post. Just drop
it into your ~/.gnus and edit to your taste and away you go.

> Thanks for an url to create my own 'color' Face.

If you're lazy (have an inclination you might be, but then again so am
I) then use an online x-face creator such as this:

   * www.dairiki.org/xface/

make sure you make the image 48x48 grayscale *before* you put it
through the above URL for best results.

The face header:

   * quimby.gnus.org/circus/face/

is simple to do if you take the time to make the image 48x48 and play
around with it being 5-16 colors depending on how much color the image
has. I used a combination of photoshop / image-ready and photodraw,
but I'm sure you can get away with using Gimp, ImageMagick or even
pngcrush:

    * http://pmt.sourceforge.net/pngcrush/
    * http://www.gimp.org/
    * http://www.imagemagick.org/

Once you have a 48x48 5-16 color PNG do the following:

    'M-x find-file-literally RET'
    'find *.png file you created'
    'C-x h'
    'M-x base64-encode-region'

Replace my 'Face: " \n"' what you receive in the above buffer and
remember to leave the trailing '\n' (newline). 

I had a problem with the face header being so long it would spill into
the body of a post / email because I have not figured out how to do a
line continuation, so to get around that you can post a test message
into news://alt.test and pressing 'C-c C-c' and Gnus will ask you if
you would like to fix the line continuation, which you say 'Yes' to
each request until it sends. Once sent find your post within alt.test
and copy *that* working face header into your ~/.gnus file and you
should have a Face and X-Face header like mine.

I'm sure there is an easier way to do the above, but the above works
for me so it should work for you too. The reason I put my huge
'Face:' into ~/.gnus is because I dont know how to put an '\n'
between Face: and X-Face: if both placed within a file. If you can
figure it out by all means let me know :p

-- 
LCC


      parent reply	other threads:[~2003-12-09 18:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09 16:24 Arnaud Vandyck
2003-12-09 17:26 ` Arnaud Vandyck
2003-12-09 18:13 ` Louis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nntp.hhptexq2ed.fsf@ossh.com \
    --to=usenet26@ossh.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).