debian/0000755000000000000000000000000011563755035007200 5ustar debian/rules0000755000000000000000000000056111560043543010251 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_configure: linuxdoc --backend=html debian/docs/postfix-altermime-howto.sgml mkdir -p debian/docs/html mv -f postfix-altermime-howto*.html debian/docs/html dh_auto_configure override_dh_auto_install: dh_auto_install --destdir=debian/altermime/usr/bin override_dh_auto_clean: rm -rf debian/docs/html dh_auto_clean debian/lintian-overrides0000644000000000000000000000012211560043543012543 0ustar altermime: spelling-error-in-binary usr/bin/altermime Requires to Requires one to debian/source/0000755000000000000000000000000011560043543010467 5ustar debian/source/format0000644000000000000000000000001411560043543011675 0ustar 3.0 (quilt) debian/altermime.manpages0000644000000000000000000000002311560043543012656 0ustar debian/altermime.1 debian/docs/0000755000000000000000000000000011560043543010117 5ustar debian/docs/postfix_filter.sh0000644000000000000000000000140611560043543013515 0ustar #!/bin/sh # Localize these. INSPECT_DIR=/var/spool/filter SENDMAIL=/usr/sbin/sendmail # Exit codes from EX_TEMPFAIL=75 EX_UNAVAILABLE=69 # Clean up when done or when aborting. trap "rm -f in.$$" 0 1 2 3 15 # Start processing. cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; } cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; } /usr/bin/altermime --input=in.$$ \ --disclaimer=/etc/postfix/disclaimer.txt \ --disclaimer-html=/etc/postfix/disclaimer.txt \ --xheader="X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm" || \ { echo Message content rejected; exit $EX_UNAVAILABLE; } $SENDMAIL -oi "$@"
Postfix-alterMIME-HOWTO <!-- insert your title here --> <author>Derrick J Houy, <tt/djhouy@paw.za.org/ <!-- insert your name here --> <date>v0.05, 13 Apr 2005 <!-- always have a version number and a date --> <abstract> <!-- the abstract: a short and precise description --> <nidx>(your index root)</nidx> <!-- add indexing keywords as you go along --> <!-- nidx means the indexed word is not in output of main text, only in the index --> This HOWTO outlines the installation and use of alterMIME to add disclaimer text to outgoing emails with Postfix. </abstract> <!-- Table of contents --> <toc> <!-- Begin the document --> <sect>Introduction <p> <!-- always use a p tag (paragraph) immediately after a sect tag --> <nidx>(your index root)!introduction</nidx> <!-- here introduction is a sub entry of template, exclamationmark is separator --> <p> In this HOWTO, I will attempt to outline the necessary steps to install and configure alterMIME to be used with Postfix, for the purpose of adding disclaimer text to outgoing email messages. <p> I do not intend for this to be the final authority on the subject, only an example of how I got it working in my own situation. In the attempt to add disclaimers to email messages, I was faced with a lack of easy to follow documentation, and so I hope that this small contirbution will fill that gap. <p> The most recent version of this HOWTO shall be found at: <htmlurl url="http://www.paw.co.za/docs/howtos/postfix-altermime/postfix-altermime-howto.html"> <sect1>Copyright <p> This document is Copyright 2003-2004 by Derrick J Houy. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found in Appendix A. <sect1>Disclaimer <p> Use the information in this document at your own risk. I disavow any potential liability for the contents of this document. Use of the concepts, examples, and/or other content of this document is entirely at your own risk. All copyrights are owned by their owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Naming of particular products or brands should not be seen as endorsements. You are strongly recommended to take a backup of your system before major installation and backups at regular intervals. <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <sect>Installation and Configuration <p> This documentation is based on the Linux distribution I used (Red Hat 9 with Postfix), and although it should work on most any Linux distribution, you may need to defiate from the exact instructions to get it working on your particular flavour of Linux. <sect1>Installing alterMIME <p> alterMIME can be downloaded from <htmlurl url="http://www.pldaniels.com/altermime/">. The version I used was 0.3.1. <p> Once downloaded, you need to unpack the tarball, change into the new directory and run <verb>make</verb> <p> After building the altermime executable, install it as follows <verb> cp altermime /usr/bin/ chown root.root /usr/bin/altermime chmod 755 /usr/bin/altermime </verb> <sect1>Adding a Non-Privileged User To Run alterMIME <p> Unless you have already done this to run other filters in Postfix, the next step is to add a user account to the system that Potfix will use to run the alterMIME filter <verb> useradd -r -c "Postfix Filters" -d /var/spool/filter filter </verb> Once you have created this account you need to create the account's home directory <verb> mkdir /var/spool/filter chown filter.filter /var/spool/filter chmod 750 /var/spool/filter </verb> <sect1>Creating The Script To Run alterMIME <p> You now need to create the following script, changing whatever you need to personalize it <verb> /etc/postfix/disclaimer </verb> <code> #!/bin/sh # Localize these. INSPECT_DIR=/var/spool/filter SENDMAIL=/usr/sbin/sendmail # Exit codes from <sysexits.h> EX_TEMPFAIL=75 EX_UNAVAILABLE=69 # Clean up when done or when aborting. trap "rm -f in.$$" 0 1 2 3 15 # Start processing. cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; } cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; } /usr/bin/altermime --input=in.$$ \ --disclaimer=/etc/postfix/disclaimer.txt \ --disclaimer-html=/etc/postfix/disclaimer.txt \ --xheader="X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm" || \ { echo Message content rejected; exit $EX_UNAVAILABLE; } $SENDMAIL -oi "$@" <in.$$ exit $? </code> <p> Once you have created this script, set the permissions to allow it to be executed by the filter user <verb> chgrp filter /etc/postfix/disclaimer chmod 750 /etc/postfix/disclaimer </verb> <sect1>Creating The Disclaimer Files <p> You need to create the disclaimer text file that was specified in the disclaimer.sh file <verb> /etc/postfix/disclaimer.txt </verb> <p> The content of this file is very much dependent on your requirements, but examples can be found at <htmlurl url="http://www.emaildisclaimers.com">. <p> In my situation, I have used the same file for both the <tt/--disclaimer/ and <tt/--disclaimer-html/ files. I tried to use the <tt/--htmltoo/ parameter to tell alterMIME to use the same file for both, but this did not seem to work correctly. <sect1>Postfix Configuration <p> Finally, you need to configure Postfix to run the filter. In my case, I only wanted outgoing messages to be modified, so I explicitly configured Postfix to listen on different network interfaces, but to only run the filter on the one. <p> To achieve this, you need to modify the smtp service in <tt//etc/postfix/master.cf/ to be as follows <code> <incoming ip>:smtp inet n - y - - smtpd <outgoing ip>:smtp inet n - y - - smtpd -o content_filter=dfilt: </code> <p> replacing <incoming ip> and <outgoing ip> with the IP addresses of the different network interfaces. In practice, these IP addresses could be bound to the same network controller. <p> Now you need to add the following new service to the same file <code> dfilt unix - n n - - pipe flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient} </code> <p> NOTE: You need to ensure that local processes are still able to send mail. The simplest case way is to include a line like the one below in <tt//etc/postfix/master.cf/ (Thank you to Ian Clancy for pointing out this omisson). <code> 127.0.0.1:smtp inet n - y - - smtpd </code> <p> Once you have done this, restart Postfix and send through some test messages whilst watching the mail log. If everything goes through fine, without any errors, you can pat yourself on the back and go get a cup of coffee. <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --> <sect>Appendix A <sect1>GNU Free Documentation License <p> Please refer to <htmlurl url="http://www.gnu.org/copyleft/fdl.html"> to obtain a copy of the GNU FDL Licence. </article> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/compat���������������������������������������������������������������������������������������0000644�0000000�0000000�00000000002�11560043543�010365� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������8 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/�������������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�11560043543�010616� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/05_makefile_nostrip.diff�������������������������������������������������������������0000644�0000000�0000000�00000000423�11560043543�015306� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: handles nostrip build option Author: Julien Valroff <julien@debian.org> Forwarded: not-needed --- a/Makefile +++ b/Makefile @@ -24,7 +24,6 @@ # Build Install install: altermime - strip altermime cp altermime ${DESTDIR} chmod a+rx ${DESTDIR}/altermime ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/15_fix_snprintf.diff�����������������������������������������������������������������0000644�0000000�0000000�00000001233�11560043543�014465� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Fix name mismatch Author: Cristian Rodríguez Origin: upstream Bug-Debian: http://bugs.debian.org/602515 --- a/MIME_headers.c +++ b/MIME_headers.c @@ -2243,7 +2243,7 @@ { if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: filename = %s\n", FL, p); snprintf(hinfo->name, sizeof(hinfo->name),"%s",p); - snprintf(hinfo->filename, sizeof(hinfo->name),"%s",p); + snprintf(hinfo->filename, sizeof(hinfo->filename),"%s",p); //PLD:20100611 - fixed name mismatch,Cristian Rodríguez FNFILTER_filter(hinfo->filename, _MIMEH_FILENAMELEN_MAX); SS_push(&(hinfo->ss_filenames), hinfo->filename, strlen(hinfo->filename)); ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/01_makefile_destdir.diff�������������������������������������������������������������0000644�0000000�0000000�00000000711�11560043543�015242� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Adds ${DESTDIR} variable to Makefile Author: Julien Valroff <julien@debian.org> Forwarded: not-needed --- a/Makefile +++ b/Makefile @@ -25,11 +25,11 @@ # Build Install install: altermime strip altermime - cp altermime /usr/local/bin - chmod a+rx /usr/local/bin/altermime + cp altermime ${DESTDIR} + chmod a+rx ${DESTDIR}/altermime uninstall: - rm -f /usr/local/bin/altermime + rm -f ${DESTDIR}/altermime clean: rm -f *.o altermime �������������������������������������������������������debian/patches/series�������������������������������������������������������������������������������0000644�0000000�0000000�00000000210�11560043543�012024� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������01_makefile_destdir.diff 05_makefile_nostrip.diff 10_fix_printk_warnings.diff 15_fix_snprintf.diff 20_fix-unused-but-set-variables.diff ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/patches/20_fix-unused-but-set-variables.diff�������������������������������������������������0000644�0000000�0000000�00000004671�11560043543�017377� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Fix compiler warnings for 'unused-but-set-variable' causing FTBFS with -Werror and GCC 4.6 Author: Julien Valroff <julien@debian.org> Bug-Debian: http://bugs.debian.org/625307 --- a/MIME_headers.c +++ b/MIME_headers.c @@ -1081,12 +1081,10 @@ int linesize=0; int totalsize_original=0; int result = 0; - int firstline = 1; int search_count=0; char *tmp; char *tmp_original; char *fget_result = NULL; - char *headerline_end; char *p; char *linestart; char *lineend; @@ -1184,7 +1182,6 @@ glb.headerline = tmp; totalsize = linesize; PLD_strncpy(glb.headerline, linestart, (linesize +1)); - headerline_end = glb.headerline +totalsize; } // If the global headerline is currently NULL else { @@ -1271,7 +1268,6 @@ FFGET_SDL_MODE = 0; } // FFGET_doubleCR test - firstline = 0; } // While reading more headers from the source file. @@ -2724,13 +2720,13 @@ { /** scan through our headers string looking for information that is ** valid **/ - char *safeh, *h, *safehl; + char *h, *safehl; char *current_header_position; int headerlength; if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIMEH_parse_headers:DEBUG: Start [hinfo=%p]\n",FL, hinfo); - safeh = h = headers; + h = headers; /** Duplicate the headers for processing - this way we don't 'taint' the ** original headers during our searching / altering. **/ --- a/mime_alter.c +++ b/mime_alter.c @@ -2432,7 +2432,6 @@ char mpackold[AM_1K_BUFFER_SIZE+1]=""; struct AM_disclaimer_details dd; int result = 0; - int segment_read = 0; /* create our temp filename */ snprintf(mpacktmp,AM_1K_BUFFER_SIZE, "%s.tmp",mpackname); @@ -2623,7 +2622,6 @@ */ - segment_read = 0; if (FFGET_feof(&f)) break; // If we've found a boundary and a text content section... @@ -3698,7 +3696,6 @@ int AM_attachment_replace_recurse( struct MIMEH_header_info *hinfo, FFGET_FILE *f, FILE *outputfile, regex_t *preg, char *new_attachment_name, int iteration ) { int result = 0; - int boundary_exists=0; size_t bc; if (AM_DNORMAL) LOGGER_log("%s:%d:AM_attachment_replace_recurse:DEBUG: Starting: iteration=%d",FL, iteration ); @@ -3776,7 +3773,6 @@ { if (AM_DNORMAL)LOGGER_log("%s:%d:AM_attachment_replace_recurse:DEBUG: pushing BS='%s'",FL, hinfo->boundary ); BS_push( hinfo->boundary ); - boundary_exists = 1; } // Now, determine if this block/segment is the one which contains our file which we must 'nullify' �����������������������������������������������������������������������debian/patches/10_fix_printk_warnings.diff����������������������������������������������������������0000644�0000000�0000000�00000003511�11560043543�016035� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Description: Fix compile errors on debug statements Author: Julien Valroff <julien@debian.org> Forwarded: yes --- a/qpe.c +++ b/qpe.c @@ -97,7 +97,7 @@ op+= strlen(paragraph);// +3; /** jump the output + =\r\n **/ out_remaining-= (strlen(paragraph)); // Was +3, updated to fix Outlook problems - QPD fprintf(stdout, "Soft break (%d + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph); + QPD fprintf(stdout, "Soft break (%Zd + %d > 76 char) for '%s'\n", current_line_length, charout_size, paragraph); /** reinitialize the paragraph **/ paragraph[0] = '\0'; @@ -108,7 +108,7 @@ } snprintf(pp, pp_remaining, "%s", charout); - QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%d result='%s'\n", charout, charout_size, pp_remaining, paragraph); + QPD fprintf(stdout,"charout='%s', size=%d, pp_remain=%Zd result='%s'\n", charout, charout_size, pp_remaining, paragraph); pp += charout_size; pp_remaining -= charout_size; p++; @@ -149,13 +149,13 @@ out_size = in_size *3; in_buffer = malloc( sizeof(char) *in_size +1); if (in_buffer == NULL) { - QPD fprintf(stdout,"Error allocating %d bytes for input buffer\n", in_size); + QPD fprintf(stdout,"Error allocating %Zd bytes for input buffer\n", in_size); return -1; } out_buffer = malloc( sizeof(char) *out_size *3 +1); if (in_buffer == NULL) { - QPD fprintf(stdout,"Error allocating %d bytes for output buffer\n", out_size); + QPD fprintf(stdout,"Error allocating %Zd bytes for output buffer\n", out_size); return -1; } @@ -169,7 +169,7 @@ ** we segfault ;) **/ *(in_buffer +in_size) = '\0'; - QPD fprintf(stdout,"file %s is loaded, size = %d\n", fname, in_size); + QPD fprintf(stdout,"file %s is loaded, size = %Zd\n", fname, in_size); qp_encode( out_buffer, out_size, in_buffer, in_size ); ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/copyright������������������������������������������������������������������������������������0000644�0000000�0000000�00000016157�11560043543�011134� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166 Upstream-Name: alterMIME Upstream-Contact: Paul L. Daniels <pldaniels@pldaniels.com> Source: http://www.pldaniels.com/altermime/ Files: * Copyright: 2000 Paul L. Daniels <pldaniels@pldaniels.com> License: alterMIME LICENSE . The following license terms and conditions apply, unless a different license is obtained from P.L.Daniels, P.O.Box 6, Ravenswood, 4816 Australia, or by electronic mail at pldaniels@pldaniels.com. . License Terms: . Use, Modification and Redistribution (including distribution of any modified or derived work) in source and binary forms is permitted only if each of the following conditions is met: . 1. Redistributions qualify as "freeware" or "Open Source Software" under one of the following terms: . (a) Redistributions are made at no charge beyond the reasonable cost of materials and delivery. . (b) Redistributions are accompanied by a copy of the Source Code or by an irrevocable offer to provide a copy of the Source Code for up to three years at the cost of materials and delivery. Such redistributions must allow further use, modification, and redistribution of the Source Code under substantially the same terms as this license. For the purposes of redistribution "Source Code" means the complete compilable and linkable source code of alterMIME including all modifications. . 2. Redistributions of source code must retain the copyright notices as they appear in each source code file, these license terms, and the disclaimer/limitation of liability set forth as paragraph 6 below. . 3. Redistributions in binary form must reproduce the Copyright Notice, these license terms, and the disclaimer/limitation of liability set forth as paragraph 6 below, in the documentation and/or other materials provided with the distribution. For the purposes of binary distribution the "Copyright Notice" refers to the following language: "Copyright (c) 2000 P.L.Daniels, All rights reserved." . 4. Neither the name of alterMIME, nor Paul L Daniels, nor the the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission. . 5. All redistributions must comply with the conditions imposed by the University of California on certain embedded code, whose copyright notice and conditions for redistribution are as follows: . (a) Copyright (c) 2000 P.L.Daniels, All rights reserved. . (b) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . (i) Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . (ii) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . (iii) Neither the name of alterMIME, nor P.L.Daniels, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . 6. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY P.L.Daniels. AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SENDMAIL, INC., THE REGENTS OF THE UNIVERSITY OF CALIFORNIA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Files: MIME_header.c Copyright: 1999,2000,2001,2002,2003 Paul L. Daniels <pldaniels@pldaniels.com> License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2005-2011 Julien Valroff <julien@debian.org> License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/docs/postfix-altermime-howto.sgml Copyright: 2003-2004 Derrick J Houy License: GFDL-1.1+ Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. . On Debian systems, the complete text of the GNU Free Documentation License, can be found in the file `/usr/share/common-licenses/GFDL'. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/control��������������������������������������������������������������������������������������0000644�0000000�0000000�00000001526�11560043543�010576� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Source: altermime Section: mail Priority: optional Maintainer: Julien Valroff <julien@debian.org> Build-Depends: debhelper (>= 8), linuxdoc-tools Standards-Version: 3.9.2 Homepage: http://www.pldaniels.com/altermime/ Vcs-Git: git://git.kirya.net/debian/altermime.git Vcs-Browser: http://git.kirya.net/?p=debian/altermime.git;a=summary Package: altermime Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, default-mta | mail-transport-agent Description: utility used to alter mime-encoded mailpacks alterMIME is a small program which is used to alter your mime-encoded mailpacks as typically received by Inflex, Xamime and AMaViS. alterMIME can: * Insert disclaimers * Insert arbitrary X-headers * Modify existing headers * Remove attachments based on filename or content-type * Replace attachments based on filename ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/altermime.dirs�������������������������������������������������������������������������������0000644�0000000�0000000�00000000010�11560043543�012020� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������usr/bin ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/watch����������������������������������������������������������������������������������������0000644�0000000�0000000�00000000111�11560043543�010211� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������version=3 http://www.pldaniels.com/altermime/altermime-([\d\.]+)\.tar.gz �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/changelog������������������������������������������������������������������������������������0000644�0000000�0000000�00000015046�11560043543�011047� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������altermime (0.3.10-7) unstable; urgency=low * Update VCS fields * Add lintian override for false positive spelling error * Add patch to Fix compiler warnings for 'unused-but-set-variable' causing FTBFS with -Werror and GCC 4.6 (Closes: #625307) -- Julien Valroff <julien@debian.org> Tue, 03 May 2011 20:05:16 +0200 altermime (0.3.10-6) unstable; urgency=low * Update my email address * Remove DMUA field, now useless * Switch to dh * Depends on default-mta rather than on exim4 * Bump debhelper compat to 8 * Update copyright file to latest DEP5 revision * Update to new policy 3.9.2 (no changes needed) -- Julien Valroff <julien@debian.org> Sat, 09 Apr 2011 07:52:59 +0200 altermime (0.3.10-5) unstable; urgency=low * Add patch to fix FTBS with -Wall turned on - thanks to Alex Chiang * <achiang@canonical.com> (Closes: #602515) -- Julien Valroff <julien@kirya.net> Fri, 05 Nov 2010 18:39:57 +0100 altermime (0.3.10-4) unstable; urgency=low * Bump Debian policy version to 3.9.1 * Add -oi flag to both Postfix howto and example script to ignore single dots on a line - thanks to Markus Keil <keil@ibh.de> (Closes: #569046) -- Julien Valroff <julien@kirya.net> Mon, 26 Jul 2010 18:05:35 +0200 altermime (0.3.10-3) unstable; urgency=low * Bump Standards-Version to 3.8.3 - no further changes * Converted source package to 3.0 (quilt) format * Switched to GIT - updated VCS-* fields accordingly * Added misc:Depends to control file * Removed XS- prefix for DM-Upload-Allowed field * Fixed doc-base installation file -- Julien Valroff <julien@kirya.net> Fri, 01 Jan 2010 18:49:00 +0100 altermime (0.3.10-2) unstable; urgency=low * Upload to unstable * Bumped to new standards version 3.8.1 (no changes needed) * Bumped debhelper compat to 7 -- Julien Valroff <julien@kirya.net> Sun, 15 Mar 2009 08:35:04 +0100 altermime (0.3.10-1) experimental; urgency=low * New upstream release * Added patch to fix compile errors -- Julien Valroff <julien@kirya.net> Mon, 08 Dec 2008 20:17:01 +0100 altermime (0.3.9-1) experimental; urgency=low * New upstream release * Upload to experimental due to testing freeze before Lenny * Added Homepage field * Added Vcs-* fields * Added XS-DM-Upload-Allowed header to allow direct upload of future updates * Bumped to new standards version 3.8.0 (no changes needed) * Switched copyright file to machine-interpretable format -- Julien Valroff <julien@kirya.net> Thu, 30 Oct 2008 18:37:24 +0100 altermime (0.3.8-2) unstable; urgency=low * Added patch so that altermime handles nostrip build option (Closes: #436433) -- Julien Valroff <julien@kirya.net> Tue, 07 Aug 2007 20:00:08 +0200 altermime (0.3.8-1) unstable; urgency=low * New upstream release: + Corrected some code where hard-coded buffer sizes were present rather than properly referenced sizes. + Temporary file removal if insertion is aborted due to signed email + Fixed bug that can cause crashing on QP decoding where the charout size wasn't 1 + Added text/calendar detection + Patch applied for QP encoding problem of chars as hex + Fixed missing boundary situation after BASE64 encoded disclaimer insetion. + Fixed non-MIME BASE64 disclaimer insertion routines + Added BASE64 _encoded_ disclaimer option + Added BASE64 disclaimer insertion routines (NAB) + new FFGET module + Fixed --help output * debian/rules: + Fixed clean target to avoid ignoring all errors when 'make clean' is called -- Julien Valroff <julien@kirya.net> Fri, 13 Jul 2007 23:14:02 +0200 altermime (0.3.7-3) unstable; urgency=low * debian/watch: + Added -- Julien Valroff <julien@kirya.net> Sat, 05 May 2007 11:30:14 +0200 altermime (0.3.7-2) unstable; urgency=low * Fixed typo in long description (Closes: #362717) * Bumped Standards-Version to 3.7.2, no further changes required * Removed debian/watch * Fixed dependency on libc6 (Closes: #383489) -- Julien Valroff <julien@kirya.net> Thu, 17 Aug 2006 18:46:27 +0200 altermime (0.3.7-1) unstable; urgency=low * New upstream release: + fixed disclaimer insertion issue in emails with both HTML and attachment + added Quoted-printable encoding to disclaimers if required by the transfer-encoding header of the MIME segment + applied patch from Tim Jackson which solves a BASE64 induced mail truncation if disclaimer insertion fails -- Julien Valroff <julien@kirya.net> Sat, 1 Apr 2006 17:10:17 +0200 altermime (0.3.6-11) unstable; urgency=low * debian/altermime.docs: + removed README and README.Debian + added LICENCE * Changed architecture to "any" * Removed reportbug hook * Fixed errors in man page -- Julien Valroff <julien@kirya.net> Fri, 30 Dec 2005 18:32:54 +0100 altermime (0.3.6-10) unstable; urgency=low * Fixed linda/lintian warnings about doc-base -- Julien Valroff <julien@kirya.net> Thu, 29 Dec 2005 10:56:39 +0100 altermime (0.3.6-9) unstable; urgency=low * Added hook to make reportbug usable with altermime package -- Julien Valroff <julien@kirya.net> Sun, 4 Dec 2005 08:48:59 +0100 altermime (0.3.6-8) unstable; urgency=low * Updated debian/rules to remove unused targets and noops * Updated debian/control to build-depend on dpatch and debian/rules to pull-in appropriate dpatch pieces -- Julien Valroff <julien@kirya.net> Wed, 21 Sep 2005 20:40:24 +0200 altermime (0.3.6-7) unstable; urgency=low * Added a man page for altermime * Minor fixes to pass Lintian tests -- Julien Valroff <julien@kirya.net> Wed, 24 Aug 2005 17:06:38 +0200 altermime (0.3.6-6) unstable; urgency=low * Changed section from unknown to mail -- Julien Valroff <julien@kirya.net> Sat, 20 Aug 2005 21:49:45 +0200 altermime (0.3.6-5) unstable; urgency=low * Renamed 01.dpatch name to 01_makefile_destdir.dpatch -- Julien Valroff <julien@kirya.net> Sun, 7 Aug 2005 10:22:37 +0200 altermime (0.3.6-4) unstable; urgency=low * Cleaned up source packages * Applied patch to Makefile to enabme ${DESTDIR} variable -- Julien Valroff <julien@kirya.net> Thu, 4 Aug 2005 22:38:31 +0200 altermime (0.3.6-3) unstable; urgency=low * Upload to unstable -- Julien Valroff <julien@kirya.net> Thu, 14 Jul 2005 07:28:46 +0200 altermime (0.3.6-2) experimental; urgency=low * Removed empty examples files * Renamed postfix filter script -- Julien Valroff <julien@kirya.net> Tue, 12 Jul 2005 18:29:05 +0200 altermime (0.3.6-1) experimental; urgency=low * Initial Release. -- Julien Valroff <julien@kirya.net> Sun, 10 Apr 2005 14:56:38 +0200 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/altermime.docs�������������������������������������������������������������������������������0000644�0000000�0000000�00000000022�11560043543�012012� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/docs/html/ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/altermime.1����������������������������������������������������������������������������������0000644�0000000�0000000�00000002103�11560043543�011224� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������.TH altermime "1" "August 2005" "altermime 0.3.6" "User commands" .SH NAME altermime \- MIME encoded email pack alteration tool .SH DESCRITPION The \fBalterMIME\fR program (and objects) has been written to facilitate the modification of MIME encoded email packs when such things as disclaimer additions and attachment nullification is required. \fBalterMIME\fR is part of the suite of software which includes Inflex email scanner, ripMIME attachment extractor and the XaMime commercial email scanner. .SH AUTHOR Paul L Daniels <pldaniels@pldaniels.com> This manual page was written for the Debian system by Julien Valroff <julien@kirya.net>. .SH "REPORTING BUGS" Report any bugs to the author: Paul L Daniels <pldaniels@pldaniels.com> .SH COPYRIGHT Copyright Paul L Daniels <pldaniels@pldaniels.com> Please read the \fBalterMIME\fR licence as described in /usr/share/doc/altermime/copyright .SH SEE ALSO - \fBalterMIME\fR homepage: http://www.pldaniels.com/altermime/ .br - Derrick J Houy's \fBalterMIME\fR Postfix howto in /usr/share/doc/altermime/html/postfix-altermime-howto.html �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/altermime.examples���������������������������������������������������������������������������0000644�0000000�0000000�00000000071�11560043543�012704� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/docs/postfix_filter.sh debian/docs/disclaimer.txt �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������debian/altermime.doc-base���������������������������������������������������������������������������0000644�0000000�0000000�00000000615�11560043543�012547� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Document: altermime Title: Postfix AlterMIME HOWTO Author: Derrick J Houy <djhouy@paw.za.org> Abstract: This HOWTO outlines the installation and use of alterMIME to add disclaimer text to outgoing emails with Postfix. Section: Network/Communication Format: HTML Index: /usr/share/doc/altermime/html/postfix-altermime-howto.html Files: /usr/share/doc/altermime/html/postfix-altermime-howto*.html �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������