debian/0000755000000000000000000000000011355656543007203 5ustar debian/changelog0000644000000000000000000001016711355653330011051 0ustar biabam (0.9.7-7) unstable; urgency=low * Accepted period in mail body (Closes: #390669) * Used better Message-ID and To (Closes: #399543) * Accepted -s option in first position (Closes: #356738) -- Thierry Randrianiriana Sat, 03 Apr 2010 06:25:45 +0300 biabam (0.9.7-6) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format * Bumped standards-version to 3.8.4 -- Thierry Randrianiriana Mon, 29 Mar 2010 22:56:14 +0300 biabam (0.9.7-5) unstable; urgency=low * Updated '01_check_empty_recipients.dpatch' patch * Accepted attachments with space on their filenames Thanks Javier Barroso for the patch (Closes: #409278) * debian/control: + bumped standards-version to 3.8.3 + moved Homepage as a regular field + used debhelper 5 + added ${misc:Depends} in Depends * Converted copyright file to UTF-8 * Added a README.source file (with a pointer) for dpatch -- Thierry Randrianiriana Wed, 02 Dec 2009 21:11:16 +0300 biabam (0.9.7-4) unstable; urgency=low * Apply the patch '01_check_empty_recipients.dpatch' with dpatch. It checks the recipients if empty (Closes: #386969) * debian/control: - added Homepage - removed cdbs - added in Builds-Depends dpatch * debian/watch: used version 3 . * debian/docs added * Bumped standards-version to 3.7.2 . -- Thierry Randrianiriana Tue, 26 Sep 2006 22:31:10 +0300 biabam (0.9.7-3) unstable; urgency=low * New maintainer (Closes: #324589) * debian/control: upgraded Standards-Version to 3.6.2.1 -- Thierry Randrianiriana Sun, 25 Sep 2005 14:12:31 +0300 biabam (0.9.7-2) unstable; urgency=low * Orphaning the package (see #324589) * Standards version 3.6.2 (no changes required) * Use groff escape for latin-1 character 'Scandinavic slashed o' in biabam.1 -- Bastian Kleineidam Mon, 29 Aug 2005 11:26:08 +0200 biabam (0.9.7-1) unstable; urgency=low * New upstream release. * All debian-specific patches were applied upstream. -- Bastian Kleineidam Thu, 2 Dec 2004 17:21:54 +0100 biabam (0.9.6-4) unstable; urgency=medium * Updated mime fix patch to correct MIME type guessing. This fixes sending of broken mime mails (Closes: #283716) * somewhat important for sarge, urgency medium -- Bastian Kleineidam Tue, 30 Nov 2004 23:53:06 +0100 biabam (0.9.6-3) unstable; urgency=low * use cdbs to build the package -- Bastian Kleineidam Tue, 3 Aug 2004 18:14:16 +0200 biabam (0.9.6-2) unstable; urgency=low * depend on newer exim4 instead of exim (Closes: #255341) -- Bastian Kleineidam Sun, 20 Jun 2004 15:56:39 +0200 biabam (0.9.6-1) unstable; urgency=low * New upstream release. * Standard version 3.6.1, no changes required * apply former patches with dpatch: 01_only_interactive_stdin 02_allow_minus_filenames * new patches: 03_invalid_file_abort 04_fix_mime_guessing -- Bastian Kleineidam Fri, 11 Jun 2004 10:20:21 +0200 biabam (0.9.4-2) unstable; urgency=low * Allow filenames beginning with a minus (Closes: #199096) * Only display mail body prompt when stdout is open and on a terminal Thanks Dan Jacobson for the patch (Closes: #199095) * Standards version 3.5.10.0 (no changes) -- Bastian Kleineidam Sat, 28 Jun 2003 07:05:26 +0200 biabam (0.9.4-1) unstable; urgency=low * New upstream release, fixing missing backtick -- Bastian Kleineidam Mon, 31 Mar 2003 13:41:56 +0200 biabam (0.9.3-1) unstable; urgency=low * New upstream release. - use quotes around file names - use file(1) to guess mime type of attachment * depend on bash since using ${a/b/c} replacement construct * use debian/compat instead of DH_COMPAT -- Bastian Kleineidam Sun, 16 Mar 2003 14:36:14 +0100 biabam (0.9.2-1) unstable; urgency=low * Initial Release. (Closes: #93644) -- Bastian Kleineidam Thu, 16 Jan 2003 19:02:58 +0100 debian/biabam.10000644000000000000000000000166411354202660010471 0ustar .TH BIABAM 1 "16 January 2003" .SH NAME biabam \- biabam is a bash attachment mailer .SH SYNOPSIS \fBbiabam\fP \fIfilename\fP[\fB,\fP\fIfilename2\fP...] [\fB-s\fP \fIsubject\fP] \fIrecipient\fP[\fB,\fP\fIrecipient2\fP...] .SH DESCRIPTION The given \fIfilename\fP(s) gets mailed to all \fIrecipient\fPs. The body of the message is read on standard input. If no text is piped into biabam, it will wait for text on standard input (finish with CTRL-D). By default, the comma ',' character is the separator for attachments and recipients. .SH EXAMPLE echo "Here are the tarballs you requested" | \\ biabam foobar-0.7.8.tar.gz,coolapp-0.4.3.tar.gz,otherapp-4.3.0.tar.gz \\ -s "Answer to your request" john@doe.org,irene@prima.org,cira@alpispa.es .SH AUTHOR This manpage was originally written by Bastian Kleineidam for the Debian distribution of biabam. The main author of biabam is Mads Martin J\[/o]rgensen . debian/biabam.dirs0000644000000000000000000000001111354202660011253 0ustar /usr/bin debian/compat0000644000000000000000000000000211354202660010363 0ustar 5 debian/README.source0000644000000000000000000000012411354205515011343 0ustar Please read the README.source provided with the documentation of the quilt package debian/rules0000755000000000000000000000130511355656503010256 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 PACKAGE = biabam TMPDIR = $(CURDIR)/debian/$(PACKAGE) INSTALL = install include /usr/share/quilt/quilt.make build: build-stamp build-stamp: $(QUILT_STAMPFN) touch build-stamp clean: clean-stamp unpatch clean-stamp: dh_testdir rm -f build-stamp rm -f $(QUILT_STAMPFN) dh_clean install: build dh_testdir $(INSTALL) -D biabam $(TMPDIR)/usr/bin/biabam binary-indep: build install dh_testdir dh_testroot dh_installdocs dh_installman debian/biabam.1 dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep .PHONY: build clean binary-indep binary install patch unpatch debian/copyright0000644000000000000000000000205511354202660011122 0ustar This package was debianized by Bastian Kleineidam on Thu, 16 Jan 2003 19:02:58 +0100. It was downloaded from http://panther.mmj.dk/biabam/ Upstream Author: Mads Martin Jørgensen Copyright (C) 2000, 2003, 2004 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; either version 2 of the License, or (at your option) any later version. 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 complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/source/0000755000000000000000000000000011354202735010470 5ustar debian/source/format0000644000000000000000000000001411356051200011665 0ustar 3.0 (quilt) debian/biabam.manpages0000644000000000000000000000002011354202660012105 0ustar debian/biabam.1 debian/watch0000644000000000000000000000012111354202660010210 0ustar # watch control file for uscan version=3 http://mmj.dk/biabam/biabam-(.*).tar.gz debian/patches/0000755000000000000000000000000011355654150010622 5ustar debian/patches/05_accept_subject_in_first_position.patch0000644000000000000000000000100511355654150020742 0ustar --- a/biabam +++ b/biabam @@ -38,6 +38,14 @@ exit 1 fi +# have they supplied a subject in first position +SUBJECT="File delivery" +if [ a"$1" = "a-s" ]; then + shift + SUBJECT="$1" + shift +fi + # Find out the number of files to attach TOTAL_ATTACHMENTS=`echo "$1" | awk -F$SP '{print NF}'` @@ -85,8 +93,7 @@ shift # skip over filename -# have they supplied a subject -SUBJECT="File delivery" +# have they supplied a subject in second position if [ a"$1" = "a-s" ]; then shift SUBJECT="$1" debian/patches/01_check_empty_recipients.patch0000644000000000000000000000141411354203067016657 0ustar Author: Thierry Randrianiriana Description: see bug #386969. --- biabam-0.9.7.orig/biabam +++ biabam-0.9.7/biabam @@ -148,7 +148,17 @@ RECIPIENTS="$RECIPIENTS ${ARR_EMAILS[$i]}" done -cat $TEMPFILE | $SENDMAIL $SENDMAIL_OPTS $RECIPIENTS # here we call sendmail +if [[ -z $RECIPIENTS ]]; then + echo "Biabam is unable to find the recipients." + #clean + for i in `seq 1 $TOTAL_ATTACHMENTS`; do + /bin/rm -f ${TEMPUUENCODED[$i]} # remove all temp files created + done + /bin/rm -f $TEMPFILE # remove the email source code tempfile + exit 1 +else + cat $TEMPFILE | $SENDMAIL $SENDMAIL_OPTS $RECIPIENTS # here we call sendmail +fi for i in `seq 1 $TOTAL_ATTACHMENTS`; do /bin/rm -f ${TEMPUUENCODED[$i]} # remove all temp files created debian/patches/04_better_Message-ID_and_To.patch0000644000000000000000000000175111355540377016666 0ustar Author: Thierry Randrianiriana Description: see bug #399543 Index: biabam-0.9.7/biabam =================================================================== --- biabam-0.9.7.orig/biabam 2010-04-03 07:11:59.000000000 +0300 +++ biabam-0.9.7/biabam 2010-04-03 07:14:24.000000000 +0300 @@ -106,15 +106,17 @@ for i in `seq 1 $TOTAL_EMAILS`; do # write the 'To:' field with all recipients previously stored in the array - TO="$TO <${ARR_EMAILS[$i]}>," + TO="$TO ${ARR_EMAILS[$i]}," done TO=${TO:0:${#TO}-1} # remove the last comma +HOST=`hostname` + echo $TO >> $TEMPFILE echo "Subject: $SUBJECT" >> $TEMPFILE echo "X-Mailer: BIABAM $VERSION" >> $TEMPFILE -echo "Message-ID: <`date +%Y%m%d%H%M%S`.$BASETEMP@biabam>" >> $TEMPFILE +echo "Message-ID: <`date +%Y%m%d%H%M%S`.$BASETEMP@$HOST>" >> $TEMPFILE echo "Mime-Version: 1.0" >> $TEMPFILE echo "Content-Type: multipart/mixed; boundary=\"$BOUNDARY\"" >> $TEMPFILE echo "Content-Disposition: inline" >> $TEMPFILE debian/patches/03_accept_period_in_body.patch0000644000000000000000000000107011355536567016462 0ustar Author: Thierry Randrianiriana Description: see bug #390669. --- biabam-0.9.7.orig/biabam 2010-04-03 06:49:35.000000000 +0300 +++ biabam-0.9.7/biabam 2010-04-03 06:51:01.000000000 +0300 @@ -21,7 +21,7 @@ # change these to suit your needs SENDMAIL=/usr/sbin/sendmail # your Mail-Transfer-Agent -SENDMAIL_OPTS= # and its required options +SENDMAIL_OPTS=-i # and its required options SP=, # separator for filenames and recipients (default is the comma character) # no user serviceable parts below this point debian/patches/series0000644000000000000000000000025511355653725012050 0ustar 01_check_empty_recipients.patch 02_accept_space_in_filename.patch 03_accept_period_in_body.patch 04_better_Message-ID_and_To.patch 05_accept_subject_in_first_position.patch debian/patches/02_accept_space_in_filename.patch0000644000000000000000000000067511354203067017110 0ustar Author: Thierry Randrianiriana Description: see bug #409278. --- biabam-0.9.7.orig/biabam +++ biabam-0.9.7/biabam @@ -43,9 +43,8 @@ for i in `seq 1 $TOTAL_ATTACHMENTS`; do - STR="'{print \$$i}'" # store filenames in an array - ARR_ATTACHMENTS[$i]=`sh -c "echo "$1" | awk -F$SP $STR" ` + ARR_ATTACHMENTS[$i]=$(echo "$1" | awk -F$SP '{print $'$i'}' ) done if ! TEMPFILE="`mktemp /tmp/biabam.XXXXXX`"; then debian/docs0000644000000000000000000000003411354202660010035 0ustar README debian/README.source debian/control0000644000000000000000000000107011354203216010564 0ustar Source: biabam Section: mail Priority: extra Maintainer: Thierry Randrianiriana Build-Depends: debhelper (>= 5), quilt (>= 0.40) Standards-Version: 3.8.4 Homepage: http://mmj.dk/biabam/ Package: biabam Architecture: all Depends: bash (>= 2), sharutils, exim4 | mail-transport-agent, ${misc:Depends} Suggests: file Description: bash attachment mailer A tool that is used for mailing attachments from the commandline. It is similar to using Mutt to send attachments on the commandline, but without the overhead of a complete email client.