Footers
Any ideas on how to apend footers to all outgoing mail, I have seen some solutions using cat to append a message, but this will not work with multipart messages, so is there a definitive solution? James Peacock.
Re: Footers
James Peacock <[EMAIL PROTECTED]> wrote: > Any ideas on how to apend footers to all outgoing mail, I have seen some > solutions using cat to append a message, but this will not work with > multipart messages, so is there a definitive solution? It's been discussed many times on the list. I seem to recall most of these discussions ending with a note that multipart messages would be difficult to handle; you'd have to write a program (in Perl, Python, etc) to disassemble the messages, determine which part(s) to add the footer to, reassemble the messages, and pass them on from there. Of course, you also have to be careful not to modify signed/encrypted parts, etc. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Footers
On Wed, May 16, 2001 at 03:28:15PM +0100, James Peacock wrote: > > Any ideas on how to apend footers to all outgoing mail, I have seen some > solutions using cat to append a message, but this will not work with > multipart messages, so is there a definitive solution? The definitive solution is to DISSECT the multipart mail and then mogrify each text part that "needs" to be manipulated and then RECOMPOSE the MIME-construction. Not a very nice work to do. To the users, to the mailservers, to yourself. Doing it as a part of the mailclient is another history. /magnus -- ::.. Magnus Bodin .. http://x42.com/ . teoaislnrhmdcpg,f0ywv.1>:k2b"?5368/x+-
Please Help: Concerning Qmail Footers. (fwd)
[ -= (><) =- ] [Masuo Jeff Gates] [Chief Security Officer / Chief Financial Officer] [ Infinite Probability Networks Inc. ] [ http://www.ipninc.com/ ] -- Forwarded message -- Date: Wed, 27 Oct 1999 16:59:18 -0500 (CDT) From: Masuo Jeff Gates <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Please Help: Concerning Qmail Footers. Hello, I am having issues implementing a footer hack. I would much appreciate anybody's input. I put a hook in qmail-queue.c to call a perl script (simple fork() execlp()). The perl script I wrote parses the message in mess/x/messnum, and adds an appropriate footer (text or html). (I got around the doubled-add by putting in an X- header, also added support for the different Content-Types.) Anyways, things looked great during testing (writing to /var/qmail/queue/temp.txt, footers were added beautifully), but when it came down to actually WRITING to mess/x/messnum: Insecure dependency in open while running setuid at /var/qmail/ bin/footer.pl line 268. was the warning I got. Does anybody happen to have any insight on what I must do to get this working? (At this time in the morning, the only thing I can think of is putting in a sleep() in queue, and having a shell script (running as root) mv the footer added file to the correct dir (I will not do this ^^;;). I would much appreciate any help at all. Thank you in advance, Masuo Gates
Attaching text footers to every message?
Can anyone give me a hint, how to attach a small text message to every outgoing/incoming e-mail using qmail on tcpserver? Thanx in advance and best regards! Piotr Wanat
Re: Please Help: Concerning Qmail Footers. (fwd)
Why the hell can I: open FOO, "> /var/qmail/queue/tmp.txt"; but not: open FOO, "> /var/qmail/queue/$messnum"; ?? Could somebody direct me to what .c file is inhibiting this? (I just need this to work for now... I will try and implement everything in qmail-smtpd.c when I have the time.) Thank you, Masuo Gates On Wed, 27 Oct 1999, Masuo Jeff Gates wrote: > Hello, > I am having issues implementing a footer hack. I would much > appreciate anybody's input. > > I put a hook in qmail-queue.c to call a perl script (simple > fork() execlp()). The perl script I wrote parses the message in > mess/x/messnum, and adds an appropriate footer (text or html). (I got > around the doubled-add by putting in an X- header, also added support for > the different Content-Types.) > > Anyways, things looked great during testing (writing to > /var/qmail/queue/temp.txt, footers were added beautifully), but when it > came down to actually WRITING to mess/x/messnum: > > Insecure dependency in open while running setuid at /var/qmail/ > bin/footer.pl line 268. > > was the warning I got. > > Does anybody happen to have any insight on what I must do to get this > working? (At this time in the morning, the only thing I can think of is > putting in a sleep() in queue, and having a shell script (running as root) > mv the footer added file to the correct dir (I will not do this ^^;;). > > I would much appreciate any help at all. > > Thank you in advance, > > Masuo Gates > > > >
Re: Please Help: Concerning Qmail Footers. (fwd)
You are using perl -T. $messnum is not untainted, because you get it on the command line or whatever, which perl doesn't like in taint mode in a SUID root program (it might contain for instance ../../../etc/password). The C program preventing you from doing this is /usr/bin/perl. I assume: $msg = $messnum + 0; or: $messnum ~= /^(\d+)$/; then: $msg = $1; open FOO, "> /var/qmail/queue/$msg"; would work. -Sincerely, Fred (Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)
Re: Please Help: Concerning Qmail Footers. (fwd)
On Wed, Oct 27, 1999 at 05:03:12PM -0500, Masuo Jeff Gates wrote: > I am having issues implementing a footer hack. I would much > appreciate anybody's input. > > I put a hook in qmail-queue.c to call a perl script (simple Is it really wise to put a hook here? Isn't it better to do it in qmail-smtpd and/or qmail-inject? Then it will only be called once per message even if it gets forwarded. (See the big qmail picture to see the loop) -- magnus -- MOST useless 1998 * http://x42.com/
footers in mailinglists (was: Unsubsribing from the mailinglist)
* Ruprecht Helms <[EMAIL PROTECTED]> writes: > If the listmaster is reading this mail. I suggest that a footer with a > unsubscribe note will automaticly added to each mail. 1. The unsubscription instructions are on the website. 2. The unsubscription instructions are sent to you upon subscription. 3. The unsubscription instructions can be retrieved by sending mail to #l#[EMAIL PROTECTED] Your suggesetion adds nothing but unnecessary bloat while not providing any meaningful (i.e. new) information for somebody too fucking stupid to read and understand even the simplest instructions. Mind you, most of these morons try to unsub an address they no longer use and cannot see the headers because their technologically advanded, feature-rich and usually American software prevents them from doing that. Adding #l#[EMAIL PROTECTED] will buy you exactly *nothing*. archive##[EMAIL PROTECTED] just might help if it worked. Also, stock ezmlm does not provide for a trailer. Get a life.l -- Robin S. Socha - Your Worst Network Nightmare(tm). `In Germany, they are not referred to as network administrators. They prefer to be called "Sons Of The Third Reich".' (Kate: www.katewerk.com)