Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!THUMPER.BELLCORE.COM!nsb From: nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) Newsgroups: comp.soft-sys.andrew Subject: Re: Want messages.FwdHeaders preference Message-ID: Date: 9 Apr 91 18:52:26 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 Well, you've found the right place. In particular, there's the case that starts with case AMS_REPLY_FORWARD: case AMS_REPLY_FORWARD_FMT: which is where the action really begins. Unfortunately, the headers are handled differently for the two cases, so you'll need to handle both. (The difference is whether the forwarded message was already in Andrew format, or not. In one case, the work is done by EmitBE2Prefix... while in the other case the headers aren't treated any differently from the body.) The good news is that, since you are indeed no longer in ATK-land, the code you need to read preferences is really quite simple. Just use getprofile, as in char *s = getprofile("fwdheaders"); (Note that you don't really want "messages.FwdHeaders" because you want preferences like *.fwdheaders to affect cui, vui, etc.) Since that was your only specific question, I'll stop here, except to say that I don't think this should be too difficult, but won't be totally trivial either since the headers are currently being just "block copied" into the forwarded message. Good luck. -- Nathaniel