--- wmf-1.0.5.orig/doc/wmfrc.5 +++ wmf-1.0.5/doc/wmfrc.5 @@ -0,0 +1,200 @@ +.TH wmfrc 5 "December 1997" +.UC 4 + +.SH NAME +wmfrc \- Configuration file for wmf. + +.SH DESCRIPTION +Use the configuration file for all configurational features of wmf. +Wmf is looking for .wmfrc as default if nothing else defined. + +.SH COMMANDS +Available command line options are the following: +.TP +AboutLink = +If this link presents it will be placed to the index section. +.TP +AuthorCaseSort = 0n|Off +Sorting the author index case senitive +.TP +AuthorEmailSort = 0n|Off +Sorting the author index by email address. +.TP +BodyHtmlConvert = 0n|Off +Turning html convert of the mail-body on/off. +.TP +BodyLinkEmail = 0n|Off +Turning email detecting in the mail-body on/off. +.TP +BodyLinkUrl = 0n|Off +Turning url detecting in the mail-body on/off. +.TP +BodyReplyChars = +Defining characters who indicate the begin of reply text. As example ">". +.TP +DayLimit = +Mails older then days won't be listed in the indexes. +0 = no limit (default=0). +.TP +DebugLevel = +Debug level (Bit0=Functions Bit1=Information Bit2=Fileoperations) +.TP +Directory = +Where all the files write to (default ./) +.TP +DocEndFile = +Includefile for the end of the document +.TP +DocStartFile = +Includefile for the begin of the document +.TP +Extension = +Define the file extension (default=".html"). +.TP +FaceDirectory = +Directory where to store the face files. Attention: This directory is +RELATIVE to the html directory. +.TP +FaceNoData = +What to include, if there are no face datas. +.TP +FaceSupport = 0n|Off +Turn face support on/off. +.TP +FilePermission = +Set file permission after creation. Numeric mode only like chown (1) +.TP +FolderName = +Name of the mail folder. +.TP +FrameNameIndex = +Name of the frame where the index is. +.TP +FrameNameText = +Name of the frame where the mailtext is. +.TP +FrameNameTitle = +Name of the frame where the title is. +.TP +FrameSupport = 0n|Off +Turn frame support on/off. +.TP +HtmlBodyStart = +Replacement for +.TP +HtmlBodyEnd = +Replacement for +.TP +HtmlSeparator = +Replacement for
+.TP +HtmlReplyStart = +If you want display the reply text italic put a here. +.TP +HtmlReplyEnd = +If you want display the reply text italic put a here. +.TP +IndexAuthor = 0n|Off +Turning indexing by author (author.html) on/off. +.TP +IndexDate = 0n|Off +Turning indexing by date (date.html) on/off. +.TP +IndexSubject = 0n|Off +Turning indexing by subject (subject.html) on/off. +.TP +IndexThread = 0n|Off +Turning indexing by thread (thread.html) on/off. +.TP +LineSize = +Lines greater then the defined limit will be breaked at the last +space. If there wasn't any space the search continues to the next after the +limit. If there isn't ANY space in the whole line, no breakes. +.TP +MailboxFile = +Name of the mailbox file, - is used for stdin. +.TP +MailCommand = +Mail-command (default MAILTO:) +.TP +MessageCount = 0n|Off +Print the amount of messages in the first page of every index file. +.TP +NewSubjectThread = 0n|Off +Make a new Thread if the Subject changes in a reply. +.TP +PageSize = +Lines / page index. 0 = only one page (default 0). +Threads won't be brocken. +.TP +SortOrder = NewFirst|NewLast +Define sorting +.TP +Statistics = 0n|Off +Turn statistic on/off. +.TP +SubjectCaseSort = 0n|Off +Sorting the subject index case senitive +.TP +ThreadCaseSort = 0n|Off +Sorting the thread index case senitive +.TP +WriteMode = +Write-mode (0=indexing 1=overwrite 2=append 3=append no index). +.B Mode 0: +If you made changes manual or anything went wrong until indexing. +.B Mode 1: +If you want to start from scratch witch one big mbox file. +.I Warning: All files in the directory will be deleted !!! +.B Mode 2: +If you want to extend an existing archive. +.B Mode 3: +Specialy made if you need to convert emails stored in single files. After +converting all files you can call WMF again in Mode 0 for indexing. + +.SH AUTHOR +.NF +Norbert Kuemin +.FI + +.LP +.SH FILES +.NF +~/.wmfrc +.FI + +.LP +.SH SEE ALSO +.NF +wmf (1) +.FI + +.SH NOTES +.NF +Thanks to all the people, who sent emails with bug-reports and suggestions. +.FI + +.SH BUGS +.NF +There will always rest one bug (Murphys law). If you find it, so please +report it to Norbert.Kuemin@gmx.net +.FI + +.SH COPYRIGHT +.NF +Copyright 1996, 1997 by Norbert Kuemin. + +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 program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +.FI --- wmf-1.0.5.orig/doc/changelog +++ wmf-1.0.5/doc/changelog @@ -0,0 +1,244 @@ +1999/02/04 NoK 1.0.5 +code correction for mime. +code correction for multiple receipients. +----- +1999/01/23 NoK 1.0.4 +Custom file extension. See man wmfrc. +Add mimetype graphic/x-xbitmap. +Remove a bug in the statistics. +Doc including now alsofor the index and stats +----- +1999/01/16 NoK 1.0.4 +Bug hunting +Memory allocation cleanup +----- +1998/04/02 NoK 1.0.3 +Make ChangeLog ready for year 2000 :-) +Bugfix for Mailaddresses und Names. +----- +1998/03/16 NoK 1.0.2 +Thread bug in empty subject fixed. +----- +1998/03/07 NoK 1.0.2 +Date bugfix. +----- +1998/02/20 NoK 1.0.1 +Frame bugfix. +----- +1998/02/07 NoK 1.0 +Frame support. See man wmfrc. +Statistic page. See man wmfrc. +----- +1998/01/03 NoK 0.94 +Remove a bug in config.c HtmlBodyEnd. +----- +1998/01/02 NoK 0.94 +Message counter. See man wmfrc. +----- +1997/12/31 NoK 0.94 +New directory structure. +"No Subjects" wont be threaded. +Breaking lines greater than x chars (LineSize = x in the config file). +----- +1997/08/03 NoK 0.93 +Remove a bug in index.c +5 more config features. See man wmfrc. +----- +1997/08/01 Nok 0.93 +Speedup AppendFile in file.c +manfile for wmfrc +More config features. See man wmfrc. +----- +1997/07/06 NoK 0.91 +Remove a bug in GetName +----- +1997/06/29 NoK 0.91 +Addition work for Bug removed in threading (changing subject in a thread) +----- +1997/06/27 NoK 0.91 +Bug removed in reading the mail header data from html +Marking the end of the mail header data with +Bug removed in threading (changing subject in a thread) +----- +1997/06/07 NoK 0.91 +Patch "#include " +Patch for dmalloc +Bugs removed in mime.c, file.c and mail.c +New html-link to wmf +----- +1997/05/11 NoK 0.9 +Configuration file summary +- MailCommand +- FilePermission +- DayLimit +- PageSize +- SortOrder +- WriteMode +- NoFaceFile -> FaceNoData +- FaceSupport +- FaceDirectory +Now use " insteed of * in warnings +----- +1997/05/08 NoK 0.9 +Configuration file summary +- ReplyChars -> BodyReplyChars +- BodyHtmlConvert +- BodyLinkUrl +- BodyLinkEmail +Start for new mime type decoding text/enriched +----- +1997/05/02 NoK 0.9 +Configuration file summary +- AboutLink +- Directory +- MailboxFile +- FolderName +- DebugLevel +----- +1997/04/26 NoK 0.9 +Now it works also with SCO Mail +----- +1997/04/13 NoK 0.9 +Configuration file summary + - HtmlBodyStart,HtmlBodyEnd + - HtmlSeparator (HR) + - ReplyChars,ReplyStart,ReplyEnd + - NoFaceFile +----- +1997/04/02 NoK 0.9 +Begin with configuration file reading +Another Thread bug found (Space after Subject) +----- +1997/03/29 NoK 0.9 +Mailheader mime decoding +Mailheader html convert +Thread improvement +----- +1997/03/29 NoK 0.9 +Uudecoding with/without mime +----- +1997/03/19 NoK 0.9 +Bug removed (empty Mail) +----- +1997/03/17 NoK 0.9 +If a filename (mime multipart) exist, save as file and make a href +Base64 Decoding +GIF implementation (currently hardcoded) +Bug redetected in thread. If there was a mail without a MessageID = wrong thread +Add an example how I think a configurationfile should look like +----- +1997/03/15 NoK 0.9 +Check Directory where the html's should be write to. +----- +1997/03/12 NoK 0.9 +Bug removed (empty mbox-file) +Cleanups for Solaris +Ignore leading tabs in head datas +----- +1997/03/11 NoK 0.8 +additional mime, octetstream -> save as file linked by a hyperlink +----- +1997/03/07 NoK 0.8 +New switch -a for about-hyperlink +Handel < and > correctly in the senders name +use <> instead of () at from: and to: to hold the email +Clean html in the mailbody +line break in quoted befor a "=\n" +----- +1997/03/03 NoK 0.8 +LSM added to the doc +Removing bugs from date.c (getutc) and index.c (ReadHtmlHeader) +----- +1997/03/02 NoK 0.8 +Hyperlinking Names with Email in thread,subject and date index +----- +1997/02/27 NoK 0.8 +HomePageLink to the Sender name or if not exist append the url +----- +1997/02/26 NoK 0.8 +write-mode 3 = append without indexing +----- +1997/02/25 NoK 0.8 +Bug detected in thread. If there was a mail without a MessageID = wrong thread +Bug detected in index-files. "Page:" if there is only one +Sorting (Author,Subject) new +Hyperlink email in author.html and date added +better quoted-printable support +start of mime support +----- +1997/02/23 NoK 0.7 +Detect email-addresses and make a hypelink +threading level limitation +Preparation for a new release (doc,cleanup) +----- +1997/02/22 NoK 0.7 +Handle To: fields with more than one address +----- +1997/02/20 NoK 0.7 +New switch -f for filepermissions +Modify mail.c (checking for empty mails) +Exchange Append/Overwriting in doc and help +DebugLevel default = 0 +----- +1996/12/21 NoK 0.7 +Modify Makefile (MAILTO -> mailto) +----- +1996/12/13 NoK 0.7 +Modify config.c (null-string) +Update README +----- +1996/12/01 NoK 0.6 +writing README +begin with html document +add news to ToDo +----- +1996/11/23 NoK 0.6 +writing man +little Makefile changes +doc/LICENCE added +----- +1996/11/20 NoK 0.5 +compiler switch -Wall added +cleanup done +begin writing man +----- +1996/11/15 NoK 0.5 +Bug removed at AddData in mail.c +face support implemented and tested +new routine to handel malloc +----- +1996/10/19 NoK 0.4 +Bugs removed +stdin tested +face support started (linking compface) +----- +1996/10/14 NoK 0.3.0 +quoted text +url hyperlinks +----- +1996/10/13 NoK 0.2.0 +Update ToDo +Threaded index +----- +1996/10/12 NoK 0.2.0 +HomePage Hyperlink added +Bug removed (empty lists) +----- +1996/10/10 NoK 0.2.0 +List-Datelimit +Header-Cleanup +----- +1996/10/08 NoK 0.2.0 +Indexing (date,author,subject) +Index can be splitted on more pages +----- +1996/09/28 NoK 0.1.0 +getutc(date.c) -> convert datestring to utc. +CleanMailMem(mail.c) -> free allocated memory +bug removed at addbody(mail.c) +----- +1996/09/28 NoK 0.1.0 +Starting ChangeLog,ToDo +Status: - Converting mail -> html from a file + - Different modes (append,overwrite,indexing) +----- --- wmf-1.0.5.orig/examples/xfmail.sh +++ wmf-1.0.5/examples/xfmail.sh @@ -1,4 +1,4 @@ -#/bin/sh +#!/bin/sh # # Converting a folder (xfmail) to html SRC_DIR="./mail" --- wmf-1.0.5.orig/src/file.c +++ wmf-1.0.5/src/file.c @@ -29,7 +29,7 @@ printf(".CheckHomeDir(%s)\n",Name); if (Name != NULL) { if (Name[0] == '~') { - newsize = strlen(Name)+strlen((char *)getenv("HOME")+1); + newsize = strlen(Name)+strlen((char *)getenv("HOME")); newname = newchar(newsize); strcpy(newname,(char *)getenv("HOME")); Name++; @@ -49,12 +49,13 @@ void NewFile(char *FileName, char *Text) { FILE *fd; - if ((config.DebugLevel != WMF_NOVALUE) && (config.DebugLevel & 4)) + if ((config.DebugLevel != WMF_NOVALUE) && (config.DebugLevel & 4)) { if (config.NewFilePerm != 0) { printf(".NewFile(%s) Perm=%o\n",FileName,(int) config.NewFilePerm); } else { printf(".NewFile(%s)\n",FileName); } + } fd = fopen(FileName,"w"); if (fd != NULL) { fprintf(fd,"%s",Text); --- wmf-1.0.5.orig/src/Makefile +++ wmf-1.0.5/src/Makefile @@ -4,8 +4,8 @@ # # Configuration begins here -BINDIR= /usr/local/bin -MANDIR= /usr/local/man/man1 +BINDIR=$(DESTDIR)/usr/bin +MANDIR=$(DESTDIR)/usr/share/man/man1 CC=gcc LDFLAGS= COPTS=-O2 @@ -62,9 +62,9 @@ install: install -cs -m 0755 $(PROGRAM) $(BINDIR) chmod 0644 ../doc/wmf.1 - chmod 0644 ../doc/wmfrc.1 + chmod 0644 ../doc/wmfrc.5 install -c -m 0644 ../doc/wmf.1 $(MANDIR) - install -c -m 0644 ../doc/wmfrc.1 $(MANDIR) + install -c -m 0644 ../doc/wmfrc.5 $(MANDIR) clean: rm -f ./$(PROGRAM) *.o *~ core DEADJOE ../doc/*~ ../examples/*~ ../doc/DEADJOE --- wmf-1.0.5.orig/debian/changelog +++ wmf-1.0.5/debian/changelog @@ -0,0 +1,62 @@ +wmf (1.0.5-6) unstable; urgency=low + + * An error in upstream Makefile causes a copy of wmfrc.5 in man1. + Now error is truly closed (hopefully :-)). + Now a Makefile.debian has been introduced. + (closes: #172404) + + -- Francesco Paolo Lovergine Sat, 4 Jan 2003 20:49:40 +0100 + +wmf (1.0.5-5) unstable; urgency=low + + * Changed section for wmfrc man page in 5. Also modified its title coherently. + (closes: #172404) + * Updated to policy 3.5.8. + * Patched for buffer overflow in CheckHomeDir. + Patch by Martin Godisch + (closes: #172403) + + -- Francesco Paolo Lovergine Thu, 12 Dec 2002 15:35:32 +0100 + +wmf (1.0.5-4) unstable; urgency=low + + * New maintainer. + (closes: #90924) + * Typos in control file corrected. + (closes: #125489) + * Rebuilt against the current original sources as got on www site. + * Package built from scratch using debhelper and the old package. + * Updated to policy 3.5.2. + * mime.c patched. + (closes: #34846) + + -- Francesco Paolo Lovergine Tue, 22 Jan 2002 13:58:12 +0100 + +wmf (1.0.5-3) frozen; urgency=high + + * Fix string deallocation problem which caused a segfault. + + -- Christoph Lameter Fri, 10 Mar 2000 11:24:05 -0800 + +wmf (1.0.5-2) unstable; urgency=low + + * rebuild with newest glibc. Was segfaulting. + + -- Christoph Lameter Thu, 14 Oct 1999 16:49:07 -0700 + +wmf (1.0.5-1) unstable; urgency=low + + * New upstream release #34508 + * #34846 include patch in sourcearchive. + + -- Christoph Lameter Thu, 14 Oct 1999 16:49:02 -0700 + +wmf (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Christoph Lameter Sat, 14 Feb 1998 21:06:06 -0800 + +Local variables: +mode: debian-changelog +End: --- wmf-1.0.5.orig/debian/Makefile.debian +++ wmf-1.0.5/debian/Makefile.debian @@ -0,0 +1,73 @@ +# +# Makefile for webmailfolder +# created 1996/08/16 by Norbert Kuemin +# + +# Configuration begins here +BINDIR=$(DESTDIR)/usr/bin +MANDIR=$(DESTDIR)/usr/share/man +CC=gcc +LDFLAGS= +COPTS=-O2 +CLIBDIR=-L../../compface +CINC=-I../../compface + +#if you have/want face-support uncomment the two following lines +#FACELIB=-lcompface +#FACEDEF=-DFACES +# Configuration ends here + +# Program initials +CONFIGFILE= \"~/.wmfrc\" +MBOXFILE= \"~/mbox\" +MAILCMD=\"mailto:\" +DIRECTORY=\"./\" +EXTENSION=\".html\" +NEWSUBJECTTHREAD=0 #0=False 1=True + +# Program constants +PROGRAM=wmf +VERSION=1.0.5 +PRG_NAME= \"WebMailFolder\" +PRG_VERSION= \"$(VERSION)\" +PRG_HREF= \"http://www.lugs.ch/lugs/mitglieder/norbert.kuemin/wmf.html\" + +PINIT= -DWMF_CONFIG=$(CONFIGFILE) -DWMF_MBOX=$(MBOXFILE) -DWMF_MCMD=$(MAILCMD)\ + -DWMF_DIR=$(DIRECTORY) -DWMF_DEBUGLEVEL=0 -DWMF_EXTENSION=$(EXTENSION) + +PCONST= -DNAME=$(PRG_NAME) -DVERSION=$(PRG_VERSION) -DHREF=$(PRG_HREF) + +CDEFS= $(PINIT) $(PCONST) $(FACEDEF) -Wall +CLIB= $(FACELIB) +CFLAGS= $(COPTS) $(CDEFS) $(CINC) + +# Only for debugging (Should be commented) +#CDEFS= -DDEBUG $(PINIT) $(PCONST) $(FACEDEF) -Wall +#CDEFS= -DDEBUG -DMALLOC $(PINIT) $(PCONST) $(FACEDEF) -Wall +#CLIB= $(FACELIB) -ldmalloc + +OBJS= wmf.o config.o mail.o file.o index.o html.o date.o sys.o mime.o + +.c.o: + $(CC) -c $(CFLAGS) $< + +all: wmf + +wmf: $(OBJS) + $(CC) -o $(PROGRAM) $(CFLAGS) $(OBJS) $(CLIBDIR) $(CLIB) + chmod 0755 $(PROGRAM) + +$(OBJS): Makefile wmf.h + +install: + install -cs -m 0755 $(PROGRAM) $(BINDIR) + chmod 0644 ../doc/wmf.1 + chmod 0644 ../doc/wmfrc.5 + install -c -m 0644 ../doc/wmf.1 $(MANDIR)/man1 + install -c -m 0644 ../doc/wmfrc.5 $(MANDIR)/man5 + +clean: + rm -f ./$(PROGRAM) *.o *~ core DEADJOE ../doc/*~ ../examples/*~ ../doc/DEADJOE + +package: clean + ( cd ../.. ; tar -zcvf $(PROGRAM)-$(VERSION).tar.gz wmf ) --- wmf-1.0.5.orig/debian/control +++ wmf-1.0.5/debian/control @@ -0,0 +1,23 @@ +Source: wmf +Section: web +Priority: optional +Maintainer: Francesco Paolo Lovergine +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.5.8 + +Package: wmf +Architecture: any +Suggests: www-browser +Depends: ${shlibs:Depends} +Description: Web Mail Folder + This program converts emails to HTML and makes index files + (by author, data, subject,thread). Of course there are other programs + making the same, but here are some features which not all have: + - correct threading without level limitation + - quoted-printable text encoding + - home page hyperlink (X-URL) + - faces support + - breaking indexes in different pages to make them smaller + (don't break between threads) + - index time limitation (older mail disappears from the index) + - frame support --- wmf-1.0.5.orig/debian/copyright +++ wmf-1.0.5/debian/copyright @@ -0,0 +1,9 @@ +This package seems no more actively developed since 1997. +Package has been built using current available sources from + +http://www.lugs.ch/LUGS_Members/norbert.kuemin/wmf.html + +Copyright: + +GNU GENERAL PUBLIC LICENSE. +See /usr/share/common-licenses/GPL-2 --- wmf-1.0.5.orig/debian/dirs +++ wmf-1.0.5/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1 +usr/share/man/man5 --- wmf-1.0.5.orig/debian/rules +++ wmf-1.0.5/debian/rules @@ -0,0 +1,86 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +NAME=wmf + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + (cd src; $(MAKE) -f $(CURDIR)/debian/Makefile.debian) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + + (cd src; $(MAKE) -f $(CURDIR)/debian/Makefile.debian clean) + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/wmf. + + (cd src; $(MAKE) -f $(CURDIR)/debian/Makefile.debian install DESTDIR=$(CURDIR)/debian/$(NAME)) + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- wmf-1.0.5.orig/debian/docs +++ wmf-1.0.5/debian/docs @@ -0,0 +1,7 @@ +doc/changelog +doc/Decoding.txt +doc/FAQ +doc/frame.txt +doc/README +doc/ToDo +examples --- wmf-1.0.5.orig/debian/README.debian +++ wmf-1.0.5/debian/README.debian @@ -0,0 +1,9 @@ +wmf for Debian +-------------- + +This package seems currently no more actively developed. +Some information about the package are available at + +http://www.lugs.ch/LUGS_Members/norbert.kuemin/wmf.html + + -- Francesco Paolo Lovergine , Tue, 22 Jan 2002 14:08:36 +0100