Steven -- ...and then Steven G . Harms said... % David, % % I don't know how you're getting the 'indenter' program to indent % all your lines. I noticed something peculiar when handling the % mail in emacs.
I use vim as my real editor, and I simply told mutt that my editor was the indenter program script (which then calls vim at the end of it). % % So the message that mutt shows as the inline attached text % file is "/tmp/mutt-stharms-lnx-27003-79". Here's the 'head' of % that file: I get that, too; my compose menu shows "mutt-zero-652-2807", which contains only the body (as far as I may have modified it by the time I *edit* the editor), and when I'm not in an editor that's the only file in /tmp as well. When I am, though, I have an additional file with -NNNN as the process number of my editor (up to 2810 as I flip to another window and do the ls to check), and THAT file has the headers at the top of it, as we would expect. % ... % This is after having (F)iltered it thru my 'indenter' which puts a % single ':' at the front of $_ from the STDIN file handle. Right. So you're filtering from the mutt compose menu, I presume. That sounds completely useless for what you need to do, since the headers aren't included. % % Now if I (E)dit the file i notice in emacs' buffer name line that % the file I'm editing is: % % /tmp/mutt-stharms-lnx-27003-87. Yep. % % Running 'head' on this file produces: % % From: "Steven G . Harms" <[EMAIL PROTECTED]> % To: issu <[EMAIL PROTECTED]> % Cc: % Bcc: % Subject: Re: (Case #4404675) for ayazdi has been updated. % % % Lo! My belov'd headers are there! It would seem that Mutt keeps the % "text+headers" in one file; upon save and return to mutt it % splits the headers OUT and treats the text section as another % file entirely. Yeah, it would. That makes sense, too, since it has to create other headers (Message-ID: leaps immediately to mind; Hi, Rob!) which are not available via edit_headers; it will take the headers that you specify at the front of your file and incorporate them, and then spit them out again when you edit again. % % This flies entirely in the face of what you say you were able % to accomplish. Does a similar effect NOT happen to you? No, it doesn't, because I'm not trying to filter. Forget that and write a wrapper script which first does your indent magic (the initial version of your Subject: and Cc: manipulation) and THEN calls your editor, with whatever arguments you may have specified in your $editor variable, on $1 (the first arg passed to the wrapper). % % I assume it's not a version difference thing. % % I'm going to see if manually prepending the headers I desire can % get me the results I want. I doubt it though. Don't muck with it; change $editor and be done! % % (thanks for all the perl help from the mongers BTW) Same here! % % Steven :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg20568/pgp00000.pgp
Description: PGP signature
