mailfilter-0.8.4/0000755000175000017500000000000012675277621010673 500000000000000mailfilter-0.8.4/depcomp0000755000175000017500000005601612665064002012162 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mailfilter-0.8.4/THANKS0000644000175000017500000000442312333712134011511 00000000000000Mailfilter THANKS -=-=-=-=-=-=-=-=- The authors offer many thanks to all who have helped out in any way, shape, or form to the development of this project. Many of these contributors have helped out in ways they may not have been aware of, including answering newsgroup questions, writing web content that has been of useful, testing, suggestions on IRC, those who have provided feedback, and numerous other cases. No contribution is any less important than another! If you or someone you know has helped out with this project and doesn't have their name listed here, please contact the authors immediately in order to have this mistake rectified! A warm round of applause goes to ...... Bulia Byak Robert Bar Bracara Johannes Bauer Paul Bissex Frank Blome Jose Castejon-Amenedo Jon Combe Carsten Knodel Matt Cowger Florian Dejako Akim Demaille Alan Dunford Tobias Ebner Anton Filippov Scott Grigsby Jean-Serge Gagnon Peter T. Garner Gerrit P. Haase Brian Hall Frank Haun Carsten Knodel Don Kennedy Andreas Kretschmer Yan-Fa Li Greg Louis Matthew R. MacIntyre Fabian Melzow Klaus Muth Yong Chiew Ning Pat Parrinello Ville Ptsi Darryl Plank Plank, Darryl Mike Polniak Wendy Proctor Alex A. Puchkov Xavier Roche Julio Sardella Til Schubbe Kay Schulz Mel Sojka Robert Storey R. Taylor Leopold Toetsch Gary V. Vaughan Ivan Vitjuk mailfilter-0.8.4/Makefile.am0000644000175000017500000000537612333712201012635 00000000000000# Makefile.am: help build sources on mulitiple architectures # $Id: Makefile.am,v 1.20.2.3.2.8 2007/01/01 13:38:40 baueran Exp $ # Copyright (c) 2000 - 2009 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. # AUTOMAKE_OPTIONS = dist-shar dist-zip dist-tarZ AUTOMAKE_OPTIONS = dist-zip SUBDIRS = doc man src contrib EXTRA_DIST = ylwrap # EXTRA_DIST = config.rpath mkinstalldirs ABOUT-NLS ylwrap ACLOCAL_AMFLAGS = -I # build a distribution snapshot # TODO: # add a snap documentation target # check to see if there is already a previous snapshot there, # and don't overwrite it! @MAINT@snapshot: README-snapshot maintainer-clean @MAINT@ @a=`date -R` ;\ @MAINT@ echo "Last built on $$a" >> README-snapshot @MAINT@ @d=`pwd` ;\ @MAINT@ d=`basename $$d` ;\ @MAINT@ echo $$d ;\ @MAINT@ cd .. ;\ @MAINT@ tar -cvzf $$d-`date +%m%d%y`.tar.gz $$d ;\ @MAINT@ mv $$d-`date +%m%d%y`.tar.gz $$d/ ;\ @MAINT@ cd $$d @MAINT@doxygen: @MAINT@ cd $(top_srcdir)/doc ;\ @MAINT@ ${MAKE} doxygen @MAINT@alldist: man doxygen @MAINT@ ${MAKE} distcheck @MAINT@ ${MAKE} dist-shar @MAINT@ ${MAKE} dist-zip @MAINT@ ${MAKE} dist-tarZ @MAINT@cvsclean: maintainer-clean @MAINT@ @-rm -f `find . -name Makefile.in` @MAINT@ @-rm -f configure aclocal.m4 config.h.in stamp-h.in depcomp ylwrap @MAINT@ @-rm -f config.guess config.sub config.cache config.log config.status @MAINT@ @-rm -f mkinstalldirs missing install-sh COPYING @MAINT@ @-rm -fr @PACKAGE@-@VERSION@* *~ */*~ @MAINT@ @-rm -fr $(top_srcdir)/doc/api @MAINT@ @-rm -fr $(top_srcdir)/intl @MAINT@ @-rm -fr $(top_srcdir)/src/y.* @MAINT@ @-rm -fr $(top_srcdir)/src/rcfile.c* @MAINT@ @-rm -fr $(top_srcdir)/src/lex.* @MAINT@ @-rm -fr $(top_srcdir)/src/rfc822.cc @MAINT@ @-rm -fr $(top_srcdir)/src/rfc822scanner.* @MAINT@ @-rm -fr $(top_srcdir)/src/rfc822parser.* @MAINT@ @-rm -fr $(top_srcdir)/src/rcparser.* @MAINT@ @-rm -fr $(top_srcdir)/src/yy.tab.* @MAINT@ @-rm -fr $(top_srcdir)/src/lex.* @MAINT@ @echo "=================================================" @MAINT@ @echo "Don't forget your ChangeLog and NEWS entries ...." @MAINT@ @echo "=================================================" mailfilter-0.8.4/COPYING0000644000175000017500000010451312665064002011634 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 3 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . mailfilter-0.8.4/missing0000755000175000017500000001533012665064002012176 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2014 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mailfilter-0.8.4/aclocal.m40000644000175000017500000012542612675277602012464 00000000000000# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.15], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.15])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless 'enable' is passed literally. # For symmetry, 'disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], am_maintainer_other[ make rules and dependencies not useful (and sometimes confusing) to the casual installer])], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR mailfilter-0.8.4/doc/0000755000175000017500000000000012675277621011440 500000000000000mailfilter-0.8.4/doc/supported_servers0000644000175000017500000000124312333712134015061 00000000000000Mailfilter Supported Servers -=-=-=-=-=-=-=-=-=-=-=-=-=-= AGWPE v2000.70 Cyrus POP3 Server IMail 7.04 NT-POP3 Server Netscape iPlanet 4.1 POP3 v7.64 QPOP 3.1.2 Tiscali POP3 Proxy v1.0 UWASH POP3 Server 3.3(18) ---------------------------------------------------------------------------- This list is not complete. It contains servers that have been successfully tested with Mailfilter. Other POP3 servers not listed here should work just fine, too. You can help to expand this list by sending successfully tested, yet unlisted server names to . Thank you. ---------------------------------------------------------------------------- mailfilter-0.8.4/doc/Makefile.am0000644000175000017500000000300712333712134013374 00000000000000# Makefile.am: help build documentation files # $Id: Makefile.am,v 1.11.2.1.2.2 2004/01/25 12:56:37 baueran Exp $ # # Copyright (c) 2000 - 2004 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. EXTRA_DIST = FAQ supported_servers @MAINT@doxygen: Doxyfile @MAINT@ doxygen Doxyfile dist-hook: if test -d $(srcdir)/api; then \ mkdir $(distdir)/api ;\ fi if test -d $(srcdir)/api/html; then \ mkdir $(distdir)/api/html ;\ cp $(srcdir)/api/html/* $(distdir)/api/html ;\ fi if test -d $(srcdir)/api/latex; then \ mkdir $(distdir)/api/latex ;\ cp $(srcdir)/api/latex/* $(distdir)/api/latex ;\ fi if test -d $(srcdir)/api/man; then \ mkdir $(distdir)/api/man ;\ cp -r $(srcdir)/api/man/* $(distdir)/api/man ;\ fi if test -d $(srcdir)/api/rtf; then \ mkdir $(distdir)/api/rtf ;\ cp $(srcdir)/api/rtf/* $(distdir)/api/rtf ;\ fi mailfilter-0.8.4/doc/Doxyfile.in0000644000175000017500000007205612333712134013465 00000000000000# Doxyfile.in: create a Doxyfile (doxygen configuration file) from a template # $Id: Doxyfile.in,v 1.4.4.1 2003/07/20 20:41:45 baueran Exp $ # Doxyfile 1.2.3 # This file describes the settings to be used by doxygen for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # General configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = @PACKAGE@ # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = @VERSION@ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = api # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Dutch, French, Italian, Czech, Swedish, German, Finnish, Japanese, # Korean, Hungarian, Spanish, Romanian, Russian, Croatian, Polish, # Portuguese and Slovene. OUTPUT_LANGUAGE = English # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these class will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = NO # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. It is allowed to use relative paths in the argument list. STRIP_FROM_PATH = # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a class diagram (in Html and LaTeX) for classes with base or # super classes. Setting the tag to NO turns the diagrams off. CLASS_DIAGRAMS = YES # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower case letters. If set to YES upper case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # users are adviced to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explict @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # reimplements. INHERIT_DOCS = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 4 # The ENABLE_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. # please keep this list in sync with the mailfilter_SOURCES variable in ../src/Makefile.amx INPUT = ../src/mailfilter.cc \ ../src/mailfilter.hh \ ../src/feedback.cc \ ../src/feedback.hh \ ../src/preferences.cc \ ../src/preferences.hh \ ../src/connection.hh \ ../src/protocol.hh \ ../src/protocol.cc \ ../src/socket.hh \ ../src/socket.cc \ ../src/pop3.cc \ ../src/pop3.hh \ ../src/filter.hh \ ../src/filter.cc \ ../src/score.hh \ ../src/account.hh \ ../src/account.cc \ ../src/apop.hh \ ../src/apop.cc \ ../src/i18n.hh \ ../src/md5c.c \ ../src/md5.h \ ../src/getopt.c \ ../src/getopt.h \ ../src/getopt1.c # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. INPUT_FILTER = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse. FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = YES # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = YES # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimised for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = YES # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using a WORD or other. # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assigments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = YES # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. Warning: This feature # is still experimental and very incomplete. GENERATE_XML = NO #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_PREDEF_ONLY tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = #--------------------------------------------------------------------------- # Configuration::addtions related to external references #--------------------------------------------------------------------------- # The TAGFILES tag can be used to specify one or more tagfiles. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the ENABLE_PREPROCESSING, INCLUDE_GRAPH, and HAVE_DOT tags are set to # YES then doxygen will generate a graph for each documented file showing # the direct and indirect include dependencies of the file with other # documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, INCLUDED_BY_GRAPH, and HAVE_DOT tags are set to # YES then doxygen will generate a graph for each documented header file showing # the documented files that directly or indirectly include this file INCLUDED_BY_GRAPH = YES # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found on the path. DOT_PATH = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES #--------------------------------------------------------------------------- # Configuration::addtions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO # The CGI_NAME tag should be the name of the CGI script that # starts the search engine (doxysearch) with the correct parameters. # A script with this name will be generated by doxygen. CGI_NAME = search.cgi # The CGI_URL tag should be the absolute URL to the directory where the # cgi binaries are located. See the documentation of your http daemon for # details. CGI_URL = # The DOC_URL tag should be the absolute URL to the directory where the # documentation is located. If left blank the absolute path to the # documentation, with file:// prepended to it, will be used. DOC_URL = # The DOC_ABSPATH tag should be the absolute path to the directory where the # documentation is located. If left blank the directory on the local machine # will be used. DOC_ABSPATH = # The BIN_ABSPATH tag must point to the directory where the doxysearch binary # is installed. BIN_ABSPATH = /usr/bin/ # The EXT_DOC_PATHS tag can be used to specify one or more paths to # documentation generated for other projects. This allows doxysearch to search # the documentation for these projects as well. EXT_DOC_PATHS = mailfilter-0.8.4/doc/Makefile.in0000644000175000017500000003142512675277603013432 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Makefile.am: help build documentation files # $Id: Makefile.am,v 1.11.2.1.2.2 2004/01/25 12:56:37 baueran Exp $ # # Copyright (c) 2000 - 2004 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = Doxyfile CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Doxyfile.in $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_COPYRIGHT = @PACKAGE_COPYRIGHT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = FAQ supported_servers all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am dist-hook distclean distclean-generic distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am .PRECIOUS: Makefile @MAINT@doxygen: Doxyfile @MAINT@ doxygen Doxyfile dist-hook: if test -d $(srcdir)/api; then \ mkdir $(distdir)/api ;\ fi if test -d $(srcdir)/api/html; then \ mkdir $(distdir)/api/html ;\ cp $(srcdir)/api/html/* $(distdir)/api/html ;\ fi if test -d $(srcdir)/api/latex; then \ mkdir $(distdir)/api/latex ;\ cp $(srcdir)/api/latex/* $(distdir)/api/latex ;\ fi if test -d $(srcdir)/api/man; then \ mkdir $(distdir)/api/man ;\ cp -r $(srcdir)/api/man/* $(distdir)/api/man ;\ fi if test -d $(srcdir)/api/rtf; then \ mkdir $(distdir)/api/rtf ;\ cp $(srcdir)/api/rtf/* $(distdir)/api/rtf ;\ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mailfilter-0.8.4/doc/api/0000755000175000017500000000000012675277621012211 500000000000000mailfilter-0.8.4/doc/api/html/0000755000175000017500000000000012675277621013155 500000000000000mailfilter-0.8.4/doc/api/html/classAPOP-members.html0000644000175000017500000001247612675277621017212 00000000000000 mailfilter: Member List
APOP Member List

This is the complete list of members for APOP, including all inherited members.

connProtocolprotected
connect_typeProtocolprotected
ident(void) const Protocol
login(const char *usr, const char *pass, const unsigned int enc) const APOPvirtual
logout(void) const POP3virtual
prot_identProtocolprotected
remove_msg(const unsigned int) const POP3virtual
scan(void) const POP3virtual
set_connection(Connection *)Protocol
set_ident(unsigned int)Protocol
status(void) const POP3virtual
~Protocol(void)Protocolinlinevirtual
mailfilter-0.8.4/doc/api/html/ftv2node.png0000644000175000017500000000012612675277621015331 00000000000000PNG  IHDRɪ|IDATxݱðScOx@ y}IENDB`mailfilter-0.8.4/doc/api/html/ftv2vertline.png0000644000175000017500000000012612675277621016234 00000000000000PNG  IHDRɪ|IDATxݱðScOx@ y}IENDB`mailfilter-0.8.4/doc/api/html/connection_8hh_source.html0000644000175000017500000002311512675277621020253 00000000000000 mailfilter: connection.hh Source File
connection.hh
Go to the documentation of this file.
1 // connection.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef CONNECTION_HH
20 #define CONNECTION_HH
21 
22 #include <string>
23 
24 // Right now this class is only a dummy, but later it can be useful to
25 // derive, e.g. a Windoze Socks connection class from it.
26 
27 using namespace std;
28 
30 {
31 public:
32  virtual ~Connection (void) { }
33  virtual int c_open (const char* host_name,
34  int port,
35  int time_out,
36  int protocol) = 0;
37  virtual int c_close (void) const = 0;
38  virtual int c_read (bool = false) = 0;
39  virtual int c_write (const char* msg) = 0;
40  virtual const string* c_reply (void) const = 0;
41 };
42 
43 #endif
virtual ~Connection(void)
Definition: connection.hh:32
Definition: connection.hh:29
mailfilter-0.8.4/doc/api/html/globals_defs.html0000644000175000017500000002360312675277621016413 00000000000000 mailfilter: File Members
 

- _ -

- c -

- e -

- f -

- g -

- h -

- i -

- m -

- n -

- o -

- p -

- r -

- s -

- v -

- y -

mailfilter-0.8.4/doc/api/html/classPreferences-members.html0000644000175000017500000005730112675277621020710 00000000000000 mailfilter: Member List
Preferences Member List

This is the complete list of members for Preferences, including all inherited members.

_ignore_time_stampPreferencesprotected
accntsPreferencesprotected
accounts(void)Preferences
add_allow_rule(const char *, const char *, const char *)Preferences
add_deny_rule(const char *, const char *, const char *)Preferences
add_score(const char *, int, const char *, const char *)Preferences
allow_filters(void)Preferences
allowsPreferencesprotected
conn_typePreferencesprotected
cur_accountPreferencesprotected
default_case(void)Preferences
del_duplicatesPreferencesprotected
delete_duplicates(void)Preferences
deniesPreferencesprotected
deny_filters(void)Preferences
headers_file(void)Preferences
headers_file_namePreferencesprotected
high_scorePreferencesprotected
highscore(void)Preferences
icasePreferencesprotected
ignore_time_stamp()Preferences
init(void)Preferences
Instance()Preferencesstatic
kill(void)Preferences
load(void)Preferences
log_file(void)Preferences
log_file_namePreferencesprotected
max_line_lengthPreferencesprotected
max_sizePreferencesprotected
max_size_allow(void)Preferences
max_size_deny(void)Preferences
max_size_friendsPreferencesprotected
max_size_score(void)Preferences
maxlength(void)Preferences
neg_allows(void)Preferences
neg_denies(void)Preferences
negative_allowsPreferencesprotected
negative_deniesPreferencesprotected
negative_scoresPreferencesprotected
normPreferencesprotected
normal(void)Preferences
open(const char *)Preferences
Preferences()Preferences
prefs_file_namePreferencesprotected
prefs_streamPreferencesprotected
rc_file(void)Preferences
reg_type(void)Preferences
ret_statusPreferencesprotected
return_status(void)Preferences
rreg_typePreferencesprotected
score_filters(void)Preferences
scoresPreferencesprotected
set_connection(unsigned int=POSIX_SOCKETS) __attribute__((unused))Preferences
set_default_case(const char *)Preferences
set_del_duplicates(const char *)Preferences
set_headers_file(const char *)Preferences
set_highscore(int)Preferences
set_ignore_time_stamp(bool=true)Preferences
set_log_file(const char *)Preferences
set_max_size_allow(int)Preferences
set_max_size_deny(int)Preferences
set_max_size_score(int, int)Preferences
set_maxlength(int)Preferences
set_normal(const char *)Preferences
set_passwd(const char *)Preferences
set_port(unsigned int)Preferences
set_protocol(const char *)Preferences
set_rc_file(const char *)Preferences
set_reg_type(const char *)Preferences
set_return_status(bool)Preferences
set_server(const char *)Preferences
set_test_mode(const char *)Preferences
set_time_out(unsigned int)Preferences
set_usr(const char *)Preferences
set_verbose_level(int)Preferences
show_headersPreferencesprotected
size_scorePreferencesprotected
testPreferencesprotected
test_changedPreferencesprotected
test_mode(void)Preferences
time_out(void)Preferences
time_out_valPreferencesprotected
verbose_level(void)Preferences
verbosityPreferencesprotected
verbosity_changedPreferencesprotected
mailfilter-0.8.4/doc/api/html/classConnection-members.html0000644000175000017500000000774012675277621020550 00000000000000 mailfilter: Member List
Connection Member List

This is the complete list of members for Connection, including all inherited members.

c_close(void) const =0Connectionpure virtual
c_open(const char *host_name, int port, int time_out, int protocol)=0Connectionpure virtual
c_read(bool=false)=0Connectionpure virtual
c_reply(void) const =0Connectionpure virtual
c_write(const char *msg)=0Connectionpure virtual
~Connection(void)Connectioninlinevirtual
mailfilter-0.8.4/doc/api/html/ftv2lastnode.png0000644000175000017500000000012612675277621016215 00000000000000PNG  IHDRɪ|IDATxݱðScOx@ y}IENDB`mailfilter-0.8.4/doc/api/html/classProtocol-members.html0000644000175000017500000001265112675277621020247 00000000000000 mailfilter: Member List
Protocol Member List

This is the complete list of members for Protocol, including all inherited members.

connProtocolprotected
connect_typeProtocolprotected
ident(void) const Protocol
login(const char *usr, const char *pass, const unsigned int) const =0Protocolpure virtual
logout(void) const =0Protocolpure virtual
prot_identProtocolprotected
remove_msg(const unsigned int num) const =0Protocolpure virtual
scan(void) const =0Protocolpure virtual
set_connection(Connection *)Protocol
set_ident(unsigned int)Protocol
status(void) const =0Protocolpure virtual
~Protocol(void)Protocolinlinevirtual
mailfilter-0.8.4/doc/api/html/globals_type.html0000644000175000017500000000473512675277621016460 00000000000000 mailfilter: File Members
 
mailfilter-0.8.4/doc/api/html/nav_h.png0000644000175000017500000000014212675277621014673 00000000000000PNG  IHDR ,@)IDATxA @BQۛТ) ) aܿoRlIENDB`mailfilter-0.8.4/doc/api/html/classFeedback-members.html0000644000175000017500000000723612675277621020135 00000000000000 mailfilter: Member List
Feedback Member List

This is the complete list of members for Feedback, including all inherited members.

Instance(void)Feedbackstatic
open(const char *)Feedback
print_err(const string, int=1)Feedback
print_header(const string)Feedback
print_msg(const string, int)Feedback
~Feedback(void)Feedback
mailfilter-0.8.4/doc/api/html/account_8hh_source.html0000644000175000017500000003707712675277621017564 00000000000000 mailfilter: account.hh Source File
account.hh
Go to the documentation of this file.
1 // account.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef ACCOUNT_HH
20 #define ACCOUNT_HH
21 
22 #include <string>
23 #include <vector>
24 #include "defines.hh"
25 #include "protocol.hh"
26 #include "pop3.hh"
27 #include "apop.hh"
28 #include "connection.hh"
29 
30 using namespace std;
31 
32 class Account
33 {
34 protected:
35  string serv;
36  string user;
37  string pass;
38  int the_port;
39  vector<string> msg_ids;
42 
43 public:
44  void clear (void);
45  string server (void);
46  void set_server (const char*);
47  string usr (void);
48  void set_usr (const char*);
49  string passwd (void);
50  void set_passwd (const char*);
51  unsigned int port (void);
52  void set_port (unsigned int);
53  void set_protocol (unsigned int);
54  unsigned int protocol (void);
55  void set_connection (unsigned int = POSIX_SOCKETS)
56  __attribute__ ((unused));
57  int check (void);
58 };
59 
60 #endif
string user
Definition: account.hh:36
string pass
Definition: account.hh:37
string serv
Definition: account.hh:35
vector< string > msg_ids
Definition: account.hh:39
Definition: protocol.hh:32
Definition: account.hh:32
Protocol * proto
Definition: account.hh:40
int the_port
Definition: account.hh:38
Definition: connection.hh:29
Connection * conn
Definition: account.hh:41
mailfilter-0.8.4/doc/api/html/tab_b.png0000644000175000017500000000025112675277621014650 00000000000000PNG  IHDR$[pIDATxM EǻԸu`V0}:t]Ds䮂u|x>1&m8SxLU޲iEOsnxKN~jIENDB`mailfilter-0.8.4/doc/api/html/md5_8h_source.html0000644000175000017500000003172412675277621016436 00000000000000 mailfilter: md5.h Source File
md5.h
Go to the documentation of this file.
1 /* MD5.H - header file for MD5C.C
2  */
3 
4 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
5 rights reserved.
6 
7 License to copy and use this software is granted provided that it
8 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
9 Algorithm" in all material mentioning or referencing this software
10 or this function.
11 
12 License is also granted to make and use derivative works provided
13 that such works are identified as "derived from the RSA Data
14 Security, Inc. MD5 Message-Digest Algorithm" in all material
15 mentioning or referencing the derived work.
16 
17 RSA Data Security, Inc. makes no representations concerning either
18 the merchantability of this software or the suitability of this
19 software for any particular purpose. It is provided "as is"
20 without express or implied warranty of any kind.
21 
22 These notices must be retained in any copies of any part of this
23 documentation and/or software.
24  */
25 
26 #ifndef MD5_H
27 #define MD5_H 1
28 
29 #include <sys/types.h>
30 #include <inttypes.h>
31 
32 /* POINTER defines a generic pointer type */
33 typedef unsigned char *POINTER;
34 
35 #ifndef HAVE_UINT32_T
36 # if SIZEOF_INT == 4
37 typedef unsigned int uint32_t;
38 # elif SIZEOF_LONG == 4
39 typedef unsigned long int uint32_t;
40 # endif
41 #endif
42 
43 /* MD5 context. */
44 typedef struct {
45  uint32_t state[4]; /* state (ABCD) */
46  uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
47  unsigned char buffer[64]; /* input buffer */
48 } MD5_CTX;
49 
50 void MD5Init (MD5_CTX *);
51 void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
52 void MD5Final (unsigned char [16], MD5_CTX *);
53 
54 /* added to define the conversion wrapper */
55 void gethash (char [33], char *, char *);
56 
57 #endif
void MD5Update(MD5_CTX *, unsigned char *, unsigned int)
Definition: md5c.c:113
unsigned char * POINTER
Definition: md5.h:33
void MD5Final(unsigned char[16], MD5_CTX *)
void gethash(char[33], char *, char *)
Definition: md5.h:44
void MD5Init(MD5_CTX *)
Definition: md5c.c:97
mailfilter-0.8.4/doc/api/html/filter_8cc.html0000644000175000017500000000522312675277621016007 00000000000000 mailfilter: filter.cc File Reference
filter.cc File Reference
#include <iostream>
#include <string>
#include <sys/types.h>
#include <regex.h>
#include "filter.hh"
#include "mailfilter.hh"
#include "preferences.hh"
mailfilter-0.8.4/doc/api/html/score_8hh_source.html0000644000175000017500000002517312675277621017235 00000000000000 mailfilter: score.hh Source File
score.hh
Go to the documentation of this file.
1 // score.hh - source file for the mailfilter program
2 // Copyright (c) 2000 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef SCORE_HH
20 #define SCORE_HH
21 
22 #include "filter.hh"
23 
24 class Score;
25 
27 {
28 public:
29  int score;
30  int size;
31 };
32 
33 class Score : public Filter
34 {
35 protected:
36  int scr;
37 public:
38  int score (void) const;
39  void set_score (int);
40 };
41 
42 #endif
int size
Definition: score.hh:30
int score(void) const
Definition: filter.hh:35
Definition: score.hh:33
int score
Definition: score.hh:29
void set_score(int)
int scr
Definition: score.hh:36
Definition: score.hh:26
mailfilter-0.8.4/doc/api/html/dynsections.js0000644000175000017500000000610412675277621015776 00000000000000function toggleVisibility(linkObj) { var base = $(linkObj).attr('id'); var summary = $('#'+base+'-summary'); var content = $('#'+base+'-content'); var trigger = $('#'+base+'-trigger'); var src=$(trigger).attr('src'); if (content.is(':visible')===true) { content.hide(); summary.show(); $(linkObj).addClass('closed').removeClass('opened'); $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); } else { content.show(); summary.hide(); $(linkObj).removeClass('closed').addClass('opened'); $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); } return false; } function updateStripes() { $('table.directory tr'). removeClass('even').filter(':visible:even').addClass('even'); } function toggleLevel(level) { $('table.directory tr').each(function() { var l = this.id.split('_').length-1; var i = $('#img'+this.id.substring(3)); var a = $('#arr'+this.id.substring(3)); if (l mailfilter: account.cc File Reference
account.cc File Reference
#include <string>
#include <vector>
#include <typeinfo>
#include "account.hh"
#include "pop3.hh"
#include "apop.hh"
#include "preferences.hh"
#include "feedback.hh"
#include "mailfilter.hh"
#include "connection.hh"
#include "socket.hh"
#include "defines.hh"

Functions

string int_to_string (int)
 

Variables

int mailbox_status
 

Function Documentation

string int_to_string ( int  )

Variable Documentation

int mailbox_status
mailfilter-0.8.4/doc/api/html/closed.png0000644000175000017500000000020412675277621015050 00000000000000PNG  IHDR KIDATxm @!Gk7-`&sts@k}2 P%_N .:0Dk›x" ֛)x5IENDB`mailfilter-0.8.4/doc/api/html/tab_s.png0000644000175000017500000000027012675277621014672 00000000000000PNG  IHDR$[IDATx݁ @@ѣ?Q"%If6[HQ<]dr s?O=w'F -~rÍ[芭m֬ݯнF)Y% `n,9B!ь\<#IENDB`mailfilter-0.8.4/doc/api/html/socket_8cc.html0000644000175000017500000000643312675277621016016 00000000000000 mailfilter: socket.cc File Reference
socket.cc File Reference
#include <iostream>
#include <csignal>
#include <cstring>
#include <string>
#include <stdexcept>
#include <sstream>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <setjmp.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netdb.h>
#include "defines.hh"
#include "mailfilter.hh"
#include "feedback.hh"
#include "socket.hh"
#include "protocol.hh"
mailfilter-0.8.4/doc/api/html/classScore.png0000644000175000017500000000050312675277621015702 00000000000000PNG  IHDR.PQOPLTEutRNST2IDATxᎄ m?iwQ~\bGXJ`fSU2.RU zy:9nNI7~1~bBRg3}b=ަhӷmw{3KhtKhtDD Yq>t7%.Zv級*,rw.܎SgbOŜ3e>'mHh ¨ IENDB`mailfilter-0.8.4/doc/api/html/score_8hh.html0000644000175000017500000000611612675277621015651 00000000000000 mailfilter: score.hh File Reference
score.hh File Reference
#include "filter.hh"

Go to the source code of this file.

Classes

class  Size_score
 
class  Score
 
mailfilter-0.8.4/doc/api/html/getopt_8h.html0000644000175000017500000002677612675277621015706 00000000000000 mailfilter: getopt.h File Reference
getopt.h File Reference
#include <ctype.h>

Go to the source code of this file.

Classes

struct  option
 

Macros

#define _GETOPT_H   1
 
#define no_argument   0
 
#define required_argument   1
 
#define optional_argument   2
 

Functions

int getopt ()
 
int getopt_long ()
 
int getopt_long_only ()
 
int _getopt_internal ()
 

Variables

char * optarg
 
int optind
 
int opterr
 
int optopt
 

Macro Definition Documentation

#define _GETOPT_H   1
#define no_argument   0
#define optional_argument   2
#define required_argument   1

Function Documentation

int _getopt_internal ( )
int getopt ( )
int getopt_long ( )
int getopt_long_only ( )

Variable Documentation

char* optarg
int opterr
int optind
int optopt
mailfilter-0.8.4/doc/api/html/functions_vars.html0000644000175000017500000002333312675277621017032 00000000000000 mailfilter: Class Members - Variables
 

- _ -

- a -

- b -

- c -

- d -

- f -

- h -

- i -

- l -

- m -

- n -

- p -

- r -

- s -

- t -

- u -

- v -

mailfilter-0.8.4/doc/api/html/ftv2pnode.png0000644000175000017500000000034512675277621015514 00000000000000PNG  IHDRɪ|IDATx=QFDk:FPK؃=V@ճ 8SHx0bnrr{򽿾$ TP XOd6"SOB(Q)+YĈ ҪR>Vtsm9(k-@ȧ-$ b [he Kp-l|CApRG'rͭaIENDB`mailfilter-0.8.4/doc/api/html/nav_f.png0000644000175000017500000000023112675277621014670 00000000000000PNG  IHDR8`IDATxK Eі[BmkHprӼ.ꎤR6Z VIE5jliIJ0/u޿6sH yIENDB`mailfilter-0.8.4/doc/api/html/classSize__score-members.html0000644000175000017500000000526312675277621020713 00000000000000 mailfilter: Member List
Size_score Member List

This is the complete list of members for Size_score, including all inherited members.

scoreSize_score
sizeSize_score
mailfilter-0.8.4/doc/api/html/protocol_8cc.html0000644000175000017500000000457312675277621016372 00000000000000 mailfilter: protocol.cc File Reference
protocol.cc File Reference
#include "connection.hh"
#include "protocol.hh"
mailfilter-0.8.4/doc/api/html/preferences_8cc.html0000644000175000017500000001330212675277621017020 00000000000000 mailfilter: preferences.cc File Reference
preferences.cc File Reference
#include <string>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <fstream>
#include <vector>
#include <stdexcept>
#include <cstdio>
#include "preferences.hh"
#include "filter.hh"
#include "mailfilter.hh"
#include "account.hh"
#include "protocol.hh"
#include "score.hh"
#include "rcfile.hh"
#include <wordexp.h>
#include <sys/types.h>
#include <regex.h>

Functions

int rcparse (void *)
 
int cmp_no_case (const string &, const string &)
 

Function Documentation

int cmp_no_case ( const string &  ,
const string &   
)
int rcparse ( void *  )
mailfilter-0.8.4/doc/api/html/mailfilter_8hh.html0000644000175000017500000002207512675277621016670 00000000000000 mailfilter: mailfilter.hh File Reference
mailfilter.hh File Reference
#include <iostream>

Go to the source code of this file.

Macros

#define VALUE_HELP   1
 
#define VALUE_VERBOSE   2
 
#define VALUE_MAILFILTERRC   3
 
#define VALUE_LOGFILE   4
 
#define VALUE_VERSION   5
 
#define VALUE_TEST   6
 
#define VALUE_RETURN   7
 
#define VALUE_TIMESTAMP   8
 
#define ERROR_MSG(msg)
 

Macro Definition Documentation

#define ERROR_MSG (   msg)
Value:
cerr << PACKAGE_NAME \
<< ": Error: " \
<< msg \
<< endl
#define VALUE_HELP   1
#define VALUE_LOGFILE   4
#define VALUE_MAILFILTERRC   3
#define VALUE_RETURN   7
#define VALUE_TEST   6
#define VALUE_TIMESTAMP   8
#define VALUE_VERBOSE   2
#define VALUE_VERSION   5
mailfilter-0.8.4/doc/api/html/globals_vars.html0000644000175000017500000000750612675277621016451 00000000000000 mailfilter: File Members
 
mailfilter-0.8.4/doc/api/html/hierarchy.html0000644000175000017500000001373212675277621015747 00000000000000 mailfilter: Class Hierarchy
Class Hierarchy
This inheritance list is sorted roughly, but not completely, alphabetically:
[detail level 123]
 CAccount
 CConnection
 CSocket
 CFeedback
 CFilter
 CScore
 CMD5_CTX
 Coption
 CPreferences
 CProtocol
 CPOP3
 CAPOP
 CSize_score
mailfilter-0.8.4/doc/api/html/ftv2folderclosed.png0000644000175000017500000000115012675277621017047 00000000000000PNG  IHDR}\/IDATx]MO@~uؐlp]#]PYEC\9y`xC &=qvZv3m؃vLN}}ޝZA@n ONp xKxj8s _[D'yye+ 7#rNlk* 0Ь_d_(Öz=xvhzP-䍒̪u$\DJcB4.:Ϗ-}LE #gN;B6䬜@p&h>p9EEάʑ"un$R"?{<%PNt$߶+^<"2Dqq\ҙaA"ԵP}#Ez{.8i p(ADwDE߂z;Kק8t q:uvvݛvEn{MFXgfZ֝*ߩ:jYq#3SWr'  IENDB`mailfilter-0.8.4/doc/api/html/functions.html0000644000175000017500000005465712675277621016014 00000000000000 mailfilter: Class Members
Here is a list of all class members with links to the classes they belong to:

- _ -

- a -

- b -

- c -

- d -

- e -

- f -

- h -

- i -

- k -

- l -

- m -

- n -

- o -

- p -

- r -

- s -

- t -

- u -

- v -

- ~ -

mailfilter-0.8.4/doc/api/html/pop3_8hh_source.html0000644000175000017500000002721512675277621017002 00000000000000 mailfilter: pop3.hh Source File
pop3.hh
Go to the documentation of this file.
1 // pop3.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef POP3_HH
20 #define POP3_HH
21 
22 #include "header.hh"
23 #include "protocol.hh"
24 
25 using namespace std;
26 
27 // True, if the server replied and its status message was anything,
28 // but an error.
29 #define REPLY_OK ((conn->c_read () > 0 && conn->c_reply ()) ? \
30  (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \
31  : false)
32 
33 // This macro is similar to REPLY_OK, except it sets a flag for c_read
34 // in order to tell the function that an entire message header is
35 // about to be received. Further comments inside socket.cc:c_read().
36 #define HEADER_OK ((conn->c_read (true) > 0 && conn->c_reply ())? \
37  (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \
38  : false)
39 
40 class POP3 : public Protocol
41 {
42 private:
43  int invoke_msg_parser (const string*,
44  const Header*) const;
45 public:
46  bool login (const char*,
47  const char*,
48  const unsigned int) const;
49  bool logout (void) const;
50  int remove_msg (const unsigned int) const;
51  int status (void) const;
52  int scan (void) const;
53 };
54 
55 #endif
Definition: protocol.hh:32
Definition: pop3.hh:40
mailfilter-0.8.4/doc/api/html/classScore-members.html0000644000175000017500000001222312675277621017514 00000000000000 mailfilter: Member List
Score Member List

This is the complete list of members for Score, including all inherited members.

ccase(void) const Filter
comp_exp(void) const Filter
compile(void)Filter
expression(void) const Filter
Filter(void)Filter
is_negative(void) const Filter
score(void) const Score
scrScoreprotected
set_case(int)Filter
set_expression(const char *)Filter
set_negativity(bool)Filter
set_score(int)Score
~Filter(void)Filter
mailfilter-0.8.4/doc/api/html/classAccount-members.html0000644000175000017500000001571412675277621020045 00000000000000 mailfilter: Member List
Account Member List

This is the complete list of members for Account, including all inherited members.

check(void)Account
clear(void)Account
connAccountprotected
msg_idsAccountprotected
passAccountprotected
passwd(void)Account
port(void)Account
protoAccountprotected
protocol(void)Account
servAccountprotected
server(void)Account
set_connection(unsigned int=POSIX_SOCKETS) __attribute__((unused))Account
set_passwd(const char *)Account
set_port(unsigned int)Account
set_protocol(unsigned int)Account
set_server(const char *)Account
set_usr(const char *)Account
the_portAccountprotected
userAccountprotected
usr(void)Account
mailfilter-0.8.4/doc/api/html/bdwn.png0000644000175000017500000000022312675277621014532 00000000000000PNG  IHDR5ZIDATx DP1lm rj.e D[ɾ|6V3?Ls'(}>+ Kch` ^ލnIENDB`mailfilter-0.8.4/doc/api/html/functions_func.html0000644000175000017500000004126312675277621017014 00000000000000 mailfilter: Class Members - Functions
 

- a -

- c -

- d -

- e -

- f -

- h -

- i -

- k -

- l -

- m -

- n -

- o -

- p -

- r -

- s -

- t -

- u -

- v -

- ~ -

mailfilter-0.8.4/doc/api/html/getopt_8h_source.html0000644000175000017500000010605412675277621017252 00000000000000 mailfilter: getopt.h Source File
getopt.h
Go to the documentation of this file.
1 /* Declarations for getopt.
2  Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc.
3  This file is part of the GNU C Library.
4 
5  The GNU C Library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  The GNU C Library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with the GNU C Library; if not, write to the Free
17  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18  02111-1307 USA. */
19 
20 #ifndef _GETOPT_H
21 
22 #ifndef __need_getopt
23 # define _GETOPT_H 1
24 #endif
25 
26 /* If __GNU_LIBRARY__ is not already defined, either we are being used
27  standalone, or this is the first header included in the source file.
28  If we are being used with glibc, we need to include <features.h>, but
29  that does not exist if we are standalone. So: if __GNU_LIBRARY__ is
30  not defined, include <ctype.h>, which will pull in <features.h> for us
31  if it's from glibc. (Why ctype.h? It's guaranteed to exist and it
32  doesn't flood the namespace with stuff the way some other headers do.) */
33 #if !defined __GNU_LIBRARY__
34 # include <ctype.h>
35 #endif
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /* For communication from `getopt' to the caller.
42  When `getopt' finds an option that takes an argument,
43  the argument value is returned here.
44  Also, when `ordering' is RETURN_IN_ORDER,
45  each non-option ARGV-element is returned here. */
46 
47 extern char *optarg;
48 
49 /* Index in ARGV of the next element to be scanned.
50  This is used for communication to and from the caller
51  and for communication between successive calls to `getopt'.
52 
53  On entry to `getopt', zero means this is the first call; initialize.
54 
55  When `getopt' returns -1, this is the index of the first of the
56  non-option elements that the caller should itself scan.
57 
58  Otherwise, `optind' communicates from one call to the next
59  how much of ARGV has been scanned so far. */
60 
61 extern int optind;
62 
63 /* Callers store zero here to inhibit the error message `getopt' prints
64  for unrecognized options. */
65 
66 extern int opterr;
67 
68 /* Set to an option character which was unrecognized. */
69 
70 extern int optopt;
71 
72 #ifndef __need_getopt
73 /* Describe the long-named options requested by the application.
74  The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector
75  of `struct option' terminated by an element containing a name which is
76  zero.
77 
78  The field `has_arg' is:
79  no_argument (or 0) if the option does not take an argument,
80  required_argument (or 1) if the option requires an argument,
81  optional_argument (or 2) if the option takes an optional argument.
82 
83  If the field `flag' is not NULL, it points to a variable that is set
84  to the value given in the field `val' when the option is found, but
85  left unchanged if the option is not found.
86 
87  To have a long-named option do something other than set an `int' to
88  a compiled-in constant, such as set a value from `optarg', set the
89  option's `flag' field to zero and its `val' field to a nonzero
90  value (the equivalent single-letter option character, if there is
91  one). For long options that have a zero `flag' field, `getopt'
92  returns the contents of the `val' field. */
93 
94 struct option
95 {
96 # if (defined __STDC__ && __STDC__) || defined __cplusplus
97  const char *name;
98 # else
99  char *name;
100 # endif
101  /* has_arg can't be an enum because some compilers complain about
102  type mismatches in all the code that assumes it is an int. */
103  int has_arg;
104  int *flag;
105  int val;
106 };
107 
108 /* Names for the values of the `has_arg' field of `struct option'. */
109 
110 # define no_argument 0
111 # define required_argument 1
112 # define optional_argument 2
113 #endif /* need getopt */
114 
115 
116 /* Get definitions and prototypes for functions to process the
117  arguments in ARGV (ARGC of them, minus the program name) for
118  options given in OPTS.
119 
120  Return the option character from OPTS just read. Return -1 when
121  there are no more options. For unrecognized options, or options
122  missing arguments, `optopt' is set to the option letter, and '?' is
123  returned.
124 
125  The OPTS string is a list of characters which are recognized option
126  letters, optionally followed by colons, specifying that that letter
127  takes an argument, to be placed in `optarg'.
128 
129  If a letter in OPTS is followed by two colons, its argument is
130  optional. This behavior is specific to the GNU `getopt'.
131 
132  The argument `--' causes premature termination of argument
133  scanning, explicitly telling `getopt' that there are no more
134  options.
135 
136  If OPTS begins with `--', then non-option arguments are treated as
137  arguments to the option '\0'. This behavior is specific to the GNU
138  `getopt'. */
139 
140 #if (defined __STDC__ && __STDC__) || defined __cplusplus
141 # ifdef __GNU_LIBRARY__
142 /* Many other libraries have conflicting prototypes for getopt, with
143  differences in the consts, in stdlib.h. To avoid compilation
144  errors, only prototype getopt for the GNU C library. */
145 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
146 # else /* not __GNU_LIBRARY__ */
147 extern int getopt ();
148 # endif /* __GNU_LIBRARY__ */
149 
150 # ifndef __need_getopt
151 extern int getopt_long (int ___argc, char *const *___argv,
152  const char *__shortopts,
153  const struct option *__longopts, int *__longind);
154 extern int getopt_long_only (int ___argc, char *const *___argv,
155  const char *__shortopts,
156  const struct option *__longopts, int *__longind);
157 
158 /* Internal only. Users should not call this directly. */
159 extern int _getopt_internal (int ___argc, char *const *___argv,
160  const char *__shortopts,
161  const struct option *__longopts, int *__longind,
162  int __long_only);
163 # endif
164 #else /* not __STDC__ */
165 extern int getopt ();
166 # ifndef __need_getopt
167 extern int getopt_long ();
168 extern int getopt_long_only ();
169 
170 extern int _getopt_internal ();
171 # endif
172 #endif /* __STDC__ */
173 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 /* Make sure we later can get all the definitions and declarations. */
179 #undef __need_getopt
180 
181 #endif /* getopt.h */
int getopt_long()
int val
Definition: getopt.h:105
char * name
Definition: getopt.h:99
Definition: getopt.h:94
int optopt
Definition: getopt.c:157
int getopt_long_only()
char * optarg
Definition: getopt.c:116
int optind
Definition: getopt.c:131
int * flag
Definition: getopt.h:104
int opterr
Definition: getopt.c:151
int has_arg
Definition: getopt.h:103
int _getopt_internal()
int getopt()
mailfilter-0.8.4/doc/api/html/classPOP3-members.html0000644000175000017500000001246312675277621017170 00000000000000 mailfilter: Member List
POP3 Member List

This is the complete list of members for POP3, including all inherited members.

connProtocolprotected
connect_typeProtocolprotected
ident(void) const Protocol
login(const char *, const char *, const unsigned int) const POP3virtual
logout(void) const POP3virtual
prot_identProtocolprotected
remove_msg(const unsigned int) const POP3virtual
scan(void) const POP3virtual
set_connection(Connection *)Protocol
set_ident(unsigned int)Protocol
status(void) const POP3virtual
~Protocol(void)Protocolinlinevirtual
mailfilter-0.8.4/doc/api/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html0000644000175000017500000002264212675277621021440 00000000000000 mailfilter: src Directory Reference
mailfilter  0.8.4
src Directory Reference

Files

file  account.cc
 
file  account.hh [code]
 
file  apop.cc
 
file  apop.hh [code]
 
file  connection.hh [code]
 
file  feedback.cc
 
file  feedback.hh [code]
 
file  filter.cc
 
file  filter.hh [code]
 
file  getopt.c
 
file  getopt.h [code]
 
file  getopt1.c
 
file  mailfilter.cc
 
file  mailfilter.hh [code]
 
file  md5.h [code]
 
file  md5c.c
 
file  pop3.cc
 
file  pop3.hh [code]
 
file  preferences.cc
 
file  preferences.hh [code]
 
file  protocol.cc
 
file  protocol.hh [code]
 
file  score.hh [code]
 
file  socket.cc
 
file  socket.hh [code]
 
mailfilter-0.8.4/doc/api/html/classFilter.png0000644000175000017500000000051112675277621016053 00000000000000PNG  IHDR.PQOPLTEutRNST2IDATx / RƇAk=M B_DDߎ'>l\/'O~8 5SF]-ԃ@lW ""az$8czJCGAϝY:@X:@cf!TU̡ߠOei_Cs,6;jY͋zNٶj_u~U̞w\1U[y pIENDB`mailfilter-0.8.4/doc/api/html/classFilter-members.html0000644000175000017500000001072612675277621017674 00000000000000 mailfilter: Member List
Filter Member List

This is the complete list of members for Filter, including all inherited members.

ccase(void) const Filter
comp_exp(void) const Filter
compile(void)Filter
expression(void) const Filter
Filter(void)Filter
is_negative(void) const Filter
set_case(int)Filter
set_expression(const char *)Filter
set_negativity(bool)Filter
~Filter(void)Filter
mailfilter-0.8.4/doc/api/html/ftv2plastnode.png0000644000175000017500000000034512675277621016400 00000000000000PNG  IHDRɪ|IDATx=QFDk:FPK؃=V@ճ 8SHx0bnrr{򽿾$ TP XOd6"SOB(Q)+YĈ ҪR>Vtsm9(k-@ȧ-$ b [he Kp-l|CApRG'rͭaIENDB`mailfilter-0.8.4/doc/api/html/classSocket.html0000644000175000017500000003003612675277621016243 00000000000000 mailfilter: Socket Class Reference
Socket Class Reference

#include <socket.hh>

Inheritance diagram for Socket:
Connection

Public Member Functions

 Socket (void)
 
void clear (void)
 
int c_open (const char *host, int port, int time_out, int protocol)
 
int c_close (void) const
 
int c_write (const char *command)
 
int c_read (bool=false)
 
const string * c_reply (void) const
 
- Public Member Functions inherited from Connection
virtual ~Connection (void)
 

Constructor & Destructor Documentation

Socket::Socket ( void  )

Member Function Documentation

int Socket::c_close ( void  ) const
virtual

Implements Connection.

int Socket::c_open ( const char *  host,
int  port,
int  time_out,
int  protocol 
)
virtual

Implements Connection.

int Socket::c_read ( bool  read_header = false)
virtual

Implements Connection.

const string * Socket::c_reply ( void  ) const
virtual

Implements Connection.

int Socket::c_write ( const char *  command)
virtual

Implements Connection.

void Socket::clear ( void  )

The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/mailfilter_8cc.html0000644000175000017500000003520312675277621016653 00000000000000 mailfilter: mailfilter.cc File Reference
mailfilter.cc File Reference
#include <iostream>
#include <sstream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <csignal>
#include <stdexcept>
#include <vector>
#include "mailfilter.hh"
#include "preferences.hh"
#include "feedback.hh"
#include "weeder.hh"
#include "time.h"
#include <sys/time.h>
#include "getopt.h"

Functions

void init_app (void)
 
bool open_prefs (string)
 
void get_opts (int argc, char *argv[])
 
void override_prefs (string)
 
int cmp_no_case (const string &, const string &)
 
int precompile_expressions (void)
 
void connect_sigint (int)
 
string int_to_string (int)
 
int main (int argc, char *argv[])
 
string exec_shell (const char *command)
 

Variables

struct sigaction sigact
 
Weeder weeder
 
int mailbox_status
 

Function Documentation

int cmp_no_case ( const string &  s,
const string &  s2 
)
void connect_sigint ( int  signo)
string exec_shell ( const char *  command)
void get_opts ( int  argc,
char *  argv[] 
)
void init_app ( void  )
string int_to_string ( int  val)
int main ( int  argc,
char *  argv[] 
)
bool open_prefs ( string  )
void override_prefs ( string  )
int precompile_expressions ( void  )

Variable Documentation

int mailbox_status
struct sigaction sigact
Weeder weeder
mailfilter-0.8.4/doc/api/html/apop_8hh_source.html0000644000175000017500000002000212675277621017043 00000000000000 mailfilter: apop.hh Source File
apop.hh
Go to the documentation of this file.
1 // apop.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef APOP_HH
20 #define APOP_HH
21 
22 #include "pop3.hh"
23 
24 using namespace std;
25 
26 class APOP : public POP3
27 {
28 public:
29  bool login (const char* usr, const char* pass, const unsigned int enc) const;
30 
31 private:
32  void get_hash (char*, const char*, const char*) const;
33 };
34 
35 #endif
Definition: apop.hh:26
Definition: pop3.hh:40
mailfilter-0.8.4/doc/api/html/apop_8cc.html0000644000175000017500000000534312675277621015464 00000000000000 mailfilter: apop.cc File Reference
apop.cc File Reference
#include <cstdio>
#include <cstring>
#include "apop.hh"
#include "feedback.hh"
#include "defines.hh"
#include "mailfilter.hh"
#include <strings.h>
#include "md5.h"
mailfilter-0.8.4/doc/api/html/classAccount.html0000644000175000017500000004723312675277621016416 00000000000000 mailfilter: Account Class Reference

#include <account.hh>

Public Member Functions

void clear (void)
 
string server (void)
 
void set_server (const char *)
 
string usr (void)
 
void set_usr (const char *)
 
string passwd (void)
 
void set_passwd (const char *)
 
unsigned int port (void)
 
void set_port (unsigned int)
 
void set_protocol (unsigned int)
 
unsigned int protocol (void)
 
void set_connection (unsigned int=POSIX_SOCKETS) __attribute__((unused))
 
int check (void)
 

Protected Attributes

string serv
 
string user
 
string pass
 
int the_port
 
vector< string > msg_ids
 
Protocolproto
 
Connectionconn
 

Member Function Documentation

int Account::check ( void  )
void Account::clear ( void  )
string Account::passwd ( void  )
unsigned int Account::port ( void  )
unsigned int Account::protocol ( void  )
string Account::server ( void  )
void Account::set_connection ( unsigned int  the_connection_type = POSIX_SOCKETS)
void Account::set_passwd ( const char *  s)
void Account::set_port ( unsigned int  p)
void Account::set_protocol ( unsigned int  prot)
void Account::set_server ( const char *  s)
void Account::set_usr ( const char *  s)
string Account::usr ( void  )

Member Data Documentation

Connection* Account::conn
protected
vector<string> Account::msg_ids
protected
string Account::pass
protected
Protocol* Account::proto
protected
string Account::serv
protected
int Account::the_port
protected
string Account::user
protected

The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/md5_8h.html0000644000175000017500000002100512675277621015045 00000000000000 mailfilter: md5.h File Reference
md5.h File Reference
#include <sys/types.h>
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  MD5_CTX
 

Typedefs

typedef unsigned char * POINTER
 

Functions

void MD5Init (MD5_CTX *)
 
void MD5Update (MD5_CTX *, unsigned char *, unsigned int)
 
void MD5Final (unsigned char[16], MD5_CTX *)
 
void gethash (char[33], char *, char *)
 

Typedef Documentation

typedef unsigned char* POINTER

Function Documentation

void gethash ( char  [33],
char *  ,
char *   
)
void MD5Final ( unsigned  char[16],
MD5_CTX  
)
void MD5Init ( MD5_CTX )
void MD5Update ( MD5_CTX ,
unsigned char *  ,
unsigned  int 
)
mailfilter-0.8.4/doc/api/html/globals.html0000644000175000017500000003614412675277621015416 00000000000000 mailfilter: File Members
Here is a list of all file members with links to the files they belong to:

- _ -

- c -

- e -

- f -

- g -

- h -

- i -

- m -

- n -

- o -

- p -

- r -

- s -

- v -

- w -

- y -

mailfilter-0.8.4/doc/api/html/pop3_8cc.html0000644000175000017500000001517612675277621015413 00000000000000 mailfilter: pop3.cc File Reference
pop3.cc File Reference
#include <cstdio>
#include <cstdlib>
#include <sstream>
#include <string>
#include "socket.hh"
#include "pop3.hh"
#include "feedback.hh"
#include "preferences.hh"
#include "mailfilter.hh"
#include "header.hh"
#include "weeder.hh"
#include "defines.hh"
#include "protocol.hh"
#include "rfc822parser.hh"
#include <FlexLexer.h>

Macros

#define yyFlexLexer   rfcFlexLexer
 

Functions

int rfcparse (void *)
 

Variables

FlexLexer * rfclexer
 
Weeder weeder
 

Macro Definition Documentation

#define yyFlexLexer   rfcFlexLexer

Function Documentation

int rfcparse ( void *  )

Variable Documentation

FlexLexer* rfclexer
Weeder weeder
mailfilter-0.8.4/doc/api/html/apop_8hh.html0000644000175000017500000000546212675277621015500 00000000000000 mailfilter: apop.hh File Reference
apop.hh File Reference
#include "pop3.hh"

Go to the source code of this file.

Classes

class  APOP
 
mailfilter-0.8.4/doc/api/html/feedback_8hh.html0000644000175000017500000000547712675277621016273 00000000000000 mailfilter: feedback.hh File Reference
feedback.hh File Reference
#include <fstream>
#include <string>

Go to the source code of this file.

Classes

class  Feedback
 
mailfilter-0.8.4/doc/api/html/socket_8hh.html0000644000175000017500000000751012675277621016025 00000000000000 mailfilter: socket.hh File Reference
socket.hh File Reference
#include <string>
#include <csignal>
#include "connection.hh"

Go to the source code of this file.

Classes

class  Socket
 

Macros

#define MAX_BYTES   512
 

Macro Definition Documentation

#define MAX_BYTES   512
mailfilter-0.8.4/doc/api/html/classSocket.png0000644000175000017500000000062312675277621016062 00000000000000PNG  IHDRLP]cPLTEutRNST2"IDATxQ0 ǎhI [TjP2uX@J)E SUzk Ѯ\ e@Yk+[O3!+paîJV -yw;wdvϦ9~ SUw`)$Z [@Z$leBa_85a>MOӄ4a%"% F,Ge:ư;m|&leU.Ǭ{`e,݃۔oH=|+;;wvL3c40~&"?W"uMIENDB`mailfilter-0.8.4/doc/api/html/structoption.html0000644000175000017500000001223012675277621016536 00000000000000 mailfilter: option Struct Reference
option Struct Reference

#include <getopt.h>

Public Attributes

char * name
 
int has_arg
 
int * flag
 
int val
 

Member Data Documentation

int* option::flag
int option::has_arg
char* option::name
int option::val

The documentation for this struct was generated from the following file:
mailfilter-0.8.4/doc/api/html/tab_h.png0000644000175000017500000000026112675277621014657 00000000000000PNG  IHDR$[xIDATxM@~ΒEv"!d*rGq={SݧH uO^[_Xvyұ=VCff{R%_rug(?gh\i>|sIENDB`mailfilter-0.8.4/doc/api/html/ftv2folderopen.png0000644000175000017500000000112512675277621016541 00000000000000PNG  IHDR}\IDATx]?oP9i4i;iiZ7`b٬,HU'$*T]TDP6w};C; aӝߟjAInS}9Hӎ|? =_Ɗue*;YEsYBėsٌ ɫYq !Gǿv̇خ F}qb]70)d-}PfY{4@}2ԗNIǃc%UImcƝ>xt9$ OVE*Û#׈r@l$PrHaa dZrqIoT\,tj2FAxv-Lp׌p TI/ \sf; jViTo^cpb]€<a՜y9:+,E f6NEKU}^;nZuUS4 ѬbN.kjT% iV )GJ@TxIENDB`mailfilter-0.8.4/doc/api/html/socket_8hh_source.html0000644000175000017500000003127012675277621017405 00000000000000 mailfilter: socket.hh Source File
socket.hh
Go to the documentation of this file.
1 // socket.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef SOCKET_HH
20 #define SOCKET_HH
21 
22 #include <string>
23 #include <csignal>
24 
25 #if USE_SSL
26 extern "C"
27 {
28 #include <openssl/ssl.h>
29 #include <openssl/rand.h>
30 }
31 #endif
32 
33 #include "connection.hh"
34 
35 using namespace std;
36 
37 #ifndef MAX_BYTES
38 #define MAX_BYTES 512
39 #endif
40 
41 class Socket : public Connection
42 {
43 private:
44  int sd; // Socket descriptor.
45  int time_out; // Time out.
46  static void connect_alarm (int); // Alarm handler.
47  string* read_buffer; // Server replies after read ().
48  bool ssl_used; // True if SSL encryption is used.
49  bool use_ssl (void) const;
50  void set_ssl (bool);
51 
52 public:
53  Socket (void);
54  void clear (void);
55  int c_open (const char* host,
56  int port,
57  int time_out,
58  int protocol);
59  int c_close (void) const;
60  int c_write (const char* command);
61  int c_read (bool = false);
62  const string* c_reply (void) const;
63 };
64 
65 #endif
Definition: socket.hh:41
Definition: connection.hh:29
mailfilter-0.8.4/doc/api/html/doxygen.css0000644000175000017500000006142312675277621015272 00000000000000/* The standard CSS for doxygen 1.8.7 */ body, table, div, p, dl { font: 400 14px/22px Roboto,sans-serif; } /* @group Heading Levels */ h1.groupheader { font-size: 150%; } .title { font: 400 14px/28px Roboto,sans-serif; font-size: 150%; font-weight: bold; margin: 10px 2px; } h2.groupheader { border-bottom: 1px solid #879ECB; color: #354C7B; font-size: 150%; font-weight: normal; margin-top: 1.75em; padding-top: 8px; padding-bottom: 4px; width: 100%; } h3.groupheader { font-size: 100%; } h1, h2, h3, h4, h5, h6 { -webkit-transition: text-shadow 0.5s linear; -moz-transition: text-shadow 0.5s linear; -ms-transition: text-shadow 0.5s linear; -o-transition: text-shadow 0.5s linear; transition: text-shadow 0.5s linear; margin-right: 15px; } h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { text-shadow: 0 0 15px cyan; } dt { font-weight: bold; } div.multicol { -moz-column-gap: 1em; -webkit-column-gap: 1em; -moz-column-count: 3; -webkit-column-count: 3; } p.startli, p.startdd { margin-top: 2px; } p.starttd { margin-top: 0px; } p.endli { margin-bottom: 0px; } p.enddd { margin-bottom: 4px; } p.endtd { margin-bottom: 2px; } /* @end */ caption { font-weight: bold; } span.legend { font-size: 70%; text-align: center; } h3.version { font-size: 90%; text-align: center; } div.qindex, div.navtab{ background-color: #EBEFF6; border: 1px solid #A3B4D7; text-align: center; } div.qindex, div.navpath { width: 100%; line-height: 140%; } div.navtab { margin-right: 15px; } /* @group Link Styling */ a { color: #3D578C; font-weight: normal; text-decoration: none; } .contents a:visited { color: #4665A2; } a:hover { text-decoration: underline; } a.qindex { font-weight: bold; } a.qindexHL { font-weight: bold; background-color: #9CAFD4; color: #ffffff; border: 1px double #869DCA; } .contents a.qindexHL:visited { color: #ffffff; } a.el { font-weight: bold; } a.elRef { } a.code, a.code:visited, a.line, a.line:visited { color: #4665A2; } a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { color: #4665A2; } /* @end */ dl.el { margin-left: -1cm; } pre.fragment { border: 1px solid #C4CFE5; background-color: #FBFCFD; padding: 4px 6px; margin: 4px 8px 4px 2px; overflow: auto; word-wrap: break-word; font-size: 9pt; line-height: 125%; font-family: monospace, fixed; font-size: 105%; } div.fragment { padding: 4px 6px; margin: 4px 8px 4px 2px; background-color: #FBFCFD; border: 1px solid #C4CFE5; } div.line { font-family: monospace, fixed; font-size: 13px; min-height: 13px; line-height: 1.0; text-wrap: unrestricted; white-space: -moz-pre-wrap; /* Moz */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS3 */ word-wrap: break-word; /* IE 5.5+ */ text-indent: -53px; padding-left: 53px; padding-bottom: 0px; margin: 0px; -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } div.line.glow { background-color: cyan; box-shadow: 0 0 10px cyan; } span.lineno { padding-right: 4px; text-align: right; border-right: 2px solid #0F0; background-color: #E8E8E8; white-space: pre; } span.lineno a { background-color: #D8D8D8; } span.lineno a:hover { background-color: #C8C8C8; } div.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px; padding: 0.2em; border: solid thin #333; border-radius: 0.5em; -webkit-border-radius: .5em; -moz-border-radius: .5em; box-shadow: 2px 2px 3px #999; -webkit-box-shadow: 2px 2px 3px #999; -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); } div.groupHeader { margin-left: 16px; margin-top: 12px; font-weight: bold; } div.groupText { margin-left: 16px; font-style: italic; } body { background-color: white; color: black; margin: 0; } div.contents { margin-top: 10px; margin-left: 12px; margin-right: 8px; } td.indexkey { background-color: #EBEFF6; font-weight: bold; border: 1px solid #C4CFE5; margin: 2px 0px 2px 0; padding: 2px 10px; white-space: nowrap; vertical-align: top; } td.indexvalue { background-color: #EBEFF6; border: 1px solid #C4CFE5; padding: 2px 10px; margin: 2px 0px; } tr.memlist { background-color: #EEF1F7; } p.formulaDsp { text-align: center; } img.formulaDsp { } img.formulaInl { vertical-align: middle; } div.center { text-align: center; margin-top: 0px; margin-bottom: 0px; padding: 0px; } div.center img { border: 0px; } address.footer { text-align: right; padding-right: 12px; } img.footer { border: 0px; vertical-align: middle; } /* @group Code Colorization */ span.keyword { color: #008000 } span.keywordtype { color: #604020 } span.keywordflow { color: #e08000 } span.comment { color: #800000 } span.preprocessor { color: #806020 } span.stringliteral { color: #002080 } span.charliteral { color: #008080 } span.vhdldigit { color: #ff00ff } span.vhdlchar { color: #000000 } span.vhdlkeyword { color: #700070 } span.vhdllogic { color: #ff0000 } blockquote { background-color: #F7F8FB; border-left: 2px solid #9CAFD4; margin: 0 24px 0 4px; padding: 0 12px 0 16px; } /* @end */ /* .search { color: #003399; font-weight: bold; } form.search { margin-bottom: 0px; margin-top: 0px; } input.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #e8eef2; } */ td.tiny { font-size: 75%; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #A3B4D7; } th.dirtab { background: #EBEFF6; font-weight: bold; } hr { height: 0px; border: none; border-top: 1px solid #4A6AAA; } hr.footer { height: 1px; } /* @group Member Descriptions */ table.memberdecls { border-spacing: 0px; padding: 0px; } .memberdecls td, .fieldtable tr { -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } .memberdecls td.glow, .fieldtable tr.glow { background-color: cyan; box-shadow: 0 0 15px cyan; } .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplItemLeft, .memTemplItemRight, .memTemplParams { background-color: #F9FAFC; border: none; margin: 4px; padding: 1px 0 0 8px; } .mdescLeft, .mdescRight { padding: 0px 8px 4px 8px; color: #555; } .memSeparator { border-bottom: 1px solid #DEE4F0; line-height: 1px; margin: 0px; padding: 0px; } .memItemLeft, .memTemplItemLeft { white-space: nowrap; } .memItemRight { width: 100%; } .memTemplParams { color: #4665A2; white-space: nowrap; font-size: 80%; } /* @end */ /* @group Member Details */ /* Styles for detailed member documentation */ .memtemplate { font-size: 80%; color: #4665A2; font-weight: normal; margin-left: 9px; } .memnav { background-color: #EBEFF6; border: 1px solid #A3B4D7; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } .mempage { width: 100%; } .memitem { padding: 0; margin-bottom: 10px; margin-right: 5px; -webkit-transition: box-shadow 0.5s linear; -moz-transition: box-shadow 0.5s linear; -ms-transition: box-shadow 0.5s linear; -o-transition: box-shadow 0.5s linear; transition: box-shadow 0.5s linear; display: table !important; width: 100%; } .memitem.glow { box-shadow: 0 0 15px cyan; } .memname { font-weight: bold; margin-left: 6px; } .memname td { vertical-align: bottom; } .memproto, dl.reflist dt { border-top: 1px solid #A8B8D9; border-left: 1px solid #A8B8D9; border-right: 1px solid #A8B8D9; padding: 6px 0px 6px 0px; color: #253555; font-weight: bold; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); background-image:url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E8F2; /* opera specific markup */ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); border-top-right-radius: 4px; border-top-left-radius: 4px; /* firefox specific markup */ -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; /* webkit specific markup */ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; } .memdoc, dl.reflist dd { border-bottom: 1px solid #A8B8D9; border-left: 1px solid #A8B8D9; border-right: 1px solid #A8B8D9; padding: 6px 10px 2px 10px; background-color: #FBFCFD; border-top-width: 0; background-image:url('nav_g.png'); background-repeat:repeat-x; background-color: #FFFFFF; /* opera specific markup */ border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); /* firefox specific markup */ -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; /* webkit specific markup */ -webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-right-radius: 4px; -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); } dl.reflist dt { padding: 5px; } dl.reflist dd { margin: 0px 0px 10px 0px; padding: 5px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; } .paramname { color: #602020; white-space: nowrap; } .paramname em { font-style: normal; } .paramname code { line-height: 14px; } .params, .retval, .exception, .tparams { margin-left: 0px; padding-left: 0px; } .params .paramname, .retval .paramname { font-weight: bold; vertical-align: top; } .params .paramtype { font-style: italic; vertical-align: top; } .params .paramdir { font-family: "courier new",courier,monospace; vertical-align: top; } table.mlabels { border-spacing: 0px; } td.mlabels-left { width: 100%; padding: 0px; } td.mlabels-right { vertical-align: bottom; padding: 0px; white-space: nowrap; } span.mlabels { margin-left: 8px; } span.mlabel { background-color: #728DC1; border-top:1px solid #5373B4; border-left:1px solid #5373B4; border-right:1px solid #C4CFE5; border-bottom:1px solid #C4CFE5; text-shadow: none; color: white; margin-right: 4px; padding: 2px 3px; border-radius: 3px; font-size: 7pt; white-space: nowrap; vertical-align: middle; } /* @end */ /* these are for tree view inside a (index) page */ div.directory { margin: 10px 0px; border-top: 1px solid #9CAFD4; border-bottom: 1px solid #9CAFD4; width: 100%; } .directory table { border-collapse:collapse; } .directory td { margin: 0px; padding: 0px; vertical-align: top; } .directory td.entry { white-space: nowrap; padding-right: 6px; padding-top: 3px; } .directory td.entry a { outline:none; } .directory td.entry a img { border: none; } .directory td.desc { width: 100%; padding-left: 6px; padding-right: 6px; padding-top: 3px; border-left: 1px solid rgba(0,0,0,0.05); } .directory tr.even { padding-left: 6px; background-color: #F7F8FB; } .directory img { vertical-align: -30%; } .directory .levels { white-space: nowrap; width: 100%; text-align: right; font-size: 9pt; } .directory .levels span { cursor: pointer; padding-left: 2px; padding-right: 2px; color: #3D578C; } .arrow { color: #9CAFD4; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; font-size: 80%; display: inline-block; width: 16px; height: 22px; } .icon { font-family: Arial, Helvetica; font-weight: bold; font-size: 12px; height: 14px; width: 16px; display: inline-block; background-color: #728DC1; color: white; text-align: center; border-radius: 4px; margin-left: 2px; margin-right: 2px; } .icona { width: 24px; height: 22px; display: inline-block; } .iconfopen { width: 24px; height: 18px; margin-bottom: 4px; background-image:url('ftv2folderopen.png'); background-position: 0px -4px; background-repeat: repeat-y; vertical-align:top; display: inline-block; } .iconfclosed { width: 24px; height: 18px; margin-bottom: 4px; background-image:url('ftv2folderclosed.png'); background-position: 0px -4px; background-repeat: repeat-y; vertical-align:top; display: inline-block; } .icondoc { width: 24px; height: 18px; margin-bottom: 4px; background-image:url('ftv2doc.png'); background-position: 0px -4px; background-repeat: repeat-y; vertical-align:top; display: inline-block; } table.directory { font: 400 14px Roboto,sans-serif; } /* @end */ div.dynheader { margin-top: 8px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } address { font-style: normal; color: #2A3D61; } table.doxtable { border-collapse:collapse; margin-top: 4px; margin-bottom: 4px; } table.doxtable td, table.doxtable th { border: 1px solid #2D4068; padding: 3px 7px 2px; } table.doxtable th { background-color: #374F7F; color: #FFFFFF; font-size: 110%; padding-bottom: 4px; padding-top: 5px; } table.fieldtable { /*width: 100%;*/ margin-bottom: 10px; border: 1px solid #A8B8D9; border-spacing: 0px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); } .fieldtable td, .fieldtable th { padding: 3px 7px 2px; } .fieldtable td.fieldtype, .fieldtable td.fieldname { white-space: nowrap; border-right: 1px solid #A8B8D9; border-bottom: 1px solid #A8B8D9; vertical-align: top; } .fieldtable td.fieldname { padding-top: 3px; } .fieldtable td.fielddoc { border-bottom: 1px solid #A8B8D9; /*width: 100%;*/ } .fieldtable td.fielddoc p:first-child { margin-top: 0px; } .fieldtable td.fielddoc p:last-child { margin-bottom: 2px; } .fieldtable tr:last-child td { border-bottom: none; } .fieldtable th { background-image:url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E8F2; font-size: 90%; color: #253555; padding-bottom: 4px; padding-top: 5px; text-align:left; -moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom: 1px solid #A8B8D9; } .tabsearch { top: 0px; left: 10px; height: 36px; background-image: url('tab_b.png'); z-index: 101; overflow: hidden; font-size: 13px; } .navpath ul { font-size: 11px; background-image:url('tab_b.png'); background-repeat:repeat-x; background-position: 0 -5px; height:30px; line-height:30px; color:#8AA0CC; border:solid 1px #C2CDE4; overflow:hidden; margin:0px; padding:0px; } .navpath li { list-style-type:none; float:left; padding-left:10px; padding-right:15px; background-image:url('bc_s.png'); background-repeat:no-repeat; background-position:right; color:#364D7C; } .navpath li.navelem a { height:32px; display:block; text-decoration: none; outline: none; color: #283A5D; font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); text-decoration: none; } .navpath li.navelem a:hover { color:#6884BD; } .navpath li.footer { list-style-type:none; float:right; padding-left:10px; padding-right:15px; background-image:none; background-repeat:no-repeat; background-position:right; color:#364D7C; font-size: 8pt; } div.summary { float: right; font-size: 8pt; padding-right: 5px; width: 50%; text-align: right; } div.summary a { white-space: nowrap; } div.ingroups { font-size: 8pt; width: 50%; text-align: left; } div.ingroups a { white-space: nowrap; } div.header { background-image:url('nav_h.png'); background-repeat:repeat-x; background-color: #F9FAFC; margin: 0px; border-bottom: 1px solid #C4CFE5; } div.headertitle { padding: 5px 5px 5px 10px; } dl { padding: 0 0 0 10px; } /* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */ dl.section { margin-left: 0px; padding-left: 0px; } dl.note { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #D0C000; } dl.warning, dl.attention { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #FF0000; } dl.pre, dl.post, dl.invariant { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #00D000; } dl.deprecated { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #505050; } dl.todo { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #00C0E0; } dl.test { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #3030E0; } dl.bug { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #C08050; } dl.section dd { margin-bottom: 6px; } #projectlogo { text-align: center; vertical-align: bottom; border-collapse: separate; } #projectlogo img { border: 0px none; } #projectname { font: 300% Tahoma, Arial,sans-serif; margin: 0px; padding: 2px 0px; } #projectbrief { font: 120% Tahoma, Arial,sans-serif; margin: 0px; padding: 0px; } #projectnumber { font: 50% Tahoma, Arial,sans-serif; margin: 0px; padding: 0px; } #titlearea { padding: 0px; margin: 0px; width: 100%; border-bottom: 1px solid #5373B4; } .image { text-align: center; } .dotgraph { text-align: center; } .mscgraph { text-align: center; } .diagraph { text-align: center; } .caption { font-weight: bold; } div.zoom { border: 1px solid #90A5CE; } dl.citelist { margin-bottom:50px; } dl.citelist dt { color:#334975; float:left; font-weight:bold; margin-right:10px; padding:5px; } dl.citelist dd { margin:2px 0; padding:5px 0; } div.toc { padding: 14px 25px; background-color: #F4F6FA; border: 1px solid #D8DFEE; border-radius: 7px 7px 7px 7px; float: right; height: auto; margin: 0 20px 10px 10px; width: 200px; } div.toc li { background: url("bdwn.png") no-repeat scroll 0 5px transparent; font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; margin-top: 5px; padding-left: 10px; padding-top: 2px; } div.toc h3 { font: bold 12px/1.2 Arial,FreeSans,sans-serif; color: #4665A2; border-bottom: 0 none; margin: 0; } div.toc ul { list-style: none outside none; border: medium none; padding: 0px; } div.toc li.level1 { margin-left: 0px; } div.toc li.level2 { margin-left: 15px; } div.toc li.level3 { margin-left: 30px; } div.toc li.level4 { margin-left: 45px; } .inherit_header { font-weight: bold; color: gray; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .inherit_header td { padding: 6px 0px 2px 5px; } .inherit { display: none; } tr.heading h2 { margin-top: 12px; margin-bottom: 4px; } /* tooltip related style info */ .ttc { position: absolute; display: none; } #powerTip { cursor: default; white-space: nowrap; background-color: white; border: 1px solid gray; border-radius: 4px 4px 4px 4px; box-shadow: 1px 1px 7px gray; display: none; font-size: smaller; max-width: 80%; opacity: 0.9; padding: 1ex 1em 1em; position: absolute; z-index: 2147483647; } #powerTip div.ttdoc { color: grey; font-style: italic; } #powerTip div.ttname a { font-weight: bold; } #powerTip div.ttname { font-weight: bold; } #powerTip div.ttdeci { color: #006318; } #powerTip div { margin: 0px; padding: 0px; font: 12px/16px Roboto,sans-serif; } #powerTip:before, #powerTip:after { content: ""; position: absolute; margin: 0px; } #powerTip.n:after, #powerTip.n:before, #powerTip.s:after, #powerTip.s:before, #powerTip.w:after, #powerTip.w:before, #powerTip.e:after, #powerTip.e:before, #powerTip.ne:after, #powerTip.ne:before, #powerTip.se:after, #powerTip.se:before, #powerTip.nw:after, #powerTip.nw:before, #powerTip.sw:after, #powerTip.sw:before { border: solid transparent; content: " "; height: 0; width: 0; position: absolute; } #powerTip.n:after, #powerTip.s:after, #powerTip.w:after, #powerTip.e:after, #powerTip.nw:after, #powerTip.ne:after, #powerTip.sw:after, #powerTip.se:after { border-color: rgba(255, 255, 255, 0); } #powerTip.n:before, #powerTip.s:before, #powerTip.w:before, #powerTip.e:before, #powerTip.nw:before, #powerTip.ne:before, #powerTip.sw:before, #powerTip.se:before { border-color: rgba(128, 128, 128, 0); } #powerTip.n:after, #powerTip.n:before, #powerTip.ne:after, #powerTip.ne:before, #powerTip.nw:after, #powerTip.nw:before { top: 100%; } #powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { border-top-color: #ffffff; border-width: 10px; margin: 0px -10px; } #powerTip.n:before { border-top-color: #808080; border-width: 11px; margin: 0px -11px; } #powerTip.n:after, #powerTip.n:before { left: 50%; } #powerTip.nw:after, #powerTip.nw:before { right: 14px; } #powerTip.ne:after, #powerTip.ne:before { left: 14px; } #powerTip.s:after, #powerTip.s:before, #powerTip.se:after, #powerTip.se:before, #powerTip.sw:after, #powerTip.sw:before { bottom: 100%; } #powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { border-bottom-color: #ffffff; border-width: 10px; margin: 0px -10px; } #powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { border-bottom-color: #808080; border-width: 11px; margin: 0px -11px; } #powerTip.s:after, #powerTip.s:before { left: 50%; } #powerTip.sw:after, #powerTip.sw:before { right: 14px; } #powerTip.se:after, #powerTip.se:before { left: 14px; } #powerTip.e:after, #powerTip.e:before { left: 100%; } #powerTip.e:after { border-left-color: #ffffff; border-width: 10px; top: 50%; margin-top: -10px; } #powerTip.e:before { border-left-color: #808080; border-width: 11px; top: 50%; margin-top: -11px; } #powerTip.w:after, #powerTip.w:before { right: 100%; } #powerTip.w:after { border-right-color: #ffffff; border-width: 10px; top: 50%; margin-top: -10px; } #powerTip.w:before { border-right-color: #808080; border-width: 11px; top: 50%; margin-top: -11px; } @media print { #top { display: none; } #side-nav { display: none; } #nav-path { display: none; } body { overflow:visible; } h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } .summary { display: none; } .memitem { page-break-inside: avoid; } #doc-content { margin-left:0 !important; height:auto !important; width:auto !important; overflow:inherit; display:inline; } } mailfilter-0.8.4/doc/api/html/protocol_8hh.html0000644000175000017500000001213512675277621016375 00000000000000 mailfilter: protocol.hh File Reference
protocol.hh File Reference
#include "connection.hh"

Go to the source code of this file.

Classes

class  Protocol
 

Macros

#define PROTOCOL_POP3   2
 
#define PROTOCOL_APOP   4
 
#define SSL_C   4096
 

Macro Definition Documentation

#define PROTOCOL_APOP   4
#define PROTOCOL_POP3   2
#define SSL_C   4096
mailfilter-0.8.4/doc/api/html/structMD5__CTX.html0000644000175000017500000001113112675277621016467 00000000000000 mailfilter: MD5_CTX Struct Reference
MD5_CTX Struct Reference

#include <md5.h>

Public Attributes

uint32_t state [4]
 
uint32_t count [2]
 
unsigned char buffer [64]
 

Member Data Documentation

unsigned char MD5_CTX::buffer[64]
uint32_t MD5_CTX::count[2]
uint32_t MD5_CTX::state[4]

The documentation for this struct was generated from the following file:
mailfilter-0.8.4/doc/api/html/ftv2mlastnode.png0000644000175000017500000000036612675277621016400 00000000000000PNG  IHDRɪ|IDATx!NA\ Um@`5i`h W7] b&ofdY4 c 3v=]\B I=BB;k WN@vy4]Y|M}]x6a }dׇY>||5?>|B"'IENDB`mailfilter-0.8.4/doc/api/html/classProtocol.png0000644000175000017500000000067512675277621016442 00000000000000PNG  IHDR;ncZPLTEutRNST2LIDATxᎃ oVRWK-qBZw.i&%ɧrW$qUb|t[lROgN2\/tC6 nvWܗyN c> ]3&̬ &I]|ctnJQtynp[uw3 iw$I>53͋)1ܛ-_q?d> c> ]3&̬ &I] 7tQ9t,>p=u %{oJʭr[YRnn_I*߂$xS̬(hlIENDB`mailfilter-0.8.4/doc/api/html/mailfilter_8hh_source.html0000644000175000017500000002303512675277621020245 00000000000000 mailfilter: mailfilter.hh Source File
mailfilter.hh
Go to the documentation of this file.
1 // mailfilter.hh - source file for the mailfilter program
2 // Copyright (c) 2000 - 2012 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef MAILFILTER_HH
20 #define MAILFILTER_HH
21 
22 #include <iostream>
23 
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27 
28 using namespace std;
29 
30 // Mailfilter's command line options and arguments.
31 
32 #define VALUE_HELP 1
33 #define VALUE_VERBOSE 2
34 #define VALUE_MAILFILTERRC 3
35 #define VALUE_LOGFILE 4
36 #define VALUE_VERSION 5
37 #define VALUE_TEST 6
38 #define VALUE_RETURN 7
39 #define VALUE_TIMESTAMP 8
40 
41 #define ERROR_MSG(msg) \
42  cerr << PACKAGE_NAME \
43  << ": Error: " \
44  << msg \
45  << endl
46 
47 #endif
mailfilter-0.8.4/doc/api/html/feedback_8cc.html0000644000175000017500000000505512675277621016251 00000000000000 mailfilter: feedback.cc File Reference
feedback.cc File Reference
#include <iostream>
#include <string>
#include <cstring>
#include <fstream>
#include "feedback.hh"
#include "preferences.hh"
mailfilter-0.8.4/doc/api/html/preferences_8hh_source.html0000644000175000017500000012167512675277621020427 00000000000000 mailfilter: preferences.hh Source File
preferences.hh
Go to the documentation of this file.
1 // preferences.hh - source file for the mailfilter program
2 // Copyright (c) 2000 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef PREFERENCES_HH
20 #define PREFERENCES_HH
21 
22 #include <string>
23 #include <vector>
24 #include <fstream>
25 #include "defines.hh"
26 #include "socket.hh"
27 #include "filter.hh"
28 #include "score.hh"
29 #include "account.hh"
30 
31 using namespace std;
32 
34 {
35 protected:
36  ifstream prefs_stream;
37  vector<Filter> allows;
38  vector<Filter> denies;
39  vector<Score> scores;
40  vector<Account> accnts;
43  string log_file_name;
45  int icase;
46  bool norm;
47  bool test;
50  bool ret_status;
53  unsigned time_out_val;
54  int max_size;
58  int rreg_type;
59  int verbosity;
60  int conn_type;
64  // These flags indicate whether a value was already set, or
65  // whether it's still set to the default values defined by the
66  // constructor.
69 public:
70  Preferences ();
71  static Preferences&
72  Instance ();
73  void init (void);
74  void kill (void);
75  bool open (const char*);
76  bool load (void);
77  void add_deny_rule (const char*,
78  const char*,
79  const char*);
80  void add_allow_rule (const char*,
81  const char*,
82  const char*);
83  void add_score (const char*,
84  int,
85  const char*,
86  const char*);
87  int neg_allows (void);
88  int neg_denies (void);
89  void set_rc_file (const char*);
90  string rc_file (void);
91  void set_log_file (const char*);
92  string log_file (void);
93  void set_verbose_level (int);
94  int verbose_level (void);
95  void set_headers_file (const char*);
96  string headers_file (void);
97  void set_default_case (const char*);
98  int default_case (void);
99  void set_reg_type (const char*);
100  int reg_type (void);
101  void set_server (const char*);
102  void set_usr (const char*);
103  void set_passwd (const char*);
104  void set_protocol (const char*);
105  void set_connection (unsigned int = POSIX_SOCKETS)
106  __attribute__ ((unused));
107  void set_port (unsigned int);
108  unsigned int time_out (void);
109  void set_time_out (unsigned int);
110  bool delete_duplicates (void);
111  void set_del_duplicates(const char*);
112  int max_size_allow (void);
113  void set_max_size_allow(int);
114  int max_size_deny (void);
115  void set_max_size_deny (int);
116  Size_score max_size_score (void);
117  void set_max_size_score(int, int);
118  int highscore (void);
119  void set_highscore (int);
120  bool normal (void);
121  void set_normal (const char*);
122  bool test_mode (void);
123  void set_test_mode (const char*);
124  int maxlength (void);
125  void set_maxlength (int);
126  bool ignore_time_stamp ();
127  void set_ignore_time_stamp (bool = true);
128  bool return_status (void);
129  void set_return_status (bool);
130  vector<Account>* accounts (void);
131  vector<Filter>* allow_filters (void);
132  vector<Filter>* deny_filters (void);
133  vector<Score>* score_filters (void);
134 };
135 
136 #endif
int negative_scores
Definition: preferences.hh:63
vector< Account > accnts
Definition: preferences.hh:40
bool test_changed
Definition: preferences.hh:68
int max_line_length
Definition: preferences.hh:57
int max_size
Definition: preferences.hh:54
bool _ignore_time_stamp
Definition: preferences.hh:51
Account cur_account
Definition: preferences.hh:41
bool verbosity_changed
Definition: preferences.hh:67
string log_file_name
Definition: preferences.hh:43
vector< Filter > denies
Definition: preferences.hh:38
ifstream prefs_stream
Definition: preferences.hh:36
int negative_denies
Definition: preferences.hh:62
#define const
Definition: getopt.c:38
Definition: filter.hh:35
Definition: score.hh:33
int conn_type
Definition: preferences.hh:60
vector< Filter > allows
Definition: preferences.hh:37
int negative_allows
Definition: preferences.hh:61
int max_size_friends
Definition: preferences.hh:56
int verbosity
Definition: preferences.hh:59
int rreg_type
Definition: preferences.hh:58
string prefs_file_name
Definition: preferences.hh:42
bool norm
Definition: preferences.hh:46
bool del_duplicates
Definition: preferences.hh:49
bool show_headers
Definition: preferences.hh:48
bool ret_status
Definition: preferences.hh:50
Size_score size_score
Definition: preferences.hh:55
bool test
Definition: preferences.hh:47
Definition: account.hh:32
string headers_file_name
Definition: preferences.hh:44
unsigned time_out_val
Definition: preferences.hh:53
Definition: preferences.hh:33
int high_score
Definition: preferences.hh:52
vector< Score > scores
Definition: preferences.hh:39
Definition: score.hh:26
int icase
Definition: preferences.hh:45
mailfilter-0.8.4/doc/api/html/nav_g.png0000644000175000017500000000013712675277621014676 00000000000000PNG  IHDR1&IDATx1 OHf_ ->~M iMS<IENDB`mailfilter-0.8.4/doc/api/html/classConnection.png0000644000175000017500000000063012675277621016727 00000000000000PNG  IHDRLP]cPLTEutRNST2'IDATxQ *ٝMCgr9!%& `L,juXZ ; u(d*dXR:Nԅ4{ۼ;X>g{H^Ӽ| BIx,4O¾8 Ԅi4ac01MXyuI&LԀJu΋QVz뼽 s `xq XR Kpm]? svN3b4%i\&Ic 2IENDB`mailfilter-0.8.4/doc/api/html/classPOP3.png0000644000175000017500000000067212675277621015357 00000000000000PNG  IHDR;ncZPLTEutRNST2IIDATxᎃ o[OR.YbYLB|CҺUn>yUC)Dp;w/'l\Og%$ݕ$/tb\p!._pjX⾬p]]覔R@owhnvs6G4󼺕T5}pվܲj;nJ)h0 ] W܏4..C̬`fMS?K44K|syK{ʩTZΥݲ M]37ޒIENDB`mailfilter-0.8.4/doc/api/html/ftv2link.png0000644000175000017500000000135212675277621015343 00000000000000PNG  IHDR}\IDATxMOS[sa?-XZ(PD4 AWbu`b 77wHFCԁ/`voAPqP@ 980 +y^Z9SW\83g3'Nçl_bpV"ֆXd]3xM[1W *PGz/Eg{ aoV:这1$RW,@56-,m/蹖 r5T*S(Vf89u գwa=<{ҡUr+dDF$`zNܮ0Q3~_^N=vpTLT}kqm<?ZhX_ݥ[) `ga_*2`'=F2EP l=8Wv%THqɿ<"GxH{#֫aJmKsVءM^ T ݛr߽m_?Wİ#uIENDB`mailfilter-0.8.4/doc/api/html/md5c_8c.html0000644000175000017500000010341012675277621015204 00000000000000 mailfilter: md5c.c File Reference
md5c.c File Reference
#include "md5.h"

Macros

#define S11   7
 
#define S12   12
 
#define S13   17
 
#define S14   22
 
#define S21   5
 
#define S22   9
 
#define S23   14
 
#define S24   20
 
#define S31   4
 
#define S32   11
 
#define S33   16
 
#define S34   23
 
#define S41   6
 
#define S42   10
 
#define S43   15
 
#define S44   21
 
#define F(x, y, z)   (((x) & (y)) | ((~x) & (z)))
 
#define G(x, y, z)   (((x) & (z)) | ((y) & (~z)))
 
#define H(x, y, z)   ((x) ^ (y) ^ (z))
 
#define I(x, y, z)   ((y) ^ ((x) | (~z)))
 
#define ROTATE_LEFT(x, n)   (((x) << (n)) | ((x) >> (32-(n))))
 
#define FF(a, b, c, d, x, s, ac)
 
#define GG(a, b, c, d, x, s, ac)
 
#define HH(a, b, c, d, x, s, ac)
 
#define II(a, b, c, d, x, s, ac)
 

Functions

void MD5Init (MD5_CTX *context)
 
void MD5Update (MD5_CTX *context, unsigned char *input, unsigned int inputLen)
 
void MD5Final (digest, MD5_CTX *context)
 

Macro Definition Documentation

#define F (   x,
  y,
 
)    (((x) & (y)) | ((~x) & (z)))
#define FF (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5c.c:69
#define F(x, y, z)
Definition: md5c.c:62
#define G (   x,
  y,
 
)    (((x) & (z)) | ((y) & (~z)))
#define GG (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5c.c:69
#define G(x, y, z)
Definition: md5c.c:63
#define H (   x,
  y,
 
)    ((x) ^ (y) ^ (z))
#define HH (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5c.c:69
#define H(x, y, z)
Definition: md5c.c:64
#define I (   x,
  y,
 
)    ((y) ^ ((x) | (~z)))
#define II (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
{ \
(a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
(a) = ROTATE_LEFT ((a), (s)); \
(a) += (b); \
}
#define ROTATE_LEFT(x, n)
Definition: md5c.c:69
#define I(x, y, z)
Definition: md5c.c:65
#define ROTATE_LEFT (   x,
 
)    (((x) << (n)) | ((x) >> (32-(n))))
#define S11   7
#define S12   12
#define S13   17
#define S14   22
#define S21   5
#define S22   9
#define S23   14
#define S24   20
#define S31   4
#define S32   11
#define S33   16
#define S34   23
#define S41   6
#define S42   10
#define S43   15
#define S44   21

Function Documentation

void MD5Final ( digest  ,
MD5_CTX context 
)
void MD5Init ( MD5_CTX context)
void MD5Update ( MD5_CTX context,
unsigned char *  input,
unsigned int  inputLen 
)
mailfilter-0.8.4/doc/api/html/classSocket-members.html0000644000175000017500000001046212675277621017674 00000000000000 mailfilter: Member List
Socket Member List

This is the complete list of members for Socket, including all inherited members.

c_close(void) const Socketvirtual
c_open(const char *host, int port, int time_out, int protocol)Socketvirtual
c_read(bool=false)Socketvirtual
c_reply(void) const Socketvirtual
c_write(const char *command)Socketvirtual
clear(void)Socket
Socket(void)Socket
~Connection(void)Connectioninlinevirtual
mailfilter-0.8.4/doc/api/html/classScore.html0000644000175000017500000002523012675277621016066 00000000000000 mailfilter: Score Class Reference

#include <score.hh>

Inheritance diagram for Score:
Filter

Public Member Functions

int score (void) const
 
void set_score (int)
 
- Public Member Functions inherited from Filter
 Filter (void)
 
 ~Filter (void)
 
string expression (void) const
 
void set_expression (const char *)
 
int compile (void)
 
void set_negativity (bool)
 
bool is_negative (void) const
 
int ccase (void) const
 
void set_case (int)
 
const regex_t * comp_exp (void) const
 

Protected Attributes

int scr
 

Member Function Documentation

int Score::score ( void  ) const
void Score::set_score ( int  )

Member Data Documentation

int Score::scr
protected

The documentation for this class was generated from the following file:
mailfilter-0.8.4/doc/api/html/ftv2splitbar.png0000644000175000017500000000047212675277621016230 00000000000000PNG  IHDRMIDATxݡJCa( %4 bȘͶ3v^EL ,b;{Ï/aYկq:\IIIIIIIIIIIIIIIIII-l揊_t/ϻYQVYivk_ۣI@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$I@$C[V=[fIENDB`mailfilter-0.8.4/doc/api/html/classAPOP.png0000644000175000017500000000066612675277621015400 00000000000000PNG  IHDR;ncZPLTEutRNST2EIDATxᎃ o"ֺw0_̂`c4֭w޹jםYMԝ mailfilter: protocol.hh Source File
protocol.hh
Go to the documentation of this file.
1 // protocol.hh - source file for the mailfilter program
2 // Copyright (c) 2003 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef PROTOCOL_HH
20 #define PROTOCOL_HH
21 
22 #include "connection.hh"
23 
24 // This is useful to specify a combination of protocol and encryption,
25 // e.g. PROTOCOL_POP3 | SSL.
26 #define PROTOCOL_POP3 2
27 #define PROTOCOL_APOP 4
28 #define SSL_C 4096
29 
30 using namespace std;
31 
32 class Protocol
33 {
34 protected:
36  unsigned int prot_ident;
37  unsigned int connect_type;
38 
39 public:
40  virtual ~Protocol (void) { };
41  virtual bool login (const char* usr,
42  const char* pass,
43  const unsigned int) const = 0;
44  virtual bool logout (void) const = 0;
45  virtual int remove_msg (const unsigned int num) const = 0;
46  virtual int status (void) const = 0;
47  virtual int scan (void) const = 0;
48  void set_connection (Connection*);
49  void set_ident (unsigned int);
50  unsigned int ident (void) const;
51 };
52 
53 #endif
unsigned int prot_ident
Definition: protocol.hh:36
virtual ~Protocol(void)
Definition: protocol.hh:40
Connection * conn
Definition: protocol.hh:35
unsigned int connect_type
Definition: protocol.hh:37
Definition: protocol.hh:32
Definition: connection.hh:29
mailfilter-0.8.4/doc/api/html/getopt_8c.html0000644000175000017500000004274312675277621015671 00000000000000 mailfilter: getopt.c File Reference
getopt.c File Reference
#include <stdio.h>
#include "getopt.h"
#include <strings.h>

Macros

#define _NO_PROTO
 
#define const
 
#define GETOPT_INTERFACE_VERSION   2
 
#define _(msgid)   (msgid)
 
#define SWAP_FLAGS(ch1, ch2)
 
#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
 

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }
 

Functions

char * getenv ()
 
int _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only)
 
int getopt (int argc, char *const *argv, const char *optstring)
 

Variables

char * optarg
 
int optind = 1
 
int __getopt_initialized
 
int opterr = 1
 
int optopt = '?'
 

Macro Definition Documentation

#define _ (   msgid)    (msgid)
#define _NO_PROTO
#define const
#define GETOPT_INTERFACE_VERSION   2
#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
#define SWAP_FLAGS (   ch1,
  ch2 
)

Enumeration Type Documentation

anonymous enum
Enumerator
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Function Documentation

int _getopt_internal ( int  argc,
char *const argv,
const char *  optstring,
const struct option longopts,
int *  longind,
int  long_only 
)
char* getenv ( )
int getopt ( int  argc,
char *const argv,
const char *  optstring 
)

Variable Documentation

int __getopt_initialized
char* optarg
int opterr = 1
int optind = 1
int optopt = '?'
mailfilter-0.8.4/doc/api/html/doxygen.png0000644000175000017500000000730312675277621015263 00000000000000PNG  IHDRh ;IDATx]y\պ~45%TL QPE"q11]8aw*(*" z`8 m,p$%B(8k6lk[߷;?kPx'tz3_Q4g@m ci{~4:Hc'PP7^h zbcP 3}OqNkT(?d ~z<4ǡ؞vz٦Zd,6k]Fz< Zs?sU2Sw1c`[}%ѽ.Լ6BLZ!F8[ T #g]:vu?vbR?wgb$kF~;عƕX?lNʪ,HCgAzlӺg ]jM3oҳ'=$f}GS_co.ȹ:ds:1={9?zqviDp moaEqҵw}~{j{ºFNë[OqOSXO]>muľe5{Jկ(bl}`UyacCAklysA7oJ .Be. Z'-PyF.lp&.j7rez19HG%qz׈c_k_")HJn~֘5 q5#+9T Rܸrzϴ̝ =υ{áOfwg|/$;֙ƭ]W"/< DఽB}yIEc^=[VhM$l];Kr¦* t$]M;I1!M (f<5~z mՠ>کIz;u[ie^ӳNF6B\}7+,'a -yHY,^f~?Hc{Z+4\sٷnߣFơsغD?<vkx0MlذIxdEEAMg*YE7ۙ^[uv[wG=Edn׶l'pGk+C82 dz3H BS[wŘ ~xptmţiQ歉AB1fى4uI]6% 1t.NJphz̠R1"3-"&1[:N mW0_œ 6&)ꦬ}~{m]zMP~^:eQT_*798ˍ 347E¿uSɻU_ NWeNӏ|;;d"ȉ޵ᆴ"ĴMM+bY_E]PXKНIޥoE<_(EP|m,өZߺk,kM`jzeU t36˷r}w:Χ |TܵQK_pໃYd0!a –W$$/\$ 2mLH dHV,:RZJaz*>_NT(‚^SVFU8E܈nd;8\C]=m:bDd=ߞUU5O|]Pv\]2"y[yzg{Y{Ù5;w{N3nĨwKݭ29Id y)P8ũ@mPwjl,6 hWd ump.DžtwR xBδYcxg*vo y򑕓[?V0NO난~󒯷h#Hk8kӍ^q@]ӓ,56-κUn[>]@nϜp[6# 4tn:}8T9_Y$/GK(ђM`dѺ;OB &P{qhJ+閧l2M_1ӫtlya L^y.۽[ u/]iS}N>e1qjf&iT\=kϛX-.84V5u!TE .OH4zwTr. xքHHg hT$yqzp< qrwI]I鲘s":ՖbզL69VW<;3?M3AV#ޯKUr9!qtH+6V/TS^pqgLP'5E ޺ n"2|;W"֬TwtO' +W+Z̖<&nO,I06.Z.h*INڒOegBXZ9hDSʍ A/c`A"z|ş;H#|%OOD mcƤqmu&~n πZj =_n[nN$_bE)8?6l}#bW( d-p&a"9ņ$ڛA!;{~8ޣ10`#kuN Qbh 8Mawhq(bK Z%m֍(J)@> 7% {y ohf>{p.­_%glZ\B2B #Һphݚ[<#SpA7Ht4:|gtL*($Ʃ$;b`=MM5ǾHH.HeA5}rd)T};Q5i2O00;,냔}g]79_{C>h{.II?[Kswz6u;OJa˶zvd l舊yc'rTWӰL |ʽhB T'ò]K(=Kx  L,Pʵu׈ž1ݫ;pGDxZY kf676oھH~޸ 8Up6(? K+?%ݷ/19U?B)l @=ޞkIENDB`mailfilter-0.8.4/doc/api/html/classFeedback.html0000644000175000017500000002236712675277621016507 00000000000000 mailfilter: Feedback Class Reference

#include <feedback.hh>

Public Member Functions

 ~Feedback (void)
 
bool open (const char *)
 
bool print_msg (const string, int)
 
bool print_err (const string, int=1)
 
bool print_header (const string)
 

Static Public Member Functions

static FeedbackInstance (void)
 

Constructor & Destructor Documentation

Feedback::~Feedback ( void  )

Member Function Documentation

Feedback * Feedback::Instance ( void  )
static
bool Feedback::open ( const char *  name)
bool Feedback::print_err ( const string  msg,
int  min_verbose_level = 1 
)
bool Feedback::print_header ( const string  msg)
bool Feedback::print_msg ( const string  msg,
int  min_verbose_level 
)

The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/open.png0000644000175000017500000000017312675277621014545 00000000000000PNG  IHDR BIDATx 0 ׬ՙ\39b!9{|I>$#ߴ8/z/>2[giU,/~\ 9ٸIENDB`mailfilter-0.8.4/doc/api/html/classPOP3.html0000644000175000017500000003364712675277621015547 00000000000000 mailfilter: POP3 Class Reference

#include <pop3.hh>

Inheritance diagram for POP3:
Protocol APOP

Public Member Functions

bool login (const char *, const char *, const unsigned int) const
 
bool logout (void) const
 
int remove_msg (const unsigned int) const
 
int status (void) const
 
int scan (void) const
 
- Public Member Functions inherited from Protocol
virtual ~Protocol (void)
 
void set_connection (Connection *)
 
void set_ident (unsigned int)
 
unsigned int ident (void) const
 

Additional Inherited Members

- Protected Attributes inherited from Protocol
Connectionconn
 
unsigned int prot_ident
 
unsigned int connect_type
 

Member Function Documentation

bool POP3::login ( const char *  usr,
const char *  pass,
const unsigned int  enc 
) const
virtual

Implements Protocol.

Reimplemented in APOP.

bool POP3::logout ( void  ) const
virtual

Implements Protocol.

int POP3::remove_msg ( const unsigned int  num) const
virtual

Implements Protocol.

int POP3::scan ( void  ) const
virtual

Implements Protocol.

int POP3::status ( void  ) const
virtual

Implements Protocol.


The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/sync_on.png0000644000175000017500000000151512675277621015255 00000000000000PNG  IHDRw=IDATx_HTY8i4-g6&kQ)!0URKڅ/PE>K-+K.YdEPaAZSܝ;3wgfsWK.Da'q_k DQCg 0Y:qZ)~L0HV z-C%g68%wUϿ }? ?3 K@h aaUe s~2&&B*Alji*˨,oƣT,d[3-*> LɟfkҠw#*AEjKUy>&{8m5Ki jjD*Nigw7DmzK۾M!k?o_lX#~XӑR*EՂדE;6e"Q(=Ezæ5Kؼָ_ 1zBJ X96jL^7{J1i@%8'7M_\Q#Uy Wo x8sv|Sn q_m >b[JX,4[T{Ratjjzz'ȶiIws KC^Y%6ꈺ]vhiWvh'̂|[^YrD= mailfilter: Preferences Class Reference

#include <preferences.hh>

Public Member Functions

 Preferences ()
 
void init (void)
 
void kill (void)
 
bool open (const char *)
 
bool load (void)
 
void add_deny_rule (const char *, const char *, const char *)
 
void add_allow_rule (const char *, const char *, const char *)
 
void add_score (const char *, int, const char *, const char *)
 
int neg_allows (void)
 
int neg_denies (void)
 
void set_rc_file (const char *)
 
string rc_file (void)
 
void set_log_file (const char *)
 
string log_file (void)
 
void set_verbose_level (int)
 
int verbose_level (void)
 
void set_headers_file (const char *)
 
string headers_file (void)
 
void set_default_case (const char *)
 
int default_case (void)
 
void set_reg_type (const char *)
 
int reg_type (void)
 
void set_server (const char *)
 
void set_usr (const char *)
 
void set_passwd (const char *)
 
void set_protocol (const char *)
 
void set_connection (unsigned int=POSIX_SOCKETS) __attribute__((unused))
 
void set_port (unsigned int)
 
unsigned int time_out (void)
 
void set_time_out (unsigned int)
 
bool delete_duplicates (void)
 
void set_del_duplicates (const char *)
 
int max_size_allow (void)
 
void set_max_size_allow (int)
 
int max_size_deny (void)
 
void set_max_size_deny (int)
 
Size_score max_size_score (void)
 
void set_max_size_score (int, int)
 
int highscore (void)
 
void set_highscore (int)
 
bool normal (void)
 
void set_normal (const char *)
 
bool test_mode (void)
 
void set_test_mode (const char *)
 
int maxlength (void)
 
void set_maxlength (int)
 
bool ignore_time_stamp ()
 
void set_ignore_time_stamp (bool=true)
 
bool return_status (void)
 
void set_return_status (bool)
 
vector< Account > * accounts (void)
 
vector< Filter > * allow_filters (void)
 
vector< Filter > * deny_filters (void)
 
vector< Score > * score_filters (void)
 

Static Public Member Functions

static PreferencesInstance ()
 

Protected Attributes

ifstream prefs_stream
 
vector< Filterallows
 
vector< Filterdenies
 
vector< Scorescores
 
vector< Accountaccnts
 
Account cur_account
 
string prefs_file_name
 
string log_file_name
 
string headers_file_name
 
int icase
 
bool norm
 
bool test
 
bool show_headers
 
bool del_duplicates
 
bool ret_status
 
bool _ignore_time_stamp
 
int high_score
 
unsigned time_out_val
 
int max_size
 
Size_score size_score
 
int max_size_friends
 
int max_line_length
 
int rreg_type
 
int verbosity
 
int conn_type
 
int negative_allows
 
int negative_denies
 
int negative_scores
 
bool verbosity_changed
 
bool test_changed
 

Constructor & Destructor Documentation

Preferences::Preferences ( )

Member Function Documentation

vector< Account > * Preferences::accounts ( void  )
void Preferences::add_allow_rule ( const char *  keyword,
const char *  operat,
const char *  id 
)
void Preferences::add_deny_rule ( const char *  keyword,
const char *  operat,
const char *  id 
)
void Preferences::add_score ( const char *  keyword,
int  given_score,
const char *  operat,
const char *  id 
)
vector< Filter > * Preferences::allow_filters ( void  )
int Preferences::default_case ( void  )
bool Preferences::delete_duplicates ( void  )
vector< Filter > * Preferences::deny_filters ( void  )
string Preferences::headers_file ( void  )
int Preferences::highscore ( void  )
bool Preferences::ignore_time_stamp ( )
void Preferences::init ( void  )
Preferences & Preferences::Instance ( )
static
void Preferences::kill ( void  )
bool Preferences::load ( void  )
string Preferences::log_file ( void  )
int Preferences::max_size_allow ( void  )
int Preferences::max_size_deny ( void  )
Size_score Preferences::max_size_score ( void  )
int Preferences::maxlength ( void  )
int Preferences::neg_allows ( void  )
int Preferences::neg_denies ( void  )
bool Preferences::normal ( void  )
bool Preferences::open ( const char *  name)
string Preferences::rc_file ( void  )
int Preferences::reg_type ( void  )
bool Preferences::return_status ( void  )
vector< Score > * Preferences::score_filters ( void  )
void Preferences::set_connection ( unsigned int  p = POSIX_SOCKETS)
void Preferences::set_default_case ( const char *  new_case)
void Preferences::set_del_duplicates ( const char *  del)
void Preferences::set_headers_file ( const char *  name)
void Preferences::set_highscore ( int  val)
void Preferences::set_ignore_time_stamp ( bool  new_ts = true)
void Preferences::set_log_file ( const char *  name)
void Preferences::set_max_size_allow ( int  val)
void Preferences::set_max_size_deny ( int  val)
void Preferences::set_max_size_score ( int  score,
int  size 
)
void Preferences::set_maxlength ( int  val)
void Preferences::set_normal ( const char *  par)
void Preferences::set_passwd ( const char *  pass)
void Preferences::set_port ( unsigned int  p)
void Preferences::set_protocol ( const char *  prot)
void Preferences::set_rc_file ( const char *  name)
void Preferences::set_reg_type ( const char *  new_type)
void Preferences::set_return_status ( bool  st)
void Preferences::set_server ( const char *  server)
void Preferences::set_test_mode ( const char *  par)
void Preferences::set_time_out ( unsigned int  val)
void Preferences::set_usr ( const char *  user)
void Preferences::set_verbose_level ( int  level)
bool Preferences::test_mode ( void  )
unsigned int Preferences::time_out ( void  )
int Preferences::verbose_level ( void  )

Member Data Documentation

bool Preferences::_ignore_time_stamp
protected
vector<Account> Preferences::accnts
protected
vector<Filter> Preferences::allows
protected
int Preferences::conn_type
protected
Account Preferences::cur_account
protected
bool Preferences::del_duplicates
protected
vector<Filter> Preferences::denies
protected
string Preferences::headers_file_name
protected
int Preferences::high_score
protected
int Preferences::icase
protected
string Preferences::log_file_name
protected
int Preferences::max_line_length
protected
int Preferences::max_size
protected
int Preferences::max_size_friends
protected
int Preferences::negative_allows
protected
int Preferences::negative_denies
protected
int Preferences::negative_scores
protected
bool Preferences::norm
protected
string Preferences::prefs_file_name
protected
ifstream Preferences::prefs_stream
protected
bool Preferences::ret_status
protected
int Preferences::rreg_type
protected
vector<Score> Preferences::scores
protected
bool Preferences::show_headers
protected
Size_score Preferences::size_score
protected
bool Preferences::test
protected
bool Preferences::test_changed
protected
unsigned Preferences::time_out_val
protected
int Preferences::verbosity
protected
bool Preferences::verbosity_changed
protected

The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/tabs.css0000644000175000017500000000221312675277621014536 00000000000000.tabs, .tabs2, .tabs3 { background-image: url('tab_b.png'); width: 100%; z-index: 101; font-size: 13px; font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; } .tabs2 { font-size: 10px; } .tabs3 { font-size: 9px; } .tablist { margin: 0; padding: 0; display: table; } .tablist li { float: left; display: table-cell; background-image: url('tab_b.png'); line-height: 36px; list-style: none; } .tablist a { display: block; padding: 0 20px; font-weight: bold; background-image:url('tab_s.png'); background-repeat:no-repeat; background-position:right; color: #283A5D; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); text-decoration: none; outline: none; } .tabs3 .tablist a { padding: 0 10px; } .tablist a:hover { background-image: url('tab_h.png'); background-repeat:repeat-x; color: #fff; text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); text-decoration: none; } .tablist li.current a { background-image: url('tab_a.png'); background-repeat:repeat-x; color: #fff; text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); } mailfilter-0.8.4/doc/api/html/files.html0000644000175000017500000002033212675277621015065 00000000000000 mailfilter: File List
File List
mailfilter-0.8.4/doc/api/html/filter_8hh.html0000644000175000017500000001223212675277621016017 00000000000000 mailfilter: filter.hh File Reference
filter.hh File Reference
#include <string>
#include <regex.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

class  Filter
 

Macros

#define CASE_DEFAULT   REG_ICASE
 
#define CASE_SENSITIVE   0
 
#define CASE_INSENSITIVE   REG_ICASE
 

Macro Definition Documentation

#define CASE_DEFAULT   REG_ICASE
#define CASE_INSENSITIVE   REG_ICASE
#define CASE_SENSITIVE   0
mailfilter-0.8.4/doc/api/html/sync_off.png0000644000175000017500000000152512675277621015414 00000000000000PNG  IHDRw=IDATxKhTW1I&38MII3b$c I1V1-(T.* t!K[čf`l(l"Y6gT}sgܹ d{8?̝;u`:!FB?Űm'y>ѝlU_?]Y(N8f1qn-etm 0}b%׌=0?1s08;_ W|%\Zð >舽lnp.a{ )t; b n652?>Oдunm`׭ZWjC~>־0+ {{fMŕټ` ݛ%uA6,]kWu]7ihu1 l Ҷ̺:\cxhRQt$ fd<4B[fd7=.M9//O a},j?.5ښm?X2#d p(?c!a1ޗةܾ7dK:)3],H+ku<|`LhC7e םt H$^2%l.aeÉ|s }D^hz~Rá]|#@חև[k<|(*ݹdtM:,]' X_n| /cfOIENDB`mailfilter-0.8.4/doc/api/html/bc_s.png0000644000175000017500000000124412675277621014512 00000000000000PNG  IHDR_ kIDATxkQϝ̤I&m&156*nąܸR,4 +H(Ub1J.(EmߏhJmKS'C(х & r3g(z&_9}՟@mu ` h`ԯ &~M4%3?h)\Yi>Jb @giވkg\轭EUv+?E"pB\Y&$vM+Dn)}:Xo 3گ'.f0u9Ljf6%3Gf#sm(,k*ʒJJˢou_~ r]%%mnu]zr5[ưXeI mailfilter: Member List
MD5_CTX Member List

This is the complete list of members for MD5_CTX, including all inherited members.

bufferMD5_CTX
countMD5_CTX
stateMD5_CTX
mailfilter-0.8.4/doc/api/html/ftv2doc.png0000644000175000017500000000135212675277621015153 00000000000000PNG  IHDR}\IDATxMOS[sa?-XZ(PD4 AWbu`b 77wHFCԁ/`voAPqP@ 980 +y^Z9SW\83g3'Nçl_bpV"ֆXd]3xM[1W *PGz/Eg{ aoV:这1$RW,@56-,m/蹖 r5T*S(Vf89u գwa=<{ҡUr+dDF$`zNܮ0Q3~_^N=vpTLT}kqm<?ZhX_ݥ[) `ga_*2`'=F2EP l=8Wv%THqɿ<"GxH{#֫aJmKsVءM^ T ݛr߽m_?Wİ#uIENDB`mailfilter-0.8.4/doc/api/html/filter_8hh_source.html0000644000175000017500000002646412675277621017413 00000000000000 mailfilter: filter.hh Source File
filter.hh
Go to the documentation of this file.
1 // filter.hh - source file for the mailfilter program
2 // Copyright (c) 2000 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef FILTER_HH
20 #define FILTER_HH
21 
22 #include <string>
23 extern "C" {
24 #include <regex.h>
25 #include <sys/types.h>
26 }
27 
28 // Filter modes
29 #define CASE_DEFAULT REG_ICASE
30 #define CASE_SENSITIVE 0
31 #define CASE_INSENSITIVE REG_ICASE
32 
33 using namespace std;
34 
35 class Filter
36 {
37 private:
38  string expr;
39  regex_t comp_expr;
40  regex_t comp_normal_expr;
41  // Values can be CASE_SENSITIVE, CASE_INSENSITIVE, or CASE_DEFAULT:
42  int case_sensitivity;
43  bool negativity;
44  bool compiled;
45 
46 public:
47  Filter (void);
48  ~Filter (void);
49  string expression (void) const;
50  void set_expression (const char*);
51  int compile (void);
52  void set_negativity (bool);
53  bool is_negative (void) const;
54  int ccase (void) const;
55  void set_case (int);
56  const regex_t* comp_exp (void) const;
57 };
58 
59 #endif
Definition: filter.hh:35
mailfilter-0.8.4/doc/api/html/classAPOP.html0000644000175000017500000002667312675277621015566 00000000000000 mailfilter: APOP Class Reference

#include <apop.hh>

Inheritance diagram for APOP:
POP3 Protocol

Public Member Functions

bool login (const char *usr, const char *pass, const unsigned int enc) const
 
- Public Member Functions inherited from POP3
bool logout (void) const
 
int remove_msg (const unsigned int) const
 
int status (void) const
 
int scan (void) const
 
- Public Member Functions inherited from Protocol
virtual ~Protocol (void)
 
void set_connection (Connection *)
 
void set_ident (unsigned int)
 
unsigned int ident (void) const
 

Additional Inherited Members

- Protected Attributes inherited from Protocol
Connectionconn
 
unsigned int prot_ident
 
unsigned int connect_type
 

Member Function Documentation

bool APOP::login ( const char *  usr,
const char *  pass,
const unsigned int  enc 
) const
virtual

Reimplemented from POP3.


The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/globals_eval.html0000644000175000017500000000544212675277621016422 00000000000000 mailfilter: File Members
 
mailfilter-0.8.4/doc/api/html/index.html0000644000175000017500000000340612675277621015075 00000000000000 mailfilter: Main Page
mailfilter  0.8.4
mailfilter Documentation
mailfilter-0.8.4/doc/api/html/pop3_8hh.html0000644000175000017500000001245012675277621015415 00000000000000 mailfilter: pop3.hh File Reference
pop3.hh File Reference
#include "header.hh"
#include "protocol.hh"

Go to the source code of this file.

Classes

class  POP3
 

Macros

#define REPLY_OK
 
#define HEADER_OK
 

Macro Definition Documentation

#define HEADER_OK
Value:
((conn->c_read (true) > 0 && conn->c_reply ())? \
(((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \
: false)
#define REPLY_OK
Value:
((conn->c_read () > 0 && conn->c_reply ()) ? \
(((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \
: false)
mailfilter-0.8.4/doc/api/html/getopt1_8c.html0000644000175000017500000002242012675277621015740 00000000000000 mailfilter: getopt1.c File Reference
getopt1.c File Reference
#include "getopt.h"
#include <stdio.h>

Macros

#define const
 
#define GETOPT_INTERFACE_VERSION   2
 
#define NULL   0
 

Functions

int getopt_long (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)
 
int getopt_long_only (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)
 

Macro Definition Documentation

#define const
#define GETOPT_INTERFACE_VERSION   2
#define NULL   0

Function Documentation

int getopt_long ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int *  opt_index 
)
int getopt_long_only ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int *  opt_index 
)
mailfilter-0.8.4/doc/api/html/ftv2mnode.png0000644000175000017500000000036612675277621015514 00000000000000PNG  IHDRɪ|IDATx!NA\ Um@`5i`h W7] b&ofdY4 c 3v=]\B I=BB;k WN@vy4]Y|M}]x6a }dׇY>||5?>|B"'IENDB`mailfilter-0.8.4/doc/api/html/classes.html0000644000175000017500000001277412675277621015433 00000000000000 mailfilter: Class Index
Class Index
A | C | F | M | O | P | S
  A  
  F  
  P  
Size_score   
Socket   
Account   Feedback   POP3   
  o  
APOP   Filter   Preferences   
  C  
  M  
Protocol   option   
  S  
Connection   MD5_CTX   
Score   
A | C | F | M | O | P | S
mailfilter-0.8.4/doc/api/html/annotated.html0000644000175000017500000001273312675277621015746 00000000000000 mailfilter: Class List
Class List
Here are the classes, structs, unions and interfaces with brief descriptions:
mailfilter-0.8.4/doc/api/html/account_8hh.html0000644000175000017500000000637012675277621016174 00000000000000 mailfilter: account.hh File Reference
account.hh File Reference
#include <string>
#include <vector>
#include "defines.hh"
#include "protocol.hh"
#include "pop3.hh"
#include "apop.hh"
#include "connection.hh"

Go to the source code of this file.

Classes

class  Account
 
mailfilter-0.8.4/doc/api/html/preferences_8hh.html0000644000175000017500000000646412675277621017045 00000000000000 mailfilter: preferences.hh File Reference
preferences.hh File Reference
#include <string>
#include <vector>
#include <fstream>
#include "defines.hh"
#include "socket.hh"
#include "filter.hh"
#include "score.hh"
#include "account.hh"

Go to the source code of this file.

Classes

class  Preferences
 
mailfilter-0.8.4/doc/api/html/classProtocol.html0000644000175000017500000004136312675277621016621 00000000000000 mailfilter: Protocol Class Reference

#include <protocol.hh>

Inheritance diagram for Protocol:
POP3 APOP

Public Member Functions

virtual ~Protocol (void)
 
virtual bool login (const char *usr, const char *pass, const unsigned int) const =0
 
virtual bool logout (void) const =0
 
virtual int remove_msg (const unsigned int num) const =0
 
virtual int status (void) const =0
 
virtual int scan (void) const =0
 
void set_connection (Connection *)
 
void set_ident (unsigned int)
 
unsigned int ident (void) const
 

Protected Attributes

Connectionconn
 
unsigned int prot_ident
 
unsigned int connect_type
 

Constructor & Destructor Documentation

virtual Protocol::~Protocol ( void  )
inlinevirtual

Member Function Documentation

unsigned int Protocol::ident ( void  ) const
virtual bool Protocol::login ( const char *  usr,
const char *  pass,
const unsigned  int 
) const
pure virtual

Implemented in POP3, and APOP.

virtual bool Protocol::logout ( void  ) const
pure virtual

Implemented in POP3.

virtual int Protocol::remove_msg ( const unsigned int  num) const
pure virtual

Implemented in POP3.

virtual int Protocol::scan ( void  ) const
pure virtual

Implemented in POP3.

void Protocol::set_connection ( Connection currently_established_connection)
void Protocol::set_ident ( unsigned int  i)
virtual int Protocol::status ( void  ) const
pure virtual

Implemented in POP3.

Member Data Documentation

Connection* Protocol::conn
protected
unsigned int Protocol::connect_type
protected
unsigned int Protocol::prot_ident
protected

The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/globals_func.html0000644000175000017500000001267012675277621016427 00000000000000 mailfilter: File Members
 
mailfilter-0.8.4/doc/api/html/classFilter.html0000644000175000017500000002701412675277621016242 00000000000000 mailfilter: Filter Class Reference
Filter Class Reference

#include <filter.hh>

Inheritance diagram for Filter:
Score

Public Member Functions

 Filter (void)
 
 ~Filter (void)
 
string expression (void) const
 
void set_expression (const char *)
 
int compile (void)
 
void set_negativity (bool)
 
bool is_negative (void) const
 
int ccase (void) const
 
void set_case (int)
 
const regex_t * comp_exp (void) const
 

Constructor & Destructor Documentation

Filter::Filter ( void  )
Filter::~Filter ( void  )

Member Function Documentation

int Filter::ccase ( void  ) const
const regex_t * Filter::comp_exp ( void  ) const
int Filter::compile ( void  )
string Filter::expression ( void  ) const
bool Filter::is_negative ( void  ) const
void Filter::set_case ( int  c)
void Filter::set_expression ( const char *  exp)
void Filter::set_negativity ( bool  t)

The documentation for this class was generated from the following files:
mailfilter-0.8.4/doc/api/html/structoption-members.html0000644000175000017500000000610312675277621020170 00000000000000 mailfilter: Member List
option Member List

This is the complete list of members for option, including all inherited members.

flagoption
has_argoption
nameoption
valoption
mailfilter-0.8.4/doc/api/html/connection_8hh.html0000644000175000017500000000543512675277621016700 00000000000000 mailfilter: connection.hh File Reference
connection.hh File Reference
#include <string>

Go to the source code of this file.

Classes

class  Connection
 
mailfilter-0.8.4/doc/api/html/classConnection.html0000644000175000017500000002571512675277621017122 00000000000000 mailfilter: Connection Class Reference
Connection Class Referenceabstract

#include <connection.hh>

Inheritance diagram for Connection:
Socket

Public Member Functions

virtual ~Connection (void)
 
virtual int c_open (const char *host_name, int port, int time_out, int protocol)=0
 
virtual int c_close (void) const =0
 
virtual int c_read (bool=false)=0
 
virtual int c_write (const char *msg)=0
 
virtual const string * c_reply (void) const =0
 

Constructor & Destructor Documentation

virtual Connection::~Connection ( void  )
inlinevirtual

Member Function Documentation

virtual int Connection::c_close ( void  ) const
pure virtual

Implemented in Socket.

virtual int Connection::c_open ( const char *  host_name,
int  port,
int  time_out,
int  protocol 
)
pure virtual

Implemented in Socket.

virtual int Connection::c_read ( bool  = false)
pure virtual

Implemented in Socket.

virtual const string* Connection::c_reply ( void  ) const
pure virtual

Implemented in Socket.

virtual int Connection::c_write ( const char *  msg)
pure virtual

Implemented in Socket.


The documentation for this class was generated from the following file:
mailfilter-0.8.4/doc/api/html/classSize__score.html0000644000175000017500000000766112675277621017267 00000000000000 mailfilter: Size_score Class Reference
Size_score Class Reference

#include <score.hh>

Public Attributes

int score
 
int size
 

Member Data Documentation

int Size_score::score
int Size_score::size

The documentation for this class was generated from the following file:
mailfilter-0.8.4/doc/api/html/feedback_8hh_source.html0000644000175000017500000002154612675277621017646 00000000000000 mailfilter: feedback.hh Source File
feedback.hh
Go to the documentation of this file.
1 // feedback.hh - source file for the mailfilter program
2 // Copyright (c) 2000 - 2009 Andreas Bauer <baueran@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 // USA.
18 
19 #ifndef FEEDBACK_HH
20 #define FEEDBACK_HH
21 
22 #include <fstream>
23 #include <string>
24 
25 using namespace std;
26 
27 class Feedback
28 {
29 private:
30  ofstream log_file;
31  ofstream header_file;
32  static Feedback* _instance;
33 
34 public:
35  static Feedback* Instance (void);
36  ~Feedback (void);
37  bool open (const char*);
38  bool print_msg (const string, int);
39  bool print_err (const string, int = 1);
40  bool print_header (const string);
41 };
42 
43 #endif
Definition: feedback.hh:27
mailfilter-0.8.4/doc/api/latex/0000755000175000017500000000000012675277621013326 500000000000000mailfilter-0.8.4/doc/api/latex/mailfilter_8hh.tex0000644000175000017500000001200012675277621016660 00000000000000\subsection{mailfilter.\+hh File Reference} \label{mailfilter_8hh}\index{mailfilter.\+hh@{mailfilter.\+hh}} {\ttfamily \#include $<$iostream$>$}\\* \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P}~1 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E}~2 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C}~3 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E}~4 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}~5 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T}~6 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}~7 \item \#define {\bf V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P}~8 \item \#define {\bf E\+R\+R\+O\+R\+\_\+\+M\+S\+G}(msg) \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{mailfilter.\+hh@{mailfilter.\+hh}!E\+R\+R\+O\+R\+\_\+\+M\+S\+G@{E\+R\+R\+O\+R\+\_\+\+M\+S\+G}} \index{E\+R\+R\+O\+R\+\_\+\+M\+S\+G@{E\+R\+R\+O\+R\+\_\+\+M\+S\+G}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{E\+R\+R\+O\+R\+\_\+\+M\+S\+G}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+R\+R\+O\+R\+\_\+\+M\+S\+G( \begin{DoxyParamCaption} \item[{}]{msg} \end{DoxyParamCaption} )}\label{mailfilter_8hh_a53cf0ce013d4c7336b4ff71a360cf89a} {\bfseries Value\+:} \begin{DoxyCode} cerr << PACKAGE\_NAME \(\backslash\) << \textcolor{stringliteral}{": Error: "} \(\backslash\) << msg \(\backslash\) << endl \end{DoxyCode} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P@{V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P}} \index{V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P@{V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+H\+E\+L\+P~1}\label{mailfilter_8hh_a0e710167f0b3d148705a4693e70791ee} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E@{V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E}} \index{V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E@{V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+L\+O\+G\+F\+I\+L\+E~4}\label{mailfilter_8hh_a1a460c94ccf52bf7d5c4f3d8b41812cc} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C@{V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C}} \index{V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C@{V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+M\+A\+I\+L\+F\+I\+L\+T\+E\+R\+R\+C~3}\label{mailfilter_8hh_a04f4ee635a88aaf300647f2877bf2c61} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N@{V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}} \index{V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N@{V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N~7}\label{mailfilter_8hh_abf2c0b7a8660004b11b68637d7952b55} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T@{V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T}} \index{V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T@{V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+T\+E\+S\+T~6}\label{mailfilter_8hh_a57be499b057d836d1f05c17755fced3f} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P@{V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P}} \index{V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P@{V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+T\+I\+M\+E\+S\+T\+A\+M\+P~8}\label{mailfilter_8hh_a7fda05433102b214b9e75866ea742d07} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E@{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E}} \index{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E@{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+B\+O\+S\+E~2}\label{mailfilter_8hh_aa4670a9db71a9789770828ca83a6fc38} \index{mailfilter.\+hh@{mailfilter.\+hh}!V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N@{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}} \index{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N@{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}!mailfilter.\+hh@{mailfilter.\+hh}} \paragraph[{V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define V\+A\+L\+U\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N~5}\label{mailfilter_8hh_a75280acdc2cac7f1a491e910511565ea} mailfilter-0.8.4/doc/api/latex/classProtocol.eps0000644000175000017500000000743112675277621016613 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 895.522388 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 0.558333 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 3 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (Protocol) cw (POP3) cw (APOP) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (Protocol) 0.000000 2.000000 box (POP3) 0.000000 1.000000 box (APOP) 0.000000 0.000000 box % ----- relations ----- solid 1 0.000000 1.250000 out solid 0 0.000000 1.750000 in solid 1 0.000000 0.250000 out solid 0 0.000000 0.750000 in mailfilter-0.8.4/doc/api/latex/pop3_8cc.tex0000644000175000017500000000460512675277621015413 00000000000000\subsection{pop3.\+cc File Reference} \label{pop3_8cc}\index{pop3.\+cc@{pop3.\+cc}} {\ttfamily \#include $<$cstdio$>$}\\* {\ttfamily \#include $<$cstdlib$>$}\\* {\ttfamily \#include $<$sstream$>$}\\* {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include \char`\"{}socket.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}pop3.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}feedback.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}preferences.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}header.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}weeder.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}defines.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}protocol.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}rfc822parser.\+hh\char`\"{}}\\* {\ttfamily \#include $<$Flex\+Lexer.\+h$>$}\\* \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf yy\+Flex\+Lexer}~rfc\+Flex\+Lexer \end{DoxyCompactItemize} \subsubsection*{Functions} \begin{DoxyCompactItemize} \item int {\bf rfcparse} (void $\ast$) \end{DoxyCompactItemize} \subsubsection*{Variables} \begin{DoxyCompactItemize} \item Flex\+Lexer $\ast$ {\bf rfclexer} \item Weeder {\bf weeder} \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{pop3.\+cc@{pop3.\+cc}!yy\+Flex\+Lexer@{yy\+Flex\+Lexer}} \index{yy\+Flex\+Lexer@{yy\+Flex\+Lexer}!pop3.\+cc@{pop3.\+cc}} \paragraph[{yy\+Flex\+Lexer}]{\setlength{\rightskip}{0pt plus 5cm}\#define yy\+Flex\+Lexer~rfc\+Flex\+Lexer}\label{pop3_8cc_af699458ba5331ddec7e15a878f42f8f5} \subsubsection{Function Documentation} \index{pop3.\+cc@{pop3.\+cc}!rfcparse@{rfcparse}} \index{rfcparse@{rfcparse}!pop3.\+cc@{pop3.\+cc}} \paragraph[{rfcparse}]{\setlength{\rightskip}{0pt plus 5cm}int rfcparse ( \begin{DoxyParamCaption} \item[{void $\ast$}]{} \end{DoxyParamCaption} )}\label{pop3_8cc_a244880e4425841cbc78d84da8c882369} \subsubsection{Variable Documentation} \index{pop3.\+cc@{pop3.\+cc}!rfclexer@{rfclexer}} \index{rfclexer@{rfclexer}!pop3.\+cc@{pop3.\+cc}} \paragraph[{rfclexer}]{\setlength{\rightskip}{0pt plus 5cm}Flex\+Lexer$\ast$ rfclexer}\label{pop3_8cc_a031d57ace52fefb9c659321b045831b5} \index{pop3.\+cc@{pop3.\+cc}!weeder@{weeder}} \index{weeder@{weeder}!pop3.\+cc@{pop3.\+cc}} \paragraph[{weeder}]{\setlength{\rightskip}{0pt plus 5cm}Weeder weeder}\label{pop3_8cc_aa366ad0c1ab3b661b0df659697a5e10f} mailfilter-0.8.4/doc/api/latex/apop_8cc.tex0000644000175000017500000000075212675277621015470 00000000000000\subsection{apop.\+cc File Reference} \label{apop_8cc}\index{apop.\+cc@{apop.\+cc}} {\ttfamily \#include $<$cstdio$>$}\\* {\ttfamily \#include $<$cstring$>$}\\* {\ttfamily \#include \char`\"{}apop.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}feedback.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}defines.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include $<$strings.\+h$>$}\\* {\ttfamily \#include \char`\"{}md5.\+h\char`\"{}}\\* mailfilter-0.8.4/doc/api/latex/account_8cc.tex0000644000175000017500000000334712675277621016170 00000000000000\subsection{account.\+cc File Reference} \label{account_8cc}\index{account.\+cc@{account.\+cc}} {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$vector$>$}\\* {\ttfamily \#include $<$typeinfo$>$}\\* {\ttfamily \#include \char`\"{}account.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}pop3.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}apop.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}preferences.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}feedback.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}connection.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}socket.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}defines.\+hh\char`\"{}}\\* \subsubsection*{Functions} \begin{DoxyCompactItemize} \item string {\bf int\+\_\+to\+\_\+string} (int) \end{DoxyCompactItemize} \subsubsection*{Variables} \begin{DoxyCompactItemize} \item int {\bf mailbox\+\_\+status} \end{DoxyCompactItemize} \subsubsection{Function Documentation} \index{account.\+cc@{account.\+cc}!int\+\_\+to\+\_\+string@{int\+\_\+to\+\_\+string}} \index{int\+\_\+to\+\_\+string@{int\+\_\+to\+\_\+string}!account.\+cc@{account.\+cc}} \paragraph[{int\+\_\+to\+\_\+string}]{\setlength{\rightskip}{0pt plus 5cm}string int\+\_\+to\+\_\+string ( \begin{DoxyParamCaption} \item[{int}]{} \end{DoxyParamCaption} )}\label{account_8cc_aac5566abbb83233a9d5daa9d32ed2112} \subsubsection{Variable Documentation} \index{account.\+cc@{account.\+cc}!mailbox\+\_\+status@{mailbox\+\_\+status}} \index{mailbox\+\_\+status@{mailbox\+\_\+status}!account.\+cc@{account.\+cc}} \paragraph[{mailbox\+\_\+status}]{\setlength{\rightskip}{0pt plus 5cm}int mailbox\+\_\+status}\label{account_8cc_acd4537e46d80e3511292706d88b868f0} mailfilter-0.8.4/doc/api/latex/annotated.tex0000644000175000017500000000210512675277621015743 00000000000000\subsection{Class List} Here are the classes, structs, unions and interfaces with brief descriptions\+:\begin{DoxyCompactList} \item\contentsline{section}{{\bf Account} }{\pageref{classAccount}}{} \item\contentsline{section}{{\bf A\+P\+O\+P} }{\pageref{classAPOP}}{} \item\contentsline{section}{{\bf Connection} }{\pageref{classConnection}}{} \item\contentsline{section}{{\bf Feedback} }{\pageref{classFeedback}}{} \item\contentsline{section}{{\bf Filter} }{\pageref{classFilter}}{} \item\contentsline{section}{{\bf M\+D5\+\_\+\+C\+T\+X} }{\pageref{structMD5__CTX}}{} \item\contentsline{section}{{\bf option} }{\pageref{structoption}}{} \item\contentsline{section}{{\bf P\+O\+P3} }{\pageref{classPOP3}}{} \item\contentsline{section}{{\bf Preferences} }{\pageref{classPreferences}}{} \item\contentsline{section}{{\bf Protocol} }{\pageref{classProtocol}}{} \item\contentsline{section}{{\bf Score} }{\pageref{classScore}}{} \item\contentsline{section}{{\bf Size\+\_\+score} }{\pageref{classSize__score}}{} \item\contentsline{section}{{\bf Socket} }{\pageref{classSocket}}{} \end{DoxyCompactList} mailfilter-0.8.4/doc/api/latex/getopt1_8c.tex0000644000175000017500000000631612675277621015753 00000000000000\subsection{getopt1.\+c File Reference} \label{getopt1_8c}\index{getopt1.\+c@{getopt1.\+c}} {\ttfamily \#include \char`\"{}getopt.\+h\char`\"{}}\\* {\ttfamily \#include $<$stdio.\+h$>$}\\* \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf const} \item \#define {\bf G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}~2 \item \#define {\bf N\+U\+L\+L}~0 \end{DoxyCompactItemize} \subsubsection*{Functions} \begin{DoxyCompactItemize} \item int {\bf getopt\+\_\+long} (int argc, char $\ast${\bf const} $\ast$argv, {\bf const} char $\ast$options, {\bf const} struct {\bf option} $\ast$long\+\_\+options, int $\ast$opt\+\_\+index) \item int {\bf getopt\+\_\+long\+\_\+only} (int argc, char $\ast${\bf const} $\ast$argv, {\bf const} char $\ast$options, {\bf const} struct {\bf option} $\ast$long\+\_\+options, int $\ast$opt\+\_\+index) \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{getopt1.\+c@{getopt1.\+c}!const@{const}} \index{const@{const}!getopt1.\+c@{getopt1.\+c}} \paragraph[{const}]{\setlength{\rightskip}{0pt plus 5cm}\#define const}\label{getopt1_8c_a2c212835823e3c54a8ab6d95c652660e} \index{getopt1.\+c@{getopt1.\+c}!G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N@{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}} \index{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N@{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}!getopt1.\+c@{getopt1.\+c}} \paragraph[{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N~2}\label{getopt1_8c_a5325c715897861c318d3ae312ac452cc} \index{getopt1.\+c@{getopt1.\+c}!N\+U\+L\+L@{N\+U\+L\+L}} \index{N\+U\+L\+L@{N\+U\+L\+L}!getopt1.\+c@{getopt1.\+c}} \paragraph[{N\+U\+L\+L}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\+U\+L\+L~0}\label{getopt1_8c_a070d2ce7b6bb7e5c05602aa8c308d0c4} \subsubsection{Function Documentation} \index{getopt1.\+c@{getopt1.\+c}!getopt\+\_\+long@{getopt\+\_\+long}} \index{getopt\+\_\+long@{getopt\+\_\+long}!getopt1.\+c@{getopt1.\+c}} \paragraph[{getopt\+\_\+long}]{\setlength{\rightskip}{0pt plus 5cm}int getopt\+\_\+long ( \begin{DoxyParamCaption} \item[{int}]{argc, } \item[{char $\ast${\bf const} $\ast$}]{argv, } \item[{{\bf const} char $\ast$}]{options, } \item[{{\bf const} struct {\bf option} $\ast$}]{long\+\_\+options, } \item[{int $\ast$}]{opt\+\_\+index} \end{DoxyParamCaption} )}\label{getopt1_8c_a4daed07e27e2010fb43e3174506ff116} \index{getopt1.\+c@{getopt1.\+c}!getopt\+\_\+long\+\_\+only@{getopt\+\_\+long\+\_\+only}} \index{getopt\+\_\+long\+\_\+only@{getopt\+\_\+long\+\_\+only}!getopt1.\+c@{getopt1.\+c}} \paragraph[{getopt\+\_\+long\+\_\+only}]{\setlength{\rightskip}{0pt plus 5cm}int getopt\+\_\+long\+\_\+only ( \begin{DoxyParamCaption} \item[{int}]{argc, } \item[{char $\ast${\bf const} $\ast$}]{argv, } \item[{{\bf const} char $\ast$}]{options, } \item[{{\bf const} struct {\bf option} $\ast$}]{long\+\_\+options, } \item[{int $\ast$}]{opt\+\_\+index} \end{DoxyParamCaption} )}\label{getopt1_8c_a3dc612f2599424ba14fb38571fe9363c} mailfilter-0.8.4/doc/api/latex/pop3_8hh.tex0000644000175000017500000000362312675277621015424 00000000000000\subsection{pop3.\+hh File Reference} \label{pop3_8hh}\index{pop3.\+hh@{pop3.\+hh}} {\ttfamily \#include \char`\"{}header.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}protocol.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf P\+O\+P3} \end{DoxyCompactItemize} \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf R\+E\+P\+L\+Y\+\_\+\+O\+K} \item \#define {\bf H\+E\+A\+D\+E\+R\+\_\+\+O\+K} \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{pop3.\+hh@{pop3.\+hh}!H\+E\+A\+D\+E\+R\+\_\+\+O\+K@{H\+E\+A\+D\+E\+R\+\_\+\+O\+K}} \index{H\+E\+A\+D\+E\+R\+\_\+\+O\+K@{H\+E\+A\+D\+E\+R\+\_\+\+O\+K}!pop3.\+hh@{pop3.\+hh}} \paragraph[{H\+E\+A\+D\+E\+R\+\_\+\+O\+K}]{\setlength{\rightskip}{0pt plus 5cm}\#define H\+E\+A\+D\+E\+R\+\_\+\+O\+K}\label{pop3_8hh_a8e89edde6ff4d0abaca2a4012884b49f} {\bfseries Value\+:} \begin{DoxyCode} ((conn->c\_read (\textcolor{keyword}{true}) > 0 && conn->c\_reply ())? \(\backslash\) (((conn->c\_reply ()->c\_str ())[0] == \textcolor{charliteral}{'+'}) ? \textcolor{keyword}{true} : \textcolor{keyword}{false}) \(\backslash\) : \textcolor{keyword}{false}) \end{DoxyCode} \index{pop3.\+hh@{pop3.\+hh}!R\+E\+P\+L\+Y\+\_\+\+O\+K@{R\+E\+P\+L\+Y\+\_\+\+O\+K}} \index{R\+E\+P\+L\+Y\+\_\+\+O\+K@{R\+E\+P\+L\+Y\+\_\+\+O\+K}!pop3.\+hh@{pop3.\+hh}} \paragraph[{R\+E\+P\+L\+Y\+\_\+\+O\+K}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\+E\+P\+L\+Y\+\_\+\+O\+K}\label{pop3_8hh_ada8f909957a3c59c73e8de4d28cd623e} {\bfseries Value\+:} \begin{DoxyCode} ((conn->c\_read () > 0 && conn->c\_reply ()) ? \(\backslash\) (((conn->c\_reply ()->c\_str ())[0] == \textcolor{charliteral}{'+'}) ? \textcolor{keyword}{true} : \textcolor{keyword}{false}) \(\backslash\) : \textcolor{keyword}{false}) \end{DoxyCode} mailfilter-0.8.4/doc/api/latex/structoption.tex0000644000175000017500000000253612675277621016553 00000000000000\subsection{option Struct Reference} \label{structoption}\index{option@{option}} {\ttfamily \#include $<$getopt.\+h$>$} \subsubsection*{Public Attributes} \begin{DoxyCompactItemize} \item char $\ast$ {\bf name} \item int {\bf has\+\_\+arg} \item int $\ast$ {\bf flag} \item int {\bf val} \end{DoxyCompactItemize} \subsubsection{Member Data Documentation} \index{option@{option}!flag@{flag}} \index{flag@{flag}!option@{option}} \paragraph[{flag}]{\setlength{\rightskip}{0pt plus 5cm}int$\ast$ option\+::flag}\label{structoption_ab366eea5fe7be25c1928328ba715e353} \index{option@{option}!has\+\_\+arg@{has\+\_\+arg}} \index{has\+\_\+arg@{has\+\_\+arg}!option@{option}} \paragraph[{has\+\_\+arg}]{\setlength{\rightskip}{0pt plus 5cm}int option\+::has\+\_\+arg}\label{structoption_a90d7ee9a51eea5c002682dbd0af149e4} \index{option@{option}!name@{name}} \index{name@{name}!option@{option}} \paragraph[{name}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ option\+::name}\label{structoption_a92c850a23c7828c1dba453bf8d15e1f0} \index{option@{option}!val@{val}} \index{val@{val}!option@{option}} \paragraph[{val}]{\setlength{\rightskip}{0pt plus 5cm}int option\+::val}\label{structoption_a13bd155ec3b405d29c41ab8d0793be11} The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize} \item {\bf getopt.\+h}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/getopt_8h.tex0000644000175000017500000001100612675277621015667 00000000000000\subsection{getopt.\+h File Reference} \label{getopt_8h}\index{getopt.\+h@{getopt.\+h}} {\ttfamily \#include $<$ctype.\+h$>$}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item struct {\bf option} \end{DoxyCompactItemize} \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf \+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H}~1 \item \#define {\bf no\+\_\+argument}~0 \item \#define {\bf required\+\_\+argument}~1 \item \#define {\bf optional\+\_\+argument}~2 \end{DoxyCompactItemize} \subsubsection*{Functions} \begin{DoxyCompactItemize} \item int {\bf getopt} () \item int {\bf getopt\+\_\+long} () \item int {\bf getopt\+\_\+long\+\_\+only} () \item int {\bf \+\_\+getopt\+\_\+internal} () \end{DoxyCompactItemize} \subsubsection*{Variables} \begin{DoxyCompactItemize} \item char $\ast$ {\bf optarg} \item int {\bf optind} \item int {\bf opterr} \item int {\bf optopt} \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{getopt.\+h@{getopt.\+h}!\+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H@{\+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H}} \index{\+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H@{\+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H}!getopt.\+h@{getopt.\+h}} \paragraph[{\+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H}]{\setlength{\rightskip}{0pt plus 5cm}\#define \+\_\+\+G\+E\+T\+O\+P\+T\+\_\+\+H~1}\label{getopt_8h_aaafc27a0389aa87797164b227566342d} \index{getopt.\+h@{getopt.\+h}!no\+\_\+argument@{no\+\_\+argument}} \index{no\+\_\+argument@{no\+\_\+argument}!getopt.\+h@{getopt.\+h}} \paragraph[{no\+\_\+argument}]{\setlength{\rightskip}{0pt plus 5cm}\#define no\+\_\+argument~0}\label{getopt_8h_a3bc1d5f667b5b4ca4b4abb685dc874ce} \index{getopt.\+h@{getopt.\+h}!optional\+\_\+argument@{optional\+\_\+argument}} \index{optional\+\_\+argument@{optional\+\_\+argument}!getopt.\+h@{getopt.\+h}} \paragraph[{optional\+\_\+argument}]{\setlength{\rightskip}{0pt plus 5cm}\#define optional\+\_\+argument~2}\label{getopt_8h_acca06c0a947656bd8b395bf1084ffb72} \index{getopt.\+h@{getopt.\+h}!required\+\_\+argument@{required\+\_\+argument}} \index{required\+\_\+argument@{required\+\_\+argument}!getopt.\+h@{getopt.\+h}} \paragraph[{required\+\_\+argument}]{\setlength{\rightskip}{0pt plus 5cm}\#define required\+\_\+argument~1}\label{getopt_8h_a6ece8d8dfa8378778f7290fdaba5b8bc} \subsubsection{Function Documentation} \index{getopt.\+h@{getopt.\+h}!\+\_\+getopt\+\_\+internal@{\+\_\+getopt\+\_\+internal}} \index{\+\_\+getopt\+\_\+internal@{\+\_\+getopt\+\_\+internal}!getopt.\+h@{getopt.\+h}} \paragraph[{\+\_\+getopt\+\_\+internal}]{\setlength{\rightskip}{0pt plus 5cm}int \+\_\+getopt\+\_\+internal ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{getopt_8h_a60428225710059ca135c6b2a8941855f} \index{getopt.\+h@{getopt.\+h}!getopt@{getopt}} \index{getopt@{getopt}!getopt.\+h@{getopt.\+h}} \paragraph[{getopt}]{\setlength{\rightskip}{0pt plus 5cm}int getopt ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{getopt_8h_a6c5b232cca42dab05f40b47f69715f8b} \index{getopt.\+h@{getopt.\+h}!getopt\+\_\+long@{getopt\+\_\+long}} \index{getopt\+\_\+long@{getopt\+\_\+long}!getopt.\+h@{getopt.\+h}} \paragraph[{getopt\+\_\+long}]{\setlength{\rightskip}{0pt plus 5cm}int getopt\+\_\+long ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{getopt_8h_a8616b8a74ae6c01a7ad95ad2876226ec} \index{getopt.\+h@{getopt.\+h}!getopt\+\_\+long\+\_\+only@{getopt\+\_\+long\+\_\+only}} \index{getopt\+\_\+long\+\_\+only@{getopt\+\_\+long\+\_\+only}!getopt.\+h@{getopt.\+h}} \paragraph[{getopt\+\_\+long\+\_\+only}]{\setlength{\rightskip}{0pt plus 5cm}int getopt\+\_\+long\+\_\+only ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{getopt_8h_ac07930413317507d5c51c19b3ac6ed20} \subsubsection{Variable Documentation} \index{getopt.\+h@{getopt.\+h}!optarg@{optarg}} \index{optarg@{optarg}!getopt.\+h@{getopt.\+h}} \paragraph[{optarg}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ optarg}\label{getopt_8h_adb50a0eab9fed92fc3bfc7dfa4f2c410} \index{getopt.\+h@{getopt.\+h}!opterr@{opterr}} \index{opterr@{opterr}!getopt.\+h@{getopt.\+h}} \paragraph[{opterr}]{\setlength{\rightskip}{0pt plus 5cm}int opterr}\label{getopt_8h_ae30f05ee1e2e5652f174a35c7875d25e} \index{getopt.\+h@{getopt.\+h}!optind@{optind}} \index{optind@{optind}!getopt.\+h@{getopt.\+h}} \paragraph[{optind}]{\setlength{\rightskip}{0pt plus 5cm}int optind}\label{getopt_8h_ad5e1c16213bbee2d5e8cc363309f418c} \index{getopt.\+h@{getopt.\+h}!optopt@{optopt}} \index{optopt@{optopt}!getopt.\+h@{getopt.\+h}} \paragraph[{optopt}]{\setlength{\rightskip}{0pt plus 5cm}int optopt}\label{getopt_8h_a475b8db98445da73e5f62a1ef6324b95} mailfilter-0.8.4/doc/api/latex/md5c_8c.tex0000644000175000017500000002346112675277621015220 00000000000000\subsection{md5c.\+c File Reference} \label{md5c_8c}\index{md5c.\+c@{md5c.\+c}} {\ttfamily \#include \char`\"{}md5.\+h\char`\"{}}\\* \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf S11}~7 \item \#define {\bf S12}~12 \item \#define {\bf S13}~17 \item \#define {\bf S14}~22 \item \#define {\bf S21}~5 \item \#define {\bf S22}~9 \item \#define {\bf S23}~14 \item \#define {\bf S24}~20 \item \#define {\bf S31}~4 \item \#define {\bf S32}~11 \item \#define {\bf S33}~16 \item \#define {\bf S34}~23 \item \#define {\bf S41}~6 \item \#define {\bf S42}~10 \item \#define {\bf S43}~15 \item \#define {\bf S44}~21 \item \#define {\bf F}(x, y, z)~(((x) \& (y)) $\vert$ (($\sim$x) \& (z))) \item \#define {\bf G}(x, y, z)~(((x) \& (z)) $\vert$ ((y) \& ($\sim$z))) \item \#define {\bf H}(x, y, z)~((x) $^\wedge$ (y) $^\wedge$ (z)) \item \#define {\bf I}(x, y, z)~((y) $^\wedge$ ((x) $\vert$ ($\sim$z))) \item \#define {\bf R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T}(x, n)~(((x) $<$$<$ (n)) $\vert$ ((x) $>$$>$ (32-\/(n)))) \item \#define {\bf F\+F}(a, b, c, d, x, s, ac) \item \#define {\bf G\+G}(a, b, c, d, x, s, ac) \item \#define {\bf H\+H}(a, b, c, d, x, s, ac) \item \#define {\bf I\+I}(a, b, c, d, x, s, ac) \end{DoxyCompactItemize} \subsubsection*{Functions} \begin{DoxyCompactItemize} \item void {\bf M\+D5\+Init} ({\bf M\+D5\+\_\+\+C\+T\+X} $\ast$context) \item void {\bf M\+D5\+Update} ({\bf M\+D5\+\_\+\+C\+T\+X} $\ast$context, unsigned char $\ast$input, unsigned int input\+Len) \item void {\bf M\+D5\+Final} (digest, {\bf M\+D5\+\_\+\+C\+T\+X} $\ast$context) \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{md5c.\+c@{md5c.\+c}!F@{F}} \index{F@{F}!md5c.\+c@{md5c.\+c}} \paragraph[{F}]{\setlength{\rightskip}{0pt plus 5cm}\#define F( \begin{DoxyParamCaption} \item[{}]{x, } \item[{}]{y, } \item[{}]{z} \end{DoxyParamCaption} )~(((x) \& (y)) $\vert$ (($\sim$x) \& (z)))}\label{md5c_8c_a96d73bbd7af15cb1fc38c3f4a3bd82e9} \index{md5c.\+c@{md5c.\+c}!F\+F@{F\+F}} \index{F\+F@{F\+F}!md5c.\+c@{md5c.\+c}} \paragraph[{F\+F}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\+F( \begin{DoxyParamCaption} \item[{}]{a, } \item[{}]{b, } \item[{}]{c, } \item[{}]{d, } \item[{}]{x, } \item[{}]{s, } \item[{}]{ac} \end{DoxyParamCaption} )}\label{md5c_8c_a0a143972cb6c4fe16f0ffa8a3d41ebf3} {\bfseries Value\+:} \begin{DoxyCode} \{ \(\backslash\) (a) += F ((b), (c), (d)) + (x) + (uint32\_t)(ac); \(\backslash\) (a) = ROTATE_LEFT ((a), (s)); \(\backslash\) (a) += (b); \(\backslash\) \} \end{DoxyCode} \index{md5c.\+c@{md5c.\+c}!G@{G}} \index{G@{G}!md5c.\+c@{md5c.\+c}} \paragraph[{G}]{\setlength{\rightskip}{0pt plus 5cm}\#define G( \begin{DoxyParamCaption} \item[{}]{x, } \item[{}]{y, } \item[{}]{z} \end{DoxyParamCaption} )~(((x) \& (z)) $\vert$ ((y) \& ($\sim$z)))}\label{md5c_8c_ad96b7cf3182ce2ba85e5a7a93b12c441} \index{md5c.\+c@{md5c.\+c}!G\+G@{G\+G}} \index{G\+G@{G\+G}!md5c.\+c@{md5c.\+c}} \paragraph[{G\+G}]{\setlength{\rightskip}{0pt plus 5cm}\#define G\+G( \begin{DoxyParamCaption} \item[{}]{a, } \item[{}]{b, } \item[{}]{c, } \item[{}]{d, } \item[{}]{x, } \item[{}]{s, } \item[{}]{ac} \end{DoxyParamCaption} )}\label{md5c_8c_a685f32faa2a66e743850b990a13b8bfa} {\bfseries Value\+:} \begin{DoxyCode} \{ \(\backslash\) (a) += G ((b), (c), (d)) + (x) + (uint32\_t)(ac); \(\backslash\) (a) = ROTATE_LEFT ((a), (s)); \(\backslash\) (a) += (b); \(\backslash\) \} \end{DoxyCode} \index{md5c.\+c@{md5c.\+c}!H@{H}} \index{H@{H}!md5c.\+c@{md5c.\+c}} \paragraph[{H}]{\setlength{\rightskip}{0pt plus 5cm}\#define H( \begin{DoxyParamCaption} \item[{}]{x, } \item[{}]{y, } \item[{}]{z} \end{DoxyParamCaption} )~((x) $^\wedge$ (y) $^\wedge$ (z))}\label{md5c_8c_ae42219072d798876e6b08e6b78614ff6} \index{md5c.\+c@{md5c.\+c}!H\+H@{H\+H}} \index{H\+H@{H\+H}!md5c.\+c@{md5c.\+c}} \paragraph[{H\+H}]{\setlength{\rightskip}{0pt plus 5cm}\#define H\+H( \begin{DoxyParamCaption} \item[{}]{a, } \item[{}]{b, } \item[{}]{c, } \item[{}]{d, } \item[{}]{x, } \item[{}]{s, } \item[{}]{ac} \end{DoxyParamCaption} )}\label{md5c_8c_a8b9f1c4778df01ef970b87dbe5541dc5} {\bfseries Value\+:} \begin{DoxyCode} \{ \(\backslash\) (a) += H ((b), (c), (d)) + (x) + (uint32\_t)(ac); \(\backslash\) (a) = ROTATE_LEFT ((a), (s)); \(\backslash\) (a) += (b); \(\backslash\) \} \end{DoxyCode} \index{md5c.\+c@{md5c.\+c}!I@{I}} \index{I@{I}!md5c.\+c@{md5c.\+c}} \paragraph[{I}]{\setlength{\rightskip}{0pt plus 5cm}\#define I( \begin{DoxyParamCaption} \item[{}]{x, } \item[{}]{y, } \item[{}]{z} \end{DoxyParamCaption} )~((y) $^\wedge$ ((x) $\vert$ ($\sim$z)))}\label{md5c_8c_ac0eafdc9ee161b71e7af98af736952fd} \index{md5c.\+c@{md5c.\+c}!I\+I@{I\+I}} \index{I\+I@{I\+I}!md5c.\+c@{md5c.\+c}} \paragraph[{I\+I}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\+I( \begin{DoxyParamCaption} \item[{}]{a, } \item[{}]{b, } \item[{}]{c, } \item[{}]{d, } \item[{}]{x, } \item[{}]{s, } \item[{}]{ac} \end{DoxyParamCaption} )}\label{md5c_8c_ad26626e5efb37b2dadef4e88e35e4329} {\bfseries Value\+:} \begin{DoxyCode} \{ \(\backslash\) (a) += I ((b), (c), (d)) + (x) + (uint32\_t)(ac); \(\backslash\) (a) = ROTATE_LEFT ((a), (s)); \(\backslash\) (a) += (b); \(\backslash\) \} \end{DoxyCode} \index{md5c.\+c@{md5c.\+c}!R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T@{R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T}} \index{R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T@{R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T}!md5c.\+c@{md5c.\+c}} \paragraph[{R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\+O\+T\+A\+T\+E\+\_\+\+L\+E\+F\+T( \begin{DoxyParamCaption} \item[{}]{x, } \item[{}]{n} \end{DoxyParamCaption} )~(((x) $<$$<$ (n)) $\vert$ ((x) $>$$>$ (32-\/(n))))}\label{md5c_8c_a7417fd4e875360c0533fa5b412cdab49} \index{md5c.\+c@{md5c.\+c}!S11@{S11}} \index{S11@{S11}!md5c.\+c@{md5c.\+c}} \paragraph[{S11}]{\setlength{\rightskip}{0pt plus 5cm}\#define S11~7}\label{md5c_8c_a51398c0e5541164ad4d6615880073305} \index{md5c.\+c@{md5c.\+c}!S12@{S12}} \index{S12@{S12}!md5c.\+c@{md5c.\+c}} \paragraph[{S12}]{\setlength{\rightskip}{0pt plus 5cm}\#define S12~12}\label{md5c_8c_a1ec499cd0e54ecc28c2ac2afea5b038e} \index{md5c.\+c@{md5c.\+c}!S13@{S13}} \index{S13@{S13}!md5c.\+c@{md5c.\+c}} \paragraph[{S13}]{\setlength{\rightskip}{0pt plus 5cm}\#define S13~17}\label{md5c_8c_aaeec90429105fb54d853dd4fc7027a54} \index{md5c.\+c@{md5c.\+c}!S14@{S14}} \index{S14@{S14}!md5c.\+c@{md5c.\+c}} \paragraph[{S14}]{\setlength{\rightskip}{0pt plus 5cm}\#define S14~22}\label{md5c_8c_a78342b0ccde2ed12fdf19a113cc266cf} \index{md5c.\+c@{md5c.\+c}!S21@{S21}} \index{S21@{S21}!md5c.\+c@{md5c.\+c}} \paragraph[{S21}]{\setlength{\rightskip}{0pt plus 5cm}\#define S21~5}\label{md5c_8c_ab6d5354f647a0e7592a1f051fc8377b2} \index{md5c.\+c@{md5c.\+c}!S22@{S22}} \index{S22@{S22}!md5c.\+c@{md5c.\+c}} \paragraph[{S22}]{\setlength{\rightskip}{0pt plus 5cm}\#define S22~9}\label{md5c_8c_addad30455da936bc1879ee9c72b46d59} \index{md5c.\+c@{md5c.\+c}!S23@{S23}} \index{S23@{S23}!md5c.\+c@{md5c.\+c}} \paragraph[{S23}]{\setlength{\rightskip}{0pt plus 5cm}\#define S23~14}\label{md5c_8c_a6321a8b29628936f76e9e78cf5bda95f} \index{md5c.\+c@{md5c.\+c}!S24@{S24}} \index{S24@{S24}!md5c.\+c@{md5c.\+c}} \paragraph[{S24}]{\setlength{\rightskip}{0pt plus 5cm}\#define S24~20}\label{md5c_8c_a0c09eb77d30a0d5f9154914147b86c20} \index{md5c.\+c@{md5c.\+c}!S31@{S31}} \index{S31@{S31}!md5c.\+c@{md5c.\+c}} \paragraph[{S31}]{\setlength{\rightskip}{0pt plus 5cm}\#define S31~4}\label{md5c_8c_aef26590f8a880ee6f4a158168defcd89} \index{md5c.\+c@{md5c.\+c}!S32@{S32}} \index{S32@{S32}!md5c.\+c@{md5c.\+c}} \paragraph[{S32}]{\setlength{\rightskip}{0pt plus 5cm}\#define S32~11}\label{md5c_8c_a1d512424dd8a91e0a5bcc98563f33914} \index{md5c.\+c@{md5c.\+c}!S33@{S33}} \index{S33@{S33}!md5c.\+c@{md5c.\+c}} \paragraph[{S33}]{\setlength{\rightskip}{0pt plus 5cm}\#define S33~16}\label{md5c_8c_a1c854214533f6220e859b0063196abb3} \index{md5c.\+c@{md5c.\+c}!S34@{S34}} \index{S34@{S34}!md5c.\+c@{md5c.\+c}} \paragraph[{S34}]{\setlength{\rightskip}{0pt plus 5cm}\#define S34~23}\label{md5c_8c_af6472be1d535970afee8e5266a74aa07} \index{md5c.\+c@{md5c.\+c}!S41@{S41}} \index{S41@{S41}!md5c.\+c@{md5c.\+c}} \paragraph[{S41}]{\setlength{\rightskip}{0pt plus 5cm}\#define S41~6}\label{md5c_8c_ab674ba129e588da55d1d494e1cf3c15e} \index{md5c.\+c@{md5c.\+c}!S42@{S42}} \index{S42@{S42}!md5c.\+c@{md5c.\+c}} \paragraph[{S42}]{\setlength{\rightskip}{0pt plus 5cm}\#define S42~10}\label{md5c_8c_a268ef1a49114a94b931cc6b313e3cd1b} \index{md5c.\+c@{md5c.\+c}!S43@{S43}} \index{S43@{S43}!md5c.\+c@{md5c.\+c}} \paragraph[{S43}]{\setlength{\rightskip}{0pt plus 5cm}\#define S43~15}\label{md5c_8c_a5aaa7121f39650d472746942ca68f959} \index{md5c.\+c@{md5c.\+c}!S44@{S44}} \index{S44@{S44}!md5c.\+c@{md5c.\+c}} \paragraph[{S44}]{\setlength{\rightskip}{0pt plus 5cm}\#define S44~21}\label{md5c_8c_a6a3989af72b55d169bd73a66f8620aae} \subsubsection{Function Documentation} \index{md5c.\+c@{md5c.\+c}!M\+D5\+Final@{M\+D5\+Final}} \index{M\+D5\+Final@{M\+D5\+Final}!md5c.\+c@{md5c.\+c}} \paragraph[{M\+D5\+Final}]{\setlength{\rightskip}{0pt plus 5cm}void M\+D5\+Final ( \begin{DoxyParamCaption} \item[{digest}]{, } \item[{{\bf M\+D5\+\_\+\+C\+T\+X} $\ast$}]{context} \end{DoxyParamCaption} )}\label{md5c_8c_a6265921688d4d2f4fb2456dfe7a2828a} \index{md5c.\+c@{md5c.\+c}!M\+D5\+Init@{M\+D5\+Init}} \index{M\+D5\+Init@{M\+D5\+Init}!md5c.\+c@{md5c.\+c}} \paragraph[{M\+D5\+Init}]{\setlength{\rightskip}{0pt plus 5cm}void M\+D5\+Init ( \begin{DoxyParamCaption} \item[{{\bf M\+D5\+\_\+\+C\+T\+X} $\ast$}]{context} \end{DoxyParamCaption} )}\label{md5c_8c_a08e47999152d737f33fda2b8729c4f7c} \index{md5c.\+c@{md5c.\+c}!M\+D5\+Update@{M\+D5\+Update}} \index{M\+D5\+Update@{M\+D5\+Update}!md5c.\+c@{md5c.\+c}} \paragraph[{M\+D5\+Update}]{\setlength{\rightskip}{0pt plus 5cm}void M\+D5\+Update ( \begin{DoxyParamCaption} \item[{{\bf M\+D5\+\_\+\+C\+T\+X} $\ast$}]{context, } \item[{unsigned char $\ast$}]{input, } \item[{unsigned int}]{input\+Len} \end{DoxyParamCaption} )}\label{md5c_8c_aa5b3e14ee3b69e0c7e10d69c9e538b3e} mailfilter-0.8.4/doc/api/latex/structMD5__CTX.tex0000644000175000017500000000263712675277621016507 00000000000000\subsection{M\+D5\+\_\+\+C\+T\+X Struct Reference} \label{structMD5__CTX}\index{M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}} {\ttfamily \#include $<$md5.\+h$>$} \subsubsection*{Public Attributes} \begin{DoxyCompactItemize} \item uint32\+\_\+t {\bf state} [4] \item uint32\+\_\+t {\bf count} [2] \item unsigned char {\bf buffer} [64] \end{DoxyCompactItemize} \subsubsection{Member Data Documentation} \index{M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}!buffer@{buffer}} \index{buffer@{buffer}!M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}} \paragraph[{buffer}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char M\+D5\+\_\+\+C\+T\+X\+::buffer[64]}\label{structMD5__CTX_a2da73ecf544745f58211e998719f367f} \index{M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}!count@{count}} \index{count@{count}!M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}} \paragraph[{count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t M\+D5\+\_\+\+C\+T\+X\+::count[2]}\label{structMD5__CTX_a652deaea6cce73f3adf6b2212240c351} \index{M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}!state@{state}} \index{state@{state}!M\+D5\+\_\+\+C\+T\+X@{M\+D5\+\_\+\+C\+T\+X}} \paragraph[{state}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t M\+D5\+\_\+\+C\+T\+X\+::state[4]}\label{structMD5__CTX_a7c74e43c2762f66bf81f0075bff2dba2} The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize} \item {\bf md5.\+h}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/Makefile0000644000175000017500000000162112675277621014706 00000000000000all: refman.dvi ps: refman.ps pdf: refman.pdf ps_2on1: refman_2on1.ps pdf_2on1: refman_2on1.pdf refman.ps: refman.dvi dvips -o refman.ps refman.dvi refman.pdf: refman.ps ps2pdf refman.ps refman.pdf refman.dvi: clean refman.tex doxygen.sty echo "Running latex..." latex refman.tex echo "Running makeindex..." makeindex refman.idx echo "Rerunning latex...." latex refman.tex latex_count=8 ; \ while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\ do \ echo "Rerunning latex...." ;\ latex refman.tex ;\ latex_count=`expr $$latex_count - 1` ;\ done makeindex refman.idx latex refman.tex refman_2on1.ps: refman.ps psnup -2 refman.ps >refman_2on1.ps refman_2on1.pdf: refman_2on1.ps ps2pdf refman_2on1.ps refman_2on1.pdf clean: rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf mailfilter-0.8.4/doc/api/latex/dir_68267d1309a1af8e8297ef4c3efbcdba.tex0000644000175000017500000000172212675277621021441 00000000000000\subsection{src Directory Reference} \label{dir_68267d1309a1af8e8297ef4c3efbcdba}\index{src Directory Reference@{src Directory Reference}} \subsubsection*{Files} \begin{DoxyCompactItemize} \item file {\bf account.\+cc} \item file {\bf account.\+hh} \item file {\bf apop.\+cc} \item file {\bf apop.\+hh} \item file {\bf connection.\+hh} \item file {\bf feedback.\+cc} \item file {\bf feedback.\+hh} \item file {\bf filter.\+cc} \item file {\bf filter.\+hh} \item file {\bf getopt.\+c} \item file {\bf getopt.\+h} \item file {\bf getopt1.\+c} \item file {\bf mailfilter.\+cc} \item file {\bf mailfilter.\+hh} \item file {\bf md5.\+h} \item file {\bf md5c.\+c} \item file {\bf pop3.\+cc} \item file {\bf pop3.\+hh} \item file {\bf preferences.\+cc} \item file {\bf preferences.\+hh} \item file {\bf protocol.\+cc} \item file {\bf protocol.\+hh} \item file {\bf score.\+hh} \item file {\bf socket.\+cc} \item file {\bf socket.\+hh} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classScore.eps0000644000175000017500000000726412675277621016071 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 740.740741 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 0.675000 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 2 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (Score) cw (Filter) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (Score) 0.000000 0.000000 box (Filter) 0.000000 1.000000 box % ----- relations ----- solid 0 0.000000 0.000000 out solid 1 0.000000 1.000000 in mailfilter-0.8.4/doc/api/latex/socket_8cc.tex0000644000175000017500000000176212675277621016023 00000000000000\subsection{socket.\+cc File Reference} \label{socket_8cc}\index{socket.\+cc@{socket.\+cc}} {\ttfamily \#include $<$iostream$>$}\\* {\ttfamily \#include $<$csignal$>$}\\* {\ttfamily \#include $<$cstring$>$}\\* {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$stdexcept$>$}\\* {\ttfamily \#include $<$sstream$>$}\\* {\ttfamily \#include $<$sys/time.\+h$>$}\\* {\ttfamily \#include $<$sys/types.\+h$>$}\\* {\ttfamily \#include $<$sys/socket.\+h$>$}\\* {\ttfamily \#include $<$setjmp.\+h$>$}\\* {\ttfamily \#include $<$unistd.\+h$>$}\\* {\ttfamily \#include $<$errno.\+h$>$}\\* {\ttfamily \#include $<$fcntl.\+h$>$}\\* {\ttfamily \#include $<$netinet/in.\+h$>$}\\* {\ttfamily \#include $<$netdb.\+h$>$}\\* {\ttfamily \#include \char`\"{}defines.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}feedback.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}socket.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}protocol.\+hh\char`\"{}}\\* mailfilter-0.8.4/doc/api/latex/account_8hh.tex0000644000175000017500000000106412675277621016174 00000000000000\subsection{account.\+hh File Reference} \label{account_8hh}\index{account.\+hh@{account.\+hh}} {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$vector$>$}\\* {\ttfamily \#include \char`\"{}defines.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}protocol.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}pop3.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}apop.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}connection.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Account} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/protocol_8cc.tex0000644000175000017500000000033412675277621016366 00000000000000\subsection{protocol.\+cc File Reference} \label{protocol_8cc}\index{protocol.\+cc@{protocol.\+cc}} {\ttfamily \#include \char`\"{}connection.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}protocol.\+hh\char`\"{}}\\* mailfilter-0.8.4/doc/api/latex/preferences_8cc.tex0000644000175000017500000000370512675277621017033 00000000000000\subsection{preferences.\+cc File Reference} \label{preferences_8cc}\index{preferences.\+cc@{preferences.\+cc}} {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$cstring$>$}\\* {\ttfamily \#include $<$cstdlib$>$}\\* {\ttfamily \#include $<$cctype$>$}\\* {\ttfamily \#include $<$fstream$>$}\\* {\ttfamily \#include $<$vector$>$}\\* {\ttfamily \#include $<$stdexcept$>$}\\* {\ttfamily \#include $<$cstdio$>$}\\* {\ttfamily \#include \char`\"{}preferences.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}filter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}account.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}protocol.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}score.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}rcfile.\+hh\char`\"{}}\\* {\ttfamily \#include $<$wordexp.\+h$>$}\\* {\ttfamily \#include $<$sys/types.\+h$>$}\\* {\ttfamily \#include $<$regex.\+h$>$}\\* \subsubsection*{Functions} \begin{DoxyCompactItemize} \item int {\bf rcparse} (void $\ast$) \item int {\bf cmp\+\_\+no\+\_\+case} ({\bf const} string \&, {\bf const} string \&) \end{DoxyCompactItemize} \subsubsection{Function Documentation} \index{preferences.\+cc@{preferences.\+cc}!cmp\+\_\+no\+\_\+case@{cmp\+\_\+no\+\_\+case}} \index{cmp\+\_\+no\+\_\+case@{cmp\+\_\+no\+\_\+case}!preferences.\+cc@{preferences.\+cc}} \paragraph[{cmp\+\_\+no\+\_\+case}]{\setlength{\rightskip}{0pt plus 5cm}int cmp\+\_\+no\+\_\+case ( \begin{DoxyParamCaption} \item[{{\bf const} string \&}]{, } \item[{{\bf const} string \&}]{} \end{DoxyParamCaption} )}\label{preferences_8cc_afb83c30b29c387537092966aa333c78e} \index{preferences.\+cc@{preferences.\+cc}!rcparse@{rcparse}} \index{rcparse@{rcparse}!preferences.\+cc@{preferences.\+cc}} \paragraph[{rcparse}]{\setlength{\rightskip}{0pt plus 5cm}int rcparse ( \begin{DoxyParamCaption} \item[{void $\ast$}]{} \end{DoxyParamCaption} )}\label{preferences_8cc_aae0927db5ef11d0a5aa6cf30856d9661} mailfilter-0.8.4/doc/api/latex/classPreferences.tex0000644000175000017500000011077612675277621017273 00000000000000\subsection{Preferences Class Reference} \label{classPreferences}\index{Preferences@{Preferences}} {\ttfamily \#include $<$preferences.\+hh$>$} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item {\bf Preferences} () \item void {\bf init} (void) \item void {\bf kill} (void) \item bool {\bf open} ({\bf const} char $\ast$) \item bool {\bf load} (void) \item void {\bf add\+\_\+deny\+\_\+rule} ({\bf const} char $\ast$, {\bf const} char $\ast$, {\bf const} char $\ast$) \item void {\bf add\+\_\+allow\+\_\+rule} ({\bf const} char $\ast$, {\bf const} char $\ast$, {\bf const} char $\ast$) \item void {\bf add\+\_\+score} ({\bf const} char $\ast$, int, {\bf const} char $\ast$, {\bf const} char $\ast$) \item int {\bf neg\+\_\+allows} (void) \item int {\bf neg\+\_\+denies} (void) \item void {\bf set\+\_\+rc\+\_\+file} ({\bf const} char $\ast$) \item string {\bf rc\+\_\+file} (void) \item void {\bf set\+\_\+log\+\_\+file} ({\bf const} char $\ast$) \item string {\bf log\+\_\+file} (void) \item void {\bf set\+\_\+verbose\+\_\+level} (int) \item int {\bf verbose\+\_\+level} (void) \item void {\bf set\+\_\+headers\+\_\+file} ({\bf const} char $\ast$) \item string {\bf headers\+\_\+file} (void) \item void {\bf set\+\_\+default\+\_\+case} ({\bf const} char $\ast$) \item int {\bf default\+\_\+case} (void) \item void {\bf set\+\_\+reg\+\_\+type} ({\bf const} char $\ast$) \item int {\bf reg\+\_\+type} (void) \item void {\bf set\+\_\+server} ({\bf const} char $\ast$) \item void {\bf set\+\_\+usr} ({\bf const} char $\ast$) \item void {\bf set\+\_\+passwd} ({\bf const} char $\ast$) \item void {\bf set\+\_\+protocol} ({\bf const} char $\ast$) \item void {\bf set\+\_\+connection} (unsigned int=P\+O\+S\+I\+X\+\_\+\+S\+O\+C\+K\+E\+T\+S) \+\_\+\+\_\+attribute\+\_\+\+\_\+((unused)) \item void {\bf set\+\_\+port} (unsigned int) \item unsigned int {\bf time\+\_\+out} (void) \item void {\bf set\+\_\+time\+\_\+out} (unsigned int) \item bool {\bf delete\+\_\+duplicates} (void) \item void {\bf set\+\_\+del\+\_\+duplicates} ({\bf const} char $\ast$) \item int {\bf max\+\_\+size\+\_\+allow} (void) \item void {\bf set\+\_\+max\+\_\+size\+\_\+allow} (int) \item int {\bf max\+\_\+size\+\_\+deny} (void) \item void {\bf set\+\_\+max\+\_\+size\+\_\+deny} (int) \item {\bf Size\+\_\+score} {\bf max\+\_\+size\+\_\+score} (void) \item void {\bf set\+\_\+max\+\_\+size\+\_\+score} (int, int) \item int {\bf highscore} (void) \item void {\bf set\+\_\+highscore} (int) \item bool {\bf normal} (void) \item void {\bf set\+\_\+normal} ({\bf const} char $\ast$) \item bool {\bf test\+\_\+mode} (void) \item void {\bf set\+\_\+test\+\_\+mode} ({\bf const} char $\ast$) \item int {\bf maxlength} (void) \item void {\bf set\+\_\+maxlength} (int) \item bool {\bf ignore\+\_\+time\+\_\+stamp} () \item void {\bf set\+\_\+ignore\+\_\+time\+\_\+stamp} (bool=true) \item bool {\bf return\+\_\+status} (void) \item void {\bf set\+\_\+return\+\_\+status} (bool) \item vector$<$ {\bf Account} $>$ $\ast$ {\bf accounts} (void) \item vector$<$ {\bf Filter} $>$ $\ast$ {\bf allow\+\_\+filters} (void) \item vector$<$ {\bf Filter} $>$ $\ast$ {\bf deny\+\_\+filters} (void) \item vector$<$ {\bf Score} $>$ $\ast$ {\bf score\+\_\+filters} (void) \end{DoxyCompactItemize} \subsubsection*{Static Public Member Functions} \begin{DoxyCompactItemize} \item static {\bf Preferences} \& {\bf Instance} () \end{DoxyCompactItemize} \subsubsection*{Protected Attributes} \begin{DoxyCompactItemize} \item ifstream {\bf prefs\+\_\+stream} \item vector$<$ {\bf Filter} $>$ {\bf allows} \item vector$<$ {\bf Filter} $>$ {\bf denies} \item vector$<$ {\bf Score} $>$ {\bf scores} \item vector$<$ {\bf Account} $>$ {\bf accnts} \item {\bf Account} {\bf cur\+\_\+account} \item string {\bf prefs\+\_\+file\+\_\+name} \item string {\bf log\+\_\+file\+\_\+name} \item string {\bf headers\+\_\+file\+\_\+name} \item int {\bf icase} \item bool {\bf norm} \item bool {\bf test} \item bool {\bf show\+\_\+headers} \item bool {\bf del\+\_\+duplicates} \item bool {\bf ret\+\_\+status} \item bool {\bf \+\_\+ignore\+\_\+time\+\_\+stamp} \item int {\bf high\+\_\+score} \item unsigned {\bf time\+\_\+out\+\_\+val} \item int {\bf max\+\_\+size} \item {\bf Size\+\_\+score} {\bf size\+\_\+score} \item int {\bf max\+\_\+size\+\_\+friends} \item int {\bf max\+\_\+line\+\_\+length} \item int {\bf rreg\+\_\+type} \item int {\bf verbosity} \item int {\bf conn\+\_\+type} \item int {\bf negative\+\_\+allows} \item int {\bf negative\+\_\+denies} \item int {\bf negative\+\_\+scores} \item bool {\bf verbosity\+\_\+changed} \item bool {\bf test\+\_\+changed} \end{DoxyCompactItemize} \subsubsection{Constructor \& Destructor Documentation} \index{Preferences@{Preferences}!Preferences@{Preferences}} \index{Preferences@{Preferences}!Preferences@{Preferences}} \paragraph[{Preferences}]{\setlength{\rightskip}{0pt plus 5cm}Preferences\+::\+Preferences ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{classPreferences_a9ca3b7029509bc36da1a57ed296c2fa8} \subsubsection{Member Function Documentation} \index{Preferences@{Preferences}!accounts@{accounts}} \index{accounts@{accounts}!Preferences@{Preferences}} \paragraph[{accounts}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Account} $>$ $\ast$ Preferences\+::accounts ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a02ee3db34b6fd38c51480a3815a73d70} \index{Preferences@{Preferences}!add\+\_\+allow\+\_\+rule@{add\+\_\+allow\+\_\+rule}} \index{add\+\_\+allow\+\_\+rule@{add\+\_\+allow\+\_\+rule}!Preferences@{Preferences}} \paragraph[{add\+\_\+allow\+\_\+rule}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::add\+\_\+allow\+\_\+rule ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{keyword, } \item[{{\bf const} char $\ast$}]{operat, } \item[{{\bf const} char $\ast$}]{id} \end{DoxyParamCaption} )}\label{classPreferences_a5acc85aa479bd30c652488fb1bdd2b10} \index{Preferences@{Preferences}!add\+\_\+deny\+\_\+rule@{add\+\_\+deny\+\_\+rule}} \index{add\+\_\+deny\+\_\+rule@{add\+\_\+deny\+\_\+rule}!Preferences@{Preferences}} \paragraph[{add\+\_\+deny\+\_\+rule}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::add\+\_\+deny\+\_\+rule ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{keyword, } \item[{{\bf const} char $\ast$}]{operat, } \item[{{\bf const} char $\ast$}]{id} \end{DoxyParamCaption} )}\label{classPreferences_a55efff112a469fd6fb81ab9c68445ae5} \index{Preferences@{Preferences}!add\+\_\+score@{add\+\_\+score}} \index{add\+\_\+score@{add\+\_\+score}!Preferences@{Preferences}} \paragraph[{add\+\_\+score}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::add\+\_\+score ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{keyword, } \item[{int}]{given\+\_\+score, } \item[{{\bf const} char $\ast$}]{operat, } \item[{{\bf const} char $\ast$}]{id} \end{DoxyParamCaption} )}\label{classPreferences_a93573e40851102ac3f3ea570a564816c} \index{Preferences@{Preferences}!allow\+\_\+filters@{allow\+\_\+filters}} \index{allow\+\_\+filters@{allow\+\_\+filters}!Preferences@{Preferences}} \paragraph[{allow\+\_\+filters}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Filter} $>$ $\ast$ Preferences\+::allow\+\_\+filters ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a0de52e37ab68a0ae81e0c5a407655133} \index{Preferences@{Preferences}!default\+\_\+case@{default\+\_\+case}} \index{default\+\_\+case@{default\+\_\+case}!Preferences@{Preferences}} \paragraph[{default\+\_\+case}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::default\+\_\+case ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a52e7145907bb142641f73ac7791ce2c6} \index{Preferences@{Preferences}!delete\+\_\+duplicates@{delete\+\_\+duplicates}} \index{delete\+\_\+duplicates@{delete\+\_\+duplicates}!Preferences@{Preferences}} \paragraph[{delete\+\_\+duplicates}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::delete\+\_\+duplicates ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_ac91a505ec620abd1e2c84a0bce070f5b} \index{Preferences@{Preferences}!deny\+\_\+filters@{deny\+\_\+filters}} \index{deny\+\_\+filters@{deny\+\_\+filters}!Preferences@{Preferences}} \paragraph[{deny\+\_\+filters}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Filter} $>$ $\ast$ Preferences\+::deny\+\_\+filters ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_ad0e1567bd8f31112b27d225d9c975515} \index{Preferences@{Preferences}!headers\+\_\+file@{headers\+\_\+file}} \index{headers\+\_\+file@{headers\+\_\+file}!Preferences@{Preferences}} \paragraph[{headers\+\_\+file}]{\setlength{\rightskip}{0pt plus 5cm}string Preferences\+::headers\+\_\+file ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a12d88b8213c125d2e9261b8baf011f08} \index{Preferences@{Preferences}!highscore@{highscore}} \index{highscore@{highscore}!Preferences@{Preferences}} \paragraph[{highscore}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::highscore ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a46f20146880cbb8af12e63902e1f2b33} \index{Preferences@{Preferences}!ignore\+\_\+time\+\_\+stamp@{ignore\+\_\+time\+\_\+stamp}} \index{ignore\+\_\+time\+\_\+stamp@{ignore\+\_\+time\+\_\+stamp}!Preferences@{Preferences}} \paragraph[{ignore\+\_\+time\+\_\+stamp}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::ignore\+\_\+time\+\_\+stamp ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{classPreferences_a41b7f7c8a227ed615ce9a4489fc788ee} \index{Preferences@{Preferences}!init@{init}} \index{init@{init}!Preferences@{Preferences}} \paragraph[{init}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::init ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a46ecf6ca535a5aba2b68b941a66c81e3} \index{Preferences@{Preferences}!Instance@{Instance}} \index{Instance@{Instance}!Preferences@{Preferences}} \paragraph[{Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Preferences} \& Preferences\+::\+Instance ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [static]}}\label{classPreferences_ae4b949f0a47518c152e92120241d64d0} \index{Preferences@{Preferences}!kill@{kill}} \index{kill@{kill}!Preferences@{Preferences}} \paragraph[{kill}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::kill ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a70fbfe1ed1bdd745063c35b62084101d} \index{Preferences@{Preferences}!load@{load}} \index{load@{load}!Preferences@{Preferences}} \paragraph[{load}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::load ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a3d894765c4e383e24a70235ae610ad96} \index{Preferences@{Preferences}!log\+\_\+file@{log\+\_\+file}} \index{log\+\_\+file@{log\+\_\+file}!Preferences@{Preferences}} \paragraph[{log\+\_\+file}]{\setlength{\rightskip}{0pt plus 5cm}string Preferences\+::log\+\_\+file ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_ab70147910b8a36e9e17b6301c8dc07d3} \index{Preferences@{Preferences}!max\+\_\+size\+\_\+allow@{max\+\_\+size\+\_\+allow}} \index{max\+\_\+size\+\_\+allow@{max\+\_\+size\+\_\+allow}!Preferences@{Preferences}} \paragraph[{max\+\_\+size\+\_\+allow}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::max\+\_\+size\+\_\+allow ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a139bad88a384e35ef0754f915dfed37a} \index{Preferences@{Preferences}!max\+\_\+size\+\_\+deny@{max\+\_\+size\+\_\+deny}} \index{max\+\_\+size\+\_\+deny@{max\+\_\+size\+\_\+deny}!Preferences@{Preferences}} \paragraph[{max\+\_\+size\+\_\+deny}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::max\+\_\+size\+\_\+deny ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a05e741f8bb97aa0afb9639b50c55ee0c} \index{Preferences@{Preferences}!max\+\_\+size\+\_\+score@{max\+\_\+size\+\_\+score}} \index{max\+\_\+size\+\_\+score@{max\+\_\+size\+\_\+score}!Preferences@{Preferences}} \paragraph[{max\+\_\+size\+\_\+score}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Size\+\_\+score} Preferences\+::max\+\_\+size\+\_\+score ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a100e98fa9125b2eef221a61ee9d4309d} \index{Preferences@{Preferences}!maxlength@{maxlength}} \index{maxlength@{maxlength}!Preferences@{Preferences}} \paragraph[{maxlength}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::maxlength ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a413622da211f3883410d919cf0430c9e} \index{Preferences@{Preferences}!neg\+\_\+allows@{neg\+\_\+allows}} \index{neg\+\_\+allows@{neg\+\_\+allows}!Preferences@{Preferences}} \paragraph[{neg\+\_\+allows}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::neg\+\_\+allows ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a9d31cb5c1699a6e1aab998261c4d5f1c} \index{Preferences@{Preferences}!neg\+\_\+denies@{neg\+\_\+denies}} \index{neg\+\_\+denies@{neg\+\_\+denies}!Preferences@{Preferences}} \paragraph[{neg\+\_\+denies}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::neg\+\_\+denies ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a73cf94b6597102465633b9700ef5d4c5} \index{Preferences@{Preferences}!normal@{normal}} \index{normal@{normal}!Preferences@{Preferences}} \paragraph[{normal}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::normal ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a3d967d393f6dce817b3e5eb3618759f2} \index{Preferences@{Preferences}!open@{open}} \index{open@{open}!Preferences@{Preferences}} \paragraph[{open}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::open ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{name} \end{DoxyParamCaption} )}\label{classPreferences_aa7d1352a0a1152315d9e8cbb440ed603} \index{Preferences@{Preferences}!rc\+\_\+file@{rc\+\_\+file}} \index{rc\+\_\+file@{rc\+\_\+file}!Preferences@{Preferences}} \paragraph[{rc\+\_\+file}]{\setlength{\rightskip}{0pt plus 5cm}string Preferences\+::rc\+\_\+file ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_af77084e00a96be0f7f3dae21a9e46b88} \index{Preferences@{Preferences}!reg\+\_\+type@{reg\+\_\+type}} \index{reg\+\_\+type@{reg\+\_\+type}!Preferences@{Preferences}} \paragraph[{reg\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::reg\+\_\+type ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a66395b943993458d9df28cab988abda8} \index{Preferences@{Preferences}!return\+\_\+status@{return\+\_\+status}} \index{return\+\_\+status@{return\+\_\+status}!Preferences@{Preferences}} \paragraph[{return\+\_\+status}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::return\+\_\+status ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a3c7ec309cb681698faa84c3aefac3f20} \index{Preferences@{Preferences}!score\+\_\+filters@{score\+\_\+filters}} \index{score\+\_\+filters@{score\+\_\+filters}!Preferences@{Preferences}} \paragraph[{score\+\_\+filters}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Score} $>$ $\ast$ Preferences\+::score\+\_\+filters ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a520ff38784f3c2deb37628ff1a9bad64} \index{Preferences@{Preferences}!set\+\_\+connection@{set\+\_\+connection}} \index{set\+\_\+connection@{set\+\_\+connection}!Preferences@{Preferences}} \paragraph[{set\+\_\+connection}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+connection ( \begin{DoxyParamCaption} \item[{unsigned int}]{p = {\ttfamily POSIX\+\_\+SOCKETS}} \end{DoxyParamCaption} )}\label{classPreferences_a9267543cb81e484869a72634cfe2299a} \index{Preferences@{Preferences}!set\+\_\+default\+\_\+case@{set\+\_\+default\+\_\+case}} \index{set\+\_\+default\+\_\+case@{set\+\_\+default\+\_\+case}!Preferences@{Preferences}} \paragraph[{set\+\_\+default\+\_\+case}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+default\+\_\+case ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{new\+\_\+case} \end{DoxyParamCaption} )}\label{classPreferences_a5d05bbe427e01908135594e0ade41405} \index{Preferences@{Preferences}!set\+\_\+del\+\_\+duplicates@{set\+\_\+del\+\_\+duplicates}} \index{set\+\_\+del\+\_\+duplicates@{set\+\_\+del\+\_\+duplicates}!Preferences@{Preferences}} \paragraph[{set\+\_\+del\+\_\+duplicates}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+del\+\_\+duplicates ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{del} \end{DoxyParamCaption} )}\label{classPreferences_a4fb6746b2fe32a0abe1f5d2314d848c7} \index{Preferences@{Preferences}!set\+\_\+headers\+\_\+file@{set\+\_\+headers\+\_\+file}} \index{set\+\_\+headers\+\_\+file@{set\+\_\+headers\+\_\+file}!Preferences@{Preferences}} \paragraph[{set\+\_\+headers\+\_\+file}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+headers\+\_\+file ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{name} \end{DoxyParamCaption} )}\label{classPreferences_a0ca2b4346ae1eacc1ca2d0695af2029d} \index{Preferences@{Preferences}!set\+\_\+highscore@{set\+\_\+highscore}} \index{set\+\_\+highscore@{set\+\_\+highscore}!Preferences@{Preferences}} \paragraph[{set\+\_\+highscore}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+highscore ( \begin{DoxyParamCaption} \item[{int}]{val} \end{DoxyParamCaption} )}\label{classPreferences_abde69b5a180d3bbc743451efd57e1ac6} \index{Preferences@{Preferences}!set\+\_\+ignore\+\_\+time\+\_\+stamp@{set\+\_\+ignore\+\_\+time\+\_\+stamp}} \index{set\+\_\+ignore\+\_\+time\+\_\+stamp@{set\+\_\+ignore\+\_\+time\+\_\+stamp}!Preferences@{Preferences}} \paragraph[{set\+\_\+ignore\+\_\+time\+\_\+stamp}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+ignore\+\_\+time\+\_\+stamp ( \begin{DoxyParamCaption} \item[{bool}]{new\+\_\+ts = {\ttfamily true}} \end{DoxyParamCaption} )}\label{classPreferences_a533f5b01ef77e2051f2160de8506114d} \index{Preferences@{Preferences}!set\+\_\+log\+\_\+file@{set\+\_\+log\+\_\+file}} \index{set\+\_\+log\+\_\+file@{set\+\_\+log\+\_\+file}!Preferences@{Preferences}} \paragraph[{set\+\_\+log\+\_\+file}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+log\+\_\+file ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{name} \end{DoxyParamCaption} )}\label{classPreferences_aaa84f4623e247b3cb56f5ea7d0ac1579} \index{Preferences@{Preferences}!set\+\_\+max\+\_\+size\+\_\+allow@{set\+\_\+max\+\_\+size\+\_\+allow}} \index{set\+\_\+max\+\_\+size\+\_\+allow@{set\+\_\+max\+\_\+size\+\_\+allow}!Preferences@{Preferences}} \paragraph[{set\+\_\+max\+\_\+size\+\_\+allow}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+max\+\_\+size\+\_\+allow ( \begin{DoxyParamCaption} \item[{int}]{val} \end{DoxyParamCaption} )}\label{classPreferences_a2753e9e3bc3bf15c5ed73a26ef2db9ef} \index{Preferences@{Preferences}!set\+\_\+max\+\_\+size\+\_\+deny@{set\+\_\+max\+\_\+size\+\_\+deny}} \index{set\+\_\+max\+\_\+size\+\_\+deny@{set\+\_\+max\+\_\+size\+\_\+deny}!Preferences@{Preferences}} \paragraph[{set\+\_\+max\+\_\+size\+\_\+deny}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+max\+\_\+size\+\_\+deny ( \begin{DoxyParamCaption} \item[{int}]{val} \end{DoxyParamCaption} )}\label{classPreferences_a8323008e771d4a4cb577ea5a6cd5af6c} \index{Preferences@{Preferences}!set\+\_\+max\+\_\+size\+\_\+score@{set\+\_\+max\+\_\+size\+\_\+score}} \index{set\+\_\+max\+\_\+size\+\_\+score@{set\+\_\+max\+\_\+size\+\_\+score}!Preferences@{Preferences}} \paragraph[{set\+\_\+max\+\_\+size\+\_\+score}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+max\+\_\+size\+\_\+score ( \begin{DoxyParamCaption} \item[{int}]{score, } \item[{int}]{size} \end{DoxyParamCaption} )}\label{classPreferences_adc82f986dd6e1fdb2935938a3151aaf5} \index{Preferences@{Preferences}!set\+\_\+maxlength@{set\+\_\+maxlength}} \index{set\+\_\+maxlength@{set\+\_\+maxlength}!Preferences@{Preferences}} \paragraph[{set\+\_\+maxlength}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+maxlength ( \begin{DoxyParamCaption} \item[{int}]{val} \end{DoxyParamCaption} )}\label{classPreferences_a91e17b5740f9151bc077171fce90bea4} \index{Preferences@{Preferences}!set\+\_\+normal@{set\+\_\+normal}} \index{set\+\_\+normal@{set\+\_\+normal}!Preferences@{Preferences}} \paragraph[{set\+\_\+normal}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+normal ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{par} \end{DoxyParamCaption} )}\label{classPreferences_ae34eaff9c12d99475535b2d65b721aa8} \index{Preferences@{Preferences}!set\+\_\+passwd@{set\+\_\+passwd}} \index{set\+\_\+passwd@{set\+\_\+passwd}!Preferences@{Preferences}} \paragraph[{set\+\_\+passwd}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+passwd ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{pass} \end{DoxyParamCaption} )}\label{classPreferences_a3bba6dc213b23cfa8bd5dedab1d6bc2c} \index{Preferences@{Preferences}!set\+\_\+port@{set\+\_\+port}} \index{set\+\_\+port@{set\+\_\+port}!Preferences@{Preferences}} \paragraph[{set\+\_\+port}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+port ( \begin{DoxyParamCaption} \item[{unsigned int}]{p} \end{DoxyParamCaption} )}\label{classPreferences_a77f7fe1f6426aea3fdf372b8270d4807} \index{Preferences@{Preferences}!set\+\_\+protocol@{set\+\_\+protocol}} \index{set\+\_\+protocol@{set\+\_\+protocol}!Preferences@{Preferences}} \paragraph[{set\+\_\+protocol}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+protocol ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{prot} \end{DoxyParamCaption} )}\label{classPreferences_aafab91620b190a9376e0542a9f27d49c} \index{Preferences@{Preferences}!set\+\_\+rc\+\_\+file@{set\+\_\+rc\+\_\+file}} \index{set\+\_\+rc\+\_\+file@{set\+\_\+rc\+\_\+file}!Preferences@{Preferences}} \paragraph[{set\+\_\+rc\+\_\+file}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+rc\+\_\+file ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{name} \end{DoxyParamCaption} )}\label{classPreferences_ad845e83217b77cc0d4a08d7883b0a40f} \index{Preferences@{Preferences}!set\+\_\+reg\+\_\+type@{set\+\_\+reg\+\_\+type}} \index{set\+\_\+reg\+\_\+type@{set\+\_\+reg\+\_\+type}!Preferences@{Preferences}} \paragraph[{set\+\_\+reg\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+reg\+\_\+type ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{new\+\_\+type} \end{DoxyParamCaption} )}\label{classPreferences_ad72b32c7670ec7e04426bc05450e37e7} \index{Preferences@{Preferences}!set\+\_\+return\+\_\+status@{set\+\_\+return\+\_\+status}} \index{set\+\_\+return\+\_\+status@{set\+\_\+return\+\_\+status}!Preferences@{Preferences}} \paragraph[{set\+\_\+return\+\_\+status}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+return\+\_\+status ( \begin{DoxyParamCaption} \item[{bool}]{st} \end{DoxyParamCaption} )}\label{classPreferences_a2a080cea055eeee929d2845e2926d32f} \index{Preferences@{Preferences}!set\+\_\+server@{set\+\_\+server}} \index{set\+\_\+server@{set\+\_\+server}!Preferences@{Preferences}} \paragraph[{set\+\_\+server}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+server ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{server} \end{DoxyParamCaption} )}\label{classPreferences_ac650c18ffa32c10076c93167ca60c2d2} \index{Preferences@{Preferences}!set\+\_\+test\+\_\+mode@{set\+\_\+test\+\_\+mode}} \index{set\+\_\+test\+\_\+mode@{set\+\_\+test\+\_\+mode}!Preferences@{Preferences}} \paragraph[{set\+\_\+test\+\_\+mode}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+test\+\_\+mode ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{par} \end{DoxyParamCaption} )}\label{classPreferences_a26ea6a356d1492eb30e9d7b9853e79ff} \index{Preferences@{Preferences}!set\+\_\+time\+\_\+out@{set\+\_\+time\+\_\+out}} \index{set\+\_\+time\+\_\+out@{set\+\_\+time\+\_\+out}!Preferences@{Preferences}} \paragraph[{set\+\_\+time\+\_\+out}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+time\+\_\+out ( \begin{DoxyParamCaption} \item[{unsigned int}]{val} \end{DoxyParamCaption} )}\label{classPreferences_a63575bad9fc1a8c432a615f11fa907e2} \index{Preferences@{Preferences}!set\+\_\+usr@{set\+\_\+usr}} \index{set\+\_\+usr@{set\+\_\+usr}!Preferences@{Preferences}} \paragraph[{set\+\_\+usr}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+usr ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{user} \end{DoxyParamCaption} )}\label{classPreferences_a7ec7478498bfbfa417ddbb2499535da3} \index{Preferences@{Preferences}!set\+\_\+verbose\+\_\+level@{set\+\_\+verbose\+\_\+level}} \index{set\+\_\+verbose\+\_\+level@{set\+\_\+verbose\+\_\+level}!Preferences@{Preferences}} \paragraph[{set\+\_\+verbose\+\_\+level}]{\setlength{\rightskip}{0pt plus 5cm}void Preferences\+::set\+\_\+verbose\+\_\+level ( \begin{DoxyParamCaption} \item[{int}]{level} \end{DoxyParamCaption} )}\label{classPreferences_a3c2a97b12ae2ff9525d6318ffe214357} \index{Preferences@{Preferences}!test\+\_\+mode@{test\+\_\+mode}} \index{test\+\_\+mode@{test\+\_\+mode}!Preferences@{Preferences}} \paragraph[{test\+\_\+mode}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::test\+\_\+mode ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a90f544f3db10bb0518dbbd32595284b1} \index{Preferences@{Preferences}!time\+\_\+out@{time\+\_\+out}} \index{time\+\_\+out@{time\+\_\+out}!Preferences@{Preferences}} \paragraph[{time\+\_\+out}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Preferences\+::time\+\_\+out ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a7fe26586baf0ff47767bd1acc43d5a66} \index{Preferences@{Preferences}!verbose\+\_\+level@{verbose\+\_\+level}} \index{verbose\+\_\+level@{verbose\+\_\+level}!Preferences@{Preferences}} \paragraph[{verbose\+\_\+level}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::verbose\+\_\+level ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classPreferences_a588ae9819d902fb8ea13f51d55775efd} \subsubsection{Member Data Documentation} \index{Preferences@{Preferences}!\+\_\+ignore\+\_\+time\+\_\+stamp@{\+\_\+ignore\+\_\+time\+\_\+stamp}} \index{\+\_\+ignore\+\_\+time\+\_\+stamp@{\+\_\+ignore\+\_\+time\+\_\+stamp}!Preferences@{Preferences}} \paragraph[{\+\_\+ignore\+\_\+time\+\_\+stamp}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::\+\_\+ignore\+\_\+time\+\_\+stamp\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a43007940645a033e20e7ce5c467458c0} \index{Preferences@{Preferences}!accnts@{accnts}} \index{accnts@{accnts}!Preferences@{Preferences}} \paragraph[{accnts}]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Account}$>$ Preferences\+::accnts\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_ac9e5ebc179c47dd2d5a0de327282b2b6} \index{Preferences@{Preferences}!allows@{allows}} \index{allows@{allows}!Preferences@{Preferences}} \paragraph[{allows}]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Filter}$>$ Preferences\+::allows\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_ae669c185b2a41f9be2fdd45e555087bb} \index{Preferences@{Preferences}!conn\+\_\+type@{conn\+\_\+type}} \index{conn\+\_\+type@{conn\+\_\+type}!Preferences@{Preferences}} \paragraph[{conn\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::conn\+\_\+type\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_afac7a9c11e4a35c95e51d29f45d052f0} \index{Preferences@{Preferences}!cur\+\_\+account@{cur\+\_\+account}} \index{cur\+\_\+account@{cur\+\_\+account}!Preferences@{Preferences}} \paragraph[{cur\+\_\+account}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Account} Preferences\+::cur\+\_\+account\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_abf10c6052bd762cbd5d1fa97e6f0f3fa} \index{Preferences@{Preferences}!del\+\_\+duplicates@{del\+\_\+duplicates}} \index{del\+\_\+duplicates@{del\+\_\+duplicates}!Preferences@{Preferences}} \paragraph[{del\+\_\+duplicates}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::del\+\_\+duplicates\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a135a3f6f8172d7e2ef5d4b0868ae82e4} \index{Preferences@{Preferences}!denies@{denies}} \index{denies@{denies}!Preferences@{Preferences}} \paragraph[{denies}]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Filter}$>$ Preferences\+::denies\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a7c738e5cc26f54fc6b53914ba5c03a0f} \index{Preferences@{Preferences}!headers\+\_\+file\+\_\+name@{headers\+\_\+file\+\_\+name}} \index{headers\+\_\+file\+\_\+name@{headers\+\_\+file\+\_\+name}!Preferences@{Preferences}} \paragraph[{headers\+\_\+file\+\_\+name}]{\setlength{\rightskip}{0pt plus 5cm}string Preferences\+::headers\+\_\+file\+\_\+name\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a87d974f1c122f9d0f1c3202e31016268} \index{Preferences@{Preferences}!high\+\_\+score@{high\+\_\+score}} \index{high\+\_\+score@{high\+\_\+score}!Preferences@{Preferences}} \paragraph[{high\+\_\+score}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::high\+\_\+score\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a3e493f7da8cfe5c3cbf7d7b636a9dad6} \index{Preferences@{Preferences}!icase@{icase}} \index{icase@{icase}!Preferences@{Preferences}} \paragraph[{icase}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::icase\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_aee19bf8b0a59a564f29ae9ccc0f8196c} \index{Preferences@{Preferences}!log\+\_\+file\+\_\+name@{log\+\_\+file\+\_\+name}} \index{log\+\_\+file\+\_\+name@{log\+\_\+file\+\_\+name}!Preferences@{Preferences}} \paragraph[{log\+\_\+file\+\_\+name}]{\setlength{\rightskip}{0pt plus 5cm}string Preferences\+::log\+\_\+file\+\_\+name\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_ad28daf0963038ab26104c7ff5efc1fda} \index{Preferences@{Preferences}!max\+\_\+line\+\_\+length@{max\+\_\+line\+\_\+length}} \index{max\+\_\+line\+\_\+length@{max\+\_\+line\+\_\+length}!Preferences@{Preferences}} \paragraph[{max\+\_\+line\+\_\+length}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::max\+\_\+line\+\_\+length\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a9abf1e54f474ab8977fd0fe7dc864ea2} \index{Preferences@{Preferences}!max\+\_\+size@{max\+\_\+size}} \index{max\+\_\+size@{max\+\_\+size}!Preferences@{Preferences}} \paragraph[{max\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::max\+\_\+size\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a20c3d6f93eeb32c69be2cb59e2ed3f14} \index{Preferences@{Preferences}!max\+\_\+size\+\_\+friends@{max\+\_\+size\+\_\+friends}} \index{max\+\_\+size\+\_\+friends@{max\+\_\+size\+\_\+friends}!Preferences@{Preferences}} \paragraph[{max\+\_\+size\+\_\+friends}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::max\+\_\+size\+\_\+friends\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a68ae8561e444be21bac8f63ab715c9fd} \index{Preferences@{Preferences}!negative\+\_\+allows@{negative\+\_\+allows}} \index{negative\+\_\+allows@{negative\+\_\+allows}!Preferences@{Preferences}} \paragraph[{negative\+\_\+allows}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::negative\+\_\+allows\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_ab5e4ea28e24a76b1a67ae79fe2f338d6} \index{Preferences@{Preferences}!negative\+\_\+denies@{negative\+\_\+denies}} \index{negative\+\_\+denies@{negative\+\_\+denies}!Preferences@{Preferences}} \paragraph[{negative\+\_\+denies}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::negative\+\_\+denies\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_ac22010b49e7c5386f98f35cc248103d0} \index{Preferences@{Preferences}!negative\+\_\+scores@{negative\+\_\+scores}} \index{negative\+\_\+scores@{negative\+\_\+scores}!Preferences@{Preferences}} \paragraph[{negative\+\_\+scores}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::negative\+\_\+scores\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a85f352eb02d6ebf2f0e6cea6578a43ae} \index{Preferences@{Preferences}!norm@{norm}} \index{norm@{norm}!Preferences@{Preferences}} \paragraph[{norm}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::norm\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_ad95657188d0fbb0fed7bc661c3865bbb} \index{Preferences@{Preferences}!prefs\+\_\+file\+\_\+name@{prefs\+\_\+file\+\_\+name}} \index{prefs\+\_\+file\+\_\+name@{prefs\+\_\+file\+\_\+name}!Preferences@{Preferences}} \paragraph[{prefs\+\_\+file\+\_\+name}]{\setlength{\rightskip}{0pt plus 5cm}string Preferences\+::prefs\+\_\+file\+\_\+name\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a5d131246c4eed2e033e3af972532175d} \index{Preferences@{Preferences}!prefs\+\_\+stream@{prefs\+\_\+stream}} \index{prefs\+\_\+stream@{prefs\+\_\+stream}!Preferences@{Preferences}} \paragraph[{prefs\+\_\+stream}]{\setlength{\rightskip}{0pt plus 5cm}ifstream Preferences\+::prefs\+\_\+stream\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a2334e988652eedd1d15e1b03374af320} \index{Preferences@{Preferences}!ret\+\_\+status@{ret\+\_\+status}} \index{ret\+\_\+status@{ret\+\_\+status}!Preferences@{Preferences}} \paragraph[{ret\+\_\+status}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::ret\+\_\+status\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a713d423c626220c94e95208b9d896bab} \index{Preferences@{Preferences}!rreg\+\_\+type@{rreg\+\_\+type}} \index{rreg\+\_\+type@{rreg\+\_\+type}!Preferences@{Preferences}} \paragraph[{rreg\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::rreg\+\_\+type\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a1a45e20df7963123112b6518b5f5fe2e} \index{Preferences@{Preferences}!scores@{scores}} \index{scores@{scores}!Preferences@{Preferences}} \paragraph[{scores}]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Score}$>$ Preferences\+::scores\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_abc1d6bd5f0c2f924fb988304bc95d15d} \index{Preferences@{Preferences}!show\+\_\+headers@{show\+\_\+headers}} \index{show\+\_\+headers@{show\+\_\+headers}!Preferences@{Preferences}} \paragraph[{show\+\_\+headers}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::show\+\_\+headers\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a5260cb45cb821dd24ab12a4816f40f86} \index{Preferences@{Preferences}!size\+\_\+score@{size\+\_\+score}} \index{size\+\_\+score@{size\+\_\+score}!Preferences@{Preferences}} \paragraph[{size\+\_\+score}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Size\+\_\+score} Preferences\+::size\+\_\+score\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_acd0890b029c3eb860b86eb88d0e12141} \index{Preferences@{Preferences}!test@{test}} \index{test@{test}!Preferences@{Preferences}} \paragraph[{test}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::test\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a5ed08eca23db43e3e717119bfb2a277e} \index{Preferences@{Preferences}!test\+\_\+changed@{test\+\_\+changed}} \index{test\+\_\+changed@{test\+\_\+changed}!Preferences@{Preferences}} \paragraph[{test\+\_\+changed}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::test\+\_\+changed\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a55ba027c13ed59260f5b6a81534e7a9d} \index{Preferences@{Preferences}!time\+\_\+out\+\_\+val@{time\+\_\+out\+\_\+val}} \index{time\+\_\+out\+\_\+val@{time\+\_\+out\+\_\+val}!Preferences@{Preferences}} \paragraph[{time\+\_\+out\+\_\+val}]{\setlength{\rightskip}{0pt plus 5cm}unsigned Preferences\+::time\+\_\+out\+\_\+val\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_af7f2776dd59475a43314fa2fb27e300b} \index{Preferences@{Preferences}!verbosity@{verbosity}} \index{verbosity@{verbosity}!Preferences@{Preferences}} \paragraph[{verbosity}]{\setlength{\rightskip}{0pt plus 5cm}int Preferences\+::verbosity\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a5ed276d8b447d58049db610a0defe05b} \index{Preferences@{Preferences}!verbosity\+\_\+changed@{verbosity\+\_\+changed}} \index{verbosity\+\_\+changed@{verbosity\+\_\+changed}!Preferences@{Preferences}} \paragraph[{verbosity\+\_\+changed}]{\setlength{\rightskip}{0pt plus 5cm}bool Preferences\+::verbosity\+\_\+changed\hspace{0.3cm}{\ttfamily [protected]}}\label{classPreferences_a7516e6b40a41f6d846bf4c35f6a2ad76} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf preferences.\+hh}\item {\bf preferences.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/connection_8hh.tex0000644000175000017500000000037512675277621016703 00000000000000\subsection{connection.\+hh File Reference} \label{connection_8hh}\index{connection.\+hh@{connection.\+hh}} {\ttfamily \#include $<$string$>$}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Connection} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/score_8hh.tex0000644000175000017500000000043212675277621015651 00000000000000\subsection{score.\+hh File Reference} \label{score_8hh}\index{score.\+hh@{score.\+hh}} {\ttfamily \#include \char`\"{}filter.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Size\+\_\+score} \item class {\bf Score} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/md5_8h.tex0000644000175000017500000000511312675277621015054 00000000000000\subsection{md5.\+h File Reference} \label{md5_8h}\index{md5.\+h@{md5.\+h}} {\ttfamily \#include $<$sys/types.\+h$>$}\\* {\ttfamily \#include $<$inttypes.\+h$>$}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item struct {\bf M\+D5\+\_\+\+C\+T\+X} \end{DoxyCompactItemize} \subsubsection*{Typedefs} \begin{DoxyCompactItemize} \item typedef unsigned char $\ast$ {\bf P\+O\+I\+N\+T\+E\+R} \end{DoxyCompactItemize} \subsubsection*{Functions} \begin{DoxyCompactItemize} \item void {\bf M\+D5\+Init} ({\bf M\+D5\+\_\+\+C\+T\+X} $\ast$) \item void {\bf M\+D5\+Update} ({\bf M\+D5\+\_\+\+C\+T\+X} $\ast$, unsigned char $\ast$, unsigned int) \item void {\bf M\+D5\+Final} (unsigned char[16], {\bf M\+D5\+\_\+\+C\+T\+X} $\ast$) \item void {\bf gethash} (char[33], char $\ast$, char $\ast$) \end{DoxyCompactItemize} \subsubsection{Typedef Documentation} \index{md5.\+h@{md5.\+h}!P\+O\+I\+N\+T\+E\+R@{P\+O\+I\+N\+T\+E\+R}} \index{P\+O\+I\+N\+T\+E\+R@{P\+O\+I\+N\+T\+E\+R}!md5.\+h@{md5.\+h}} \paragraph[{P\+O\+I\+N\+T\+E\+R}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned char$\ast$ {\bf P\+O\+I\+N\+T\+E\+R}}\label{md5_8h_a73204e40637f83518fb695362ea084a4} \subsubsection{Function Documentation} \index{md5.\+h@{md5.\+h}!gethash@{gethash}} \index{gethash@{gethash}!md5.\+h@{md5.\+h}} \paragraph[{gethash}]{\setlength{\rightskip}{0pt plus 5cm}void gethash ( \begin{DoxyParamCaption} \item[{char}]{[33], } \item[{char $\ast$}]{, } \item[{char $\ast$}]{} \end{DoxyParamCaption} )}\label{md5_8h_a7d2e74be253746111f6c5fe55aecb677} \index{md5.\+h@{md5.\+h}!M\+D5\+Final@{M\+D5\+Final}} \index{M\+D5\+Final@{M\+D5\+Final}!md5.\+h@{md5.\+h}} \paragraph[{M\+D5\+Final}]{\setlength{\rightskip}{0pt plus 5cm}void M\+D5\+Final ( \begin{DoxyParamCaption} \item[{unsigned}]{char[16], } \item[{{\bf M\+D5\+\_\+\+C\+T\+X} $\ast$}]{} \end{DoxyParamCaption} )}\label{md5_8h_a4d0e4f16069f15e42f92028772aa7dc9} \index{md5.\+h@{md5.\+h}!M\+D5\+Init@{M\+D5\+Init}} \index{M\+D5\+Init@{M\+D5\+Init}!md5.\+h@{md5.\+h}} \paragraph[{M\+D5\+Init}]{\setlength{\rightskip}{0pt plus 5cm}void M\+D5\+Init ( \begin{DoxyParamCaption} \item[{{\bf M\+D5\+\_\+\+C\+T\+X} $\ast$}]{} \end{DoxyParamCaption} )}\label{md5_8h_a43e334cd23b7e92d1ee2f8b26071b1f0} \index{md5.\+h@{md5.\+h}!M\+D5\+Update@{M\+D5\+Update}} \index{M\+D5\+Update@{M\+D5\+Update}!md5.\+h@{md5.\+h}} \paragraph[{M\+D5\+Update}]{\setlength{\rightskip}{0pt plus 5cm}void M\+D5\+Update ( \begin{DoxyParamCaption} \item[{{\bf M\+D5\+\_\+\+C\+T\+X} $\ast$}]{, } \item[{unsigned char $\ast$}]{, } \item[{unsigned}]{int} \end{DoxyParamCaption} )}\label{md5_8h_a94a6d6c9c4c21729d906f81d7f431313} mailfilter-0.8.4/doc/api/latex/classPOP3.eps0000644000175000017500000000743112675277621015533 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 895.522388 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 0.558333 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 3 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (POP3) cw (Protocol) cw (APOP) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (POP3) 0.000000 1.000000 box (Protocol) 0.000000 2.000000 box (APOP) 0.000000 0.000000 box % ----- relations ----- solid 0 0.000000 1.000000 out solid 1 0.000000 2.000000 in solid 1 0.000000 0.250000 out solid 0 0.000000 0.750000 in mailfilter-0.8.4/doc/api/latex/classScore.tex0000644000175000017500000000312112675277621016066 00000000000000\subsection{Score Class Reference} \label{classScore}\index{Score@{Score}} {\ttfamily \#include $<$score.\+hh$>$} Inheritance diagram for Score\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2.000000cm]{classScore} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item int {\bf score} (void) {\bf const} \item void {\bf set\+\_\+score} (int) \end{DoxyCompactItemize} \subsubsection*{Protected Attributes} \begin{DoxyCompactItemize} \item int {\bf scr} \end{DoxyCompactItemize} \subsubsection{Member Function Documentation} \index{Score@{Score}!score@{score}} \index{score@{score}!Score@{Score}} \paragraph[{score}]{\setlength{\rightskip}{0pt plus 5cm}int Score\+::score ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const}\label{classScore_a3056988737dd58e89c153f5cc0b66fa2} \index{Score@{Score}!set\+\_\+score@{set\+\_\+score}} \index{set\+\_\+score@{set\+\_\+score}!Score@{Score}} \paragraph[{set\+\_\+score}]{\setlength{\rightskip}{0pt plus 5cm}void Score\+::set\+\_\+score ( \begin{DoxyParamCaption} \item[{int}]{} \end{DoxyParamCaption} )}\label{classScore_ae2b4280bd9e9de22eb9b8482d5d043fb} \subsubsection{Member Data Documentation} \index{Score@{Score}!scr@{scr}} \index{scr@{scr}!Score@{Score}} \paragraph[{scr}]{\setlength{\rightskip}{0pt plus 5cm}int Score\+::scr\hspace{0.3cm}{\ttfamily [protected]}}\label{classScore_afd3f23c49930d499fdcd677799e583a3} The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} \item {\bf score.\+hh}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/getopt_8c.tex0000644000175000017500000001770412675277621015675 00000000000000\subsection{getopt.\+c File Reference} \label{getopt_8c}\index{getopt.\+c@{getopt.\+c}} {\ttfamily \#include $<$stdio.\+h$>$}\\* {\ttfamily \#include \char`\"{}getopt.\+h\char`\"{}}\\* {\ttfamily \#include $<$strings.\+h$>$}\\* \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf \+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O} \item \#define {\bf const} \item \#define {\bf G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}~2 \item \#define {\bf \+\_\+}(msgid)~(msgid) \item \#define {\bf S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S}(ch1, ch2) \item \#define {\bf N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P}~(argv[{\bf optind}][0] != '-\/' $\vert$$\vert$ argv[{\bf optind}][1] == '\textbackslash{}0') \end{DoxyCompactItemize} \subsubsection*{Enumerations} \begin{DoxyCompactItemize} \item enum \{ {\bf R\+E\+Q\+U\+I\+R\+E\+\_\+\+O\+R\+D\+E\+R}, {\bf P\+E\+R\+M\+U\+T\+E}, {\bf R\+E\+T\+U\+R\+N\+\_\+\+I\+N\+\_\+\+O\+R\+D\+E\+R} \} \end{DoxyCompactItemize} \subsubsection*{Functions} \begin{DoxyCompactItemize} \item char $\ast$ {\bf getenv} () \item int {\bf \+\_\+getopt\+\_\+internal} (int argc, char $\ast${\bf const} $\ast$argv, {\bf const} char $\ast$optstring, {\bf const} struct {\bf option} $\ast$longopts, int $\ast$longind, int long\+\_\+only) \item int {\bf getopt} (int argc, char $\ast${\bf const} $\ast$argv, {\bf const} char $\ast$optstring) \end{DoxyCompactItemize} \subsubsection*{Variables} \begin{DoxyCompactItemize} \item char $\ast$ {\bf optarg} \item int {\bf optind} = 1 \item int {\bf \+\_\+\+\_\+getopt\+\_\+initialized} \item int {\bf opterr} = 1 \item int {\bf optopt} = '?' \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{getopt.\+c@{getopt.\+c}!\+\_\+@{\+\_\+}} \index{\+\_\+@{\+\_\+}!getopt.\+c@{getopt.\+c}} \paragraph[{\+\_\+}]{\setlength{\rightskip}{0pt plus 5cm}\#define \+\_\+( \begin{DoxyParamCaption} \item[{}]{msgid} \end{DoxyParamCaption} )~(msgid)}\label{getopt_8c_a86a239addea586602343007a370bf8ad} \index{getopt.\+c@{getopt.\+c}!\+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O@{\+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O}} \index{\+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O@{\+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O}!getopt.\+c@{getopt.\+c}} \paragraph[{\+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O}]{\setlength{\rightskip}{0pt plus 5cm}\#define \+\_\+\+N\+O\+\_\+\+P\+R\+O\+T\+O}\label{getopt_8c_a9bcd7db9771ff03b7e5a9fec9c489861} \index{getopt.\+c@{getopt.\+c}!const@{const}} \index{const@{const}!getopt.\+c@{getopt.\+c}} \paragraph[{const}]{\setlength{\rightskip}{0pt plus 5cm}\#define const}\label{getopt_8c_a2c212835823e3c54a8ab6d95c652660e} \index{getopt.\+c@{getopt.\+c}!G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N@{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}} \index{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N@{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}!getopt.\+c@{getopt.\+c}} \paragraph[{G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define G\+E\+T\+O\+P\+T\+\_\+\+I\+N\+T\+E\+R\+F\+A\+C\+E\+\_\+\+V\+E\+R\+S\+I\+O\+N~2}\label{getopt_8c_a5325c715897861c318d3ae312ac452cc} \index{getopt.\+c@{getopt.\+c}!N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P@{N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P}} \index{N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P@{N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P}!getopt.\+c@{getopt.\+c}} \paragraph[{N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\+O\+N\+O\+P\+T\+I\+O\+N\+\_\+\+P~(argv[{\bf optind}][0] != '-\/' $\vert$$\vert$ argv[{\bf optind}][1] == '\textbackslash{}0')}\label{getopt_8c_a71ceb8911d64b39b402041ba5ea8453c} \index{getopt.\+c@{getopt.\+c}!S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S@{S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S}} \index{S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S@{S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S}!getopt.\+c@{getopt.\+c}} \paragraph[{S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\+W\+A\+P\+\_\+\+F\+L\+A\+G\+S( \begin{DoxyParamCaption} \item[{}]{ch1, } \item[{}]{ch2} \end{DoxyParamCaption} )}\label{getopt_8c_a6e06e56c5fa96faaf47f3b231e015e35} \subsubsection{Enumeration Type Documentation} \paragraph[{anonymous enum}]{\setlength{\rightskip}{0pt plus 5cm}anonymous enum}\label{getopt_8c_a06fc87d81c62e9abb8790b6e5713c55b} \begin{Desc} \item[Enumerator]\par \begin{description} \index{R\+E\+Q\+U\+I\+R\+E\+\_\+\+O\+R\+D\+E\+R@{R\+E\+Q\+U\+I\+R\+E\+\_\+\+O\+R\+D\+E\+R}!getopt.\+c@{getopt.\+c}}\index{getopt.\+c@{getopt.\+c}!R\+E\+Q\+U\+I\+R\+E\+\_\+\+O\+R\+D\+E\+R@{R\+E\+Q\+U\+I\+R\+E\+\_\+\+O\+R\+D\+E\+R}}\item[{\em R\+E\+Q\+U\+I\+R\+E\+\_\+\+O\+R\+D\+E\+R\label{getopt_8c_a06fc87d81c62e9abb8790b6e5713c55ba0e73a0691c110b1442d8364d1d12eccc} }]\index{P\+E\+R\+M\+U\+T\+E@{P\+E\+R\+M\+U\+T\+E}!getopt.\+c@{getopt.\+c}}\index{getopt.\+c@{getopt.\+c}!P\+E\+R\+M\+U\+T\+E@{P\+E\+R\+M\+U\+T\+E}}\item[{\em P\+E\+R\+M\+U\+T\+E\label{getopt_8c_a06fc87d81c62e9abb8790b6e5713c55bacfdde4b47c27f4efbd832e1ac7f8a8fc} }]\index{R\+E\+T\+U\+R\+N\+\_\+\+I\+N\+\_\+\+O\+R\+D\+E\+R@{R\+E\+T\+U\+R\+N\+\_\+\+I\+N\+\_\+\+O\+R\+D\+E\+R}!getopt.\+c@{getopt.\+c}}\index{getopt.\+c@{getopt.\+c}!R\+E\+T\+U\+R\+N\+\_\+\+I\+N\+\_\+\+O\+R\+D\+E\+R@{R\+E\+T\+U\+R\+N\+\_\+\+I\+N\+\_\+\+O\+R\+D\+E\+R}}\item[{\em R\+E\+T\+U\+R\+N\+\_\+\+I\+N\+\_\+\+O\+R\+D\+E\+R\label{getopt_8c_a06fc87d81c62e9abb8790b6e5713c55ba3c56550bfafe809d9214b863b69c31c5} }]\end{description} \end{Desc} \subsubsection{Function Documentation} \index{getopt.\+c@{getopt.\+c}!\+\_\+getopt\+\_\+internal@{\+\_\+getopt\+\_\+internal}} \index{\+\_\+getopt\+\_\+internal@{\+\_\+getopt\+\_\+internal}!getopt.\+c@{getopt.\+c}} \paragraph[{\+\_\+getopt\+\_\+internal}]{\setlength{\rightskip}{0pt plus 5cm}int \+\_\+getopt\+\_\+internal ( \begin{DoxyParamCaption} \item[{int}]{argc, } \item[{char $\ast${\bf const} $\ast$}]{argv, } \item[{{\bf const} char $\ast$}]{optstring, } \item[{{\bf const} struct {\bf option} $\ast$}]{longopts, } \item[{int $\ast$}]{longind, } \item[{int}]{long\+\_\+only} \end{DoxyParamCaption} )}\label{getopt_8c_a0df92a0ae8fe1fd43268c738f548674f} \index{getopt.\+c@{getopt.\+c}!getenv@{getenv}} \index{getenv@{getenv}!getopt.\+c@{getopt.\+c}} \paragraph[{getenv}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ getenv ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )}\label{getopt_8c_aee28fd8a0e40b6d958f7d20348e45368} \index{getopt.\+c@{getopt.\+c}!getopt@{getopt}} \index{getopt@{getopt}!getopt.\+c@{getopt.\+c}} \paragraph[{getopt}]{\setlength{\rightskip}{0pt plus 5cm}int getopt ( \begin{DoxyParamCaption} \item[{int}]{argc, } \item[{char $\ast${\bf const} $\ast$}]{argv, } \item[{{\bf const} char $\ast$}]{optstring} \end{DoxyParamCaption} )}\label{getopt_8c_a1b2ada39ab92162c6ec9c67c8093fa2e} \subsubsection{Variable Documentation} \index{getopt.\+c@{getopt.\+c}!\+\_\+\+\_\+getopt\+\_\+initialized@{\+\_\+\+\_\+getopt\+\_\+initialized}} \index{\+\_\+\+\_\+getopt\+\_\+initialized@{\+\_\+\+\_\+getopt\+\_\+initialized}!getopt.\+c@{getopt.\+c}} \paragraph[{\+\_\+\+\_\+getopt\+\_\+initialized}]{\setlength{\rightskip}{0pt plus 5cm}int \+\_\+\+\_\+getopt\+\_\+initialized}\label{getopt_8c_a28286be757527aeb1db951b5da9aeec1} \index{getopt.\+c@{getopt.\+c}!optarg@{optarg}} \index{optarg@{optarg}!getopt.\+c@{getopt.\+c}} \paragraph[{optarg}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ optarg}\label{getopt_8c_adb50a0eab9fed92fc3bfc7dfa4f2c410} \index{getopt.\+c@{getopt.\+c}!opterr@{opterr}} \index{opterr@{opterr}!getopt.\+c@{getopt.\+c}} \paragraph[{opterr}]{\setlength{\rightskip}{0pt plus 5cm}int opterr = 1}\label{getopt_8c_ae30f05ee1e2e5652f174a35c7875d25e} \index{getopt.\+c@{getopt.\+c}!optind@{optind}} \index{optind@{optind}!getopt.\+c@{getopt.\+c}} \paragraph[{optind}]{\setlength{\rightskip}{0pt plus 5cm}int optind = 1}\label{getopt_8c_ad5e1c16213bbee2d5e8cc363309f418c} \index{getopt.\+c@{getopt.\+c}!optopt@{optopt}} \index{optopt@{optopt}!getopt.\+c@{getopt.\+c}} \paragraph[{optopt}]{\setlength{\rightskip}{0pt plus 5cm}int optopt = '?'}\label{getopt_8c_a475b8db98445da73e5f62a1ef6324b95} mailfilter-0.8.4/doc/api/latex/apop_8hh.tex0000644000175000017500000000036612675277621015503 00000000000000\subsection{apop.\+hh File Reference} \label{apop_8hh}\index{apop.\+hh@{apop.\+hh}} {\ttfamily \#include \char`\"{}pop3.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf A\+P\+O\+P} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classSize__score.tex0000644000175000017500000000173112675277621017264 00000000000000\subsection{Size\+\_\+score Class Reference} \label{classSize__score}\index{Size\+\_\+score@{Size\+\_\+score}} {\ttfamily \#include $<$score.\+hh$>$} \subsubsection*{Public Attributes} \begin{DoxyCompactItemize} \item int {\bf score} \item int {\bf size} \end{DoxyCompactItemize} \subsubsection{Member Data Documentation} \index{Size\+\_\+score@{Size\+\_\+score}!score@{score}} \index{score@{score}!Size\+\_\+score@{Size\+\_\+score}} \paragraph[{score}]{\setlength{\rightskip}{0pt plus 5cm}int Size\+\_\+score\+::score}\label{classSize__score_ae7e169d184ed71fff61c30d21e7a98ad} \index{Size\+\_\+score@{Size\+\_\+score}!size@{size}} \index{size@{size}!Size\+\_\+score@{Size\+\_\+score}} \paragraph[{size}]{\setlength{\rightskip}{0pt plus 5cm}int Size\+\_\+score\+::size}\label{classSize__score_a99ca826b4b43ecb74db8a11e1494c332} The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} \item {\bf score.\+hh}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classAccount.tex0000644000175000017500000001656512675277621016427 00000000000000\subsection{Account Class Reference} \label{classAccount}\index{Account@{Account}} {\ttfamily \#include $<$account.\+hh$>$} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item void {\bf clear} (void) \item string {\bf server} (void) \item void {\bf set\+\_\+server} ({\bf const} char $\ast$) \item string {\bf usr} (void) \item void {\bf set\+\_\+usr} ({\bf const} char $\ast$) \item string {\bf passwd} (void) \item void {\bf set\+\_\+passwd} ({\bf const} char $\ast$) \item unsigned int {\bf port} (void) \item void {\bf set\+\_\+port} (unsigned int) \item void {\bf set\+\_\+protocol} (unsigned int) \item unsigned int {\bf protocol} (void) \item void {\bf set\+\_\+connection} (unsigned int=P\+O\+S\+I\+X\+\_\+\+S\+O\+C\+K\+E\+T\+S) \+\_\+\+\_\+attribute\+\_\+\+\_\+((unused)) \item int {\bf check} (void) \end{DoxyCompactItemize} \subsubsection*{Protected Attributes} \begin{DoxyCompactItemize} \item string {\bf serv} \item string {\bf user} \item string {\bf pass} \item int {\bf the\+\_\+port} \item vector$<$ string $>$ {\bf msg\+\_\+ids} \item {\bf Protocol} $\ast$ {\bf proto} \item {\bf Connection} $\ast$ {\bf conn} \end{DoxyCompactItemize} \subsubsection{Member Function Documentation} \index{Account@{Account}!check@{check}} \index{check@{check}!Account@{Account}} \paragraph[{check}]{\setlength{\rightskip}{0pt plus 5cm}int Account\+::check ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_adf5024f4417af54a47002a923e5a2eff} \index{Account@{Account}!clear@{clear}} \index{clear@{clear}!Account@{Account}} \paragraph[{clear}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::clear ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_aab526ed969bf48bfeb859788a01fde89} \index{Account@{Account}!passwd@{passwd}} \index{passwd@{passwd}!Account@{Account}} \paragraph[{passwd}]{\setlength{\rightskip}{0pt plus 5cm}string Account\+::passwd ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_a7f25ed19eb6c0027a90f6cc88dc8edbe} \index{Account@{Account}!port@{port}} \index{port@{port}!Account@{Account}} \paragraph[{port}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Account\+::port ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_acd6ca787c1999663b0932960c37e7212} \index{Account@{Account}!protocol@{protocol}} \index{protocol@{protocol}!Account@{Account}} \paragraph[{protocol}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Account\+::protocol ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_af52be96397b609899ef92a4f81ce0318} \index{Account@{Account}!server@{server}} \index{server@{server}!Account@{Account}} \paragraph[{server}]{\setlength{\rightskip}{0pt plus 5cm}string Account\+::server ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_a4a25379a5d5e31925b4ed760b733f843} \index{Account@{Account}!set\+\_\+connection@{set\+\_\+connection}} \index{set\+\_\+connection@{set\+\_\+connection}!Account@{Account}} \paragraph[{set\+\_\+connection}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::set\+\_\+connection ( \begin{DoxyParamCaption} \item[{unsigned int}]{the\+\_\+connection\+\_\+type = {\ttfamily POSIX\+\_\+SOCKETS}} \end{DoxyParamCaption} )}\label{classAccount_aed2c0897fcc20fe0bf6f0f61152c6506} \index{Account@{Account}!set\+\_\+passwd@{set\+\_\+passwd}} \index{set\+\_\+passwd@{set\+\_\+passwd}!Account@{Account}} \paragraph[{set\+\_\+passwd}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::set\+\_\+passwd ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{s} \end{DoxyParamCaption} )}\label{classAccount_a0b95866300803c8731e5731b1babcefa} \index{Account@{Account}!set\+\_\+port@{set\+\_\+port}} \index{set\+\_\+port@{set\+\_\+port}!Account@{Account}} \paragraph[{set\+\_\+port}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::set\+\_\+port ( \begin{DoxyParamCaption} \item[{unsigned int}]{p} \end{DoxyParamCaption} )}\label{classAccount_a06bd6489cd330825647040028df6a8f0} \index{Account@{Account}!set\+\_\+protocol@{set\+\_\+protocol}} \index{set\+\_\+protocol@{set\+\_\+protocol}!Account@{Account}} \paragraph[{set\+\_\+protocol}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::set\+\_\+protocol ( \begin{DoxyParamCaption} \item[{unsigned int}]{prot} \end{DoxyParamCaption} )}\label{classAccount_a931770ba3852d9242d2855806c8f1ce5} \index{Account@{Account}!set\+\_\+server@{set\+\_\+server}} \index{set\+\_\+server@{set\+\_\+server}!Account@{Account}} \paragraph[{set\+\_\+server}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::set\+\_\+server ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{s} \end{DoxyParamCaption} )}\label{classAccount_add86acef57f14b961902da7d7a3fd76f} \index{Account@{Account}!set\+\_\+usr@{set\+\_\+usr}} \index{set\+\_\+usr@{set\+\_\+usr}!Account@{Account}} \paragraph[{set\+\_\+usr}]{\setlength{\rightskip}{0pt plus 5cm}void Account\+::set\+\_\+usr ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{s} \end{DoxyParamCaption} )}\label{classAccount_acdaf877c2d2b079a2db16ad55f4bfae9} \index{Account@{Account}!usr@{usr}} \index{usr@{usr}!Account@{Account}} \paragraph[{usr}]{\setlength{\rightskip}{0pt plus 5cm}string Account\+::usr ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classAccount_a8de162812b38ad6684fff4e30c719450} \subsubsection{Member Data Documentation} \index{Account@{Account}!conn@{conn}} \index{conn@{conn}!Account@{Account}} \paragraph[{conn}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Connection}$\ast$ Account\+::conn\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_a4b5f5c83f5b3f0d2e6ce9c9358f76385} \index{Account@{Account}!msg\+\_\+ids@{msg\+\_\+ids}} \index{msg\+\_\+ids@{msg\+\_\+ids}!Account@{Account}} \paragraph[{msg\+\_\+ids}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$string$>$ Account\+::msg\+\_\+ids\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_a53b312e8085daefa3bb18744e809bab0} \index{Account@{Account}!pass@{pass}} \index{pass@{pass}!Account@{Account}} \paragraph[{pass}]{\setlength{\rightskip}{0pt plus 5cm}string Account\+::pass\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_aaf19d39e46cbf2b9191eed809efc5be2} \index{Account@{Account}!proto@{proto}} \index{proto@{proto}!Account@{Account}} \paragraph[{proto}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Protocol}$\ast$ Account\+::proto\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_adc82f1839409153a48769e5b219959e9} \index{Account@{Account}!serv@{serv}} \index{serv@{serv}!Account@{Account}} \paragraph[{serv}]{\setlength{\rightskip}{0pt plus 5cm}string Account\+::serv\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_a4f91e37f28b4580d63cac1458fcae39d} \index{Account@{Account}!the\+\_\+port@{the\+\_\+port}} \index{the\+\_\+port@{the\+\_\+port}!Account@{Account}} \paragraph[{the\+\_\+port}]{\setlength{\rightskip}{0pt plus 5cm}int Account\+::the\+\_\+port\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_a0e5cb33c4ca7248fb6efa372286cad25} \index{Account@{Account}!user@{user}} \index{user@{user}!Account@{Account}} \paragraph[{user}]{\setlength{\rightskip}{0pt plus 5cm}string Account\+::user\hspace{0.3cm}{\ttfamily [protected]}}\label{classAccount_ac579ebb833a6f1be4be9a2b7185cf03e} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf account.\+hh}\item {\bf account.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classFilter.tex0000644000175000017500000001041112675277621016240 00000000000000\subsection{Filter Class Reference} \label{classFilter}\index{Filter@{Filter}} {\ttfamily \#include $<$filter.\+hh$>$} Inheritance diagram for Filter\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2.000000cm]{classFilter} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item {\bf Filter} (void) \item {\bf $\sim$\+Filter} (void) \item string {\bf expression} (void) {\bf const} \item void {\bf set\+\_\+expression} ({\bf const} char $\ast$) \item int {\bf compile} (void) \item void {\bf set\+\_\+negativity} (bool) \item bool {\bf is\+\_\+negative} (void) {\bf const} \item int {\bf ccase} (void) {\bf const} \item void {\bf set\+\_\+case} (int) \item {\bf const} regex\+\_\+t $\ast$ {\bf comp\+\_\+exp} (void) {\bf const} \end{DoxyCompactItemize} \subsubsection{Constructor \& Destructor Documentation} \index{Filter@{Filter}!Filter@{Filter}} \index{Filter@{Filter}!Filter@{Filter}} \paragraph[{Filter}]{\setlength{\rightskip}{0pt plus 5cm}Filter\+::\+Filter ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classFilter_ab86c90163e27f662edd126f5ae0d0334} \index{Filter@{Filter}!````~Filter@{$\sim$\+Filter}} \index{````~Filter@{$\sim$\+Filter}!Filter@{Filter}} \paragraph[{$\sim$\+Filter}]{\setlength{\rightskip}{0pt plus 5cm}Filter\+::$\sim$\+Filter ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classFilter_a5d7ba6a80d45796887ac4032b6dbb29a} \subsubsection{Member Function Documentation} \index{Filter@{Filter}!ccase@{ccase}} \index{ccase@{ccase}!Filter@{Filter}} \paragraph[{ccase}]{\setlength{\rightskip}{0pt plus 5cm}int Filter\+::ccase ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const}\label{classFilter_ae693aa3a6cc5c221cdb6001d3a993ae5} \index{Filter@{Filter}!comp\+\_\+exp@{comp\+\_\+exp}} \index{comp\+\_\+exp@{comp\+\_\+exp}!Filter@{Filter}} \paragraph[{comp\+\_\+exp}]{\setlength{\rightskip}{0pt plus 5cm}{\bf const} regex\+\_\+t $\ast$ Filter\+::comp\+\_\+exp ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const}\label{classFilter_a03ba94c3909178285d7b3592223e3f81} \index{Filter@{Filter}!compile@{compile}} \index{compile@{compile}!Filter@{Filter}} \paragraph[{compile}]{\setlength{\rightskip}{0pt plus 5cm}int Filter\+::compile ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classFilter_a04dad870beefa75e77ab935c829f01f9} \index{Filter@{Filter}!expression@{expression}} \index{expression@{expression}!Filter@{Filter}} \paragraph[{expression}]{\setlength{\rightskip}{0pt plus 5cm}string Filter\+::expression ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const}\label{classFilter_a9de91db7ddb1391ca715dda8a24f6fce} \index{Filter@{Filter}!is\+\_\+negative@{is\+\_\+negative}} \index{is\+\_\+negative@{is\+\_\+negative}!Filter@{Filter}} \paragraph[{is\+\_\+negative}]{\setlength{\rightskip}{0pt plus 5cm}bool Filter\+::is\+\_\+negative ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const}\label{classFilter_a2da73a93e4248a1077978f3ccb5dda30} \index{Filter@{Filter}!set\+\_\+case@{set\+\_\+case}} \index{set\+\_\+case@{set\+\_\+case}!Filter@{Filter}} \paragraph[{set\+\_\+case}]{\setlength{\rightskip}{0pt plus 5cm}void Filter\+::set\+\_\+case ( \begin{DoxyParamCaption} \item[{int}]{c} \end{DoxyParamCaption} )}\label{classFilter_ad08de0b1335d5e02a663ec537aceebe4} \index{Filter@{Filter}!set\+\_\+expression@{set\+\_\+expression}} \index{set\+\_\+expression@{set\+\_\+expression}!Filter@{Filter}} \paragraph[{set\+\_\+expression}]{\setlength{\rightskip}{0pt plus 5cm}void Filter\+::set\+\_\+expression ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{exp} \end{DoxyParamCaption} )}\label{classFilter_ae97e377d363d2eb89fdc798b5aecd3bf} \index{Filter@{Filter}!set\+\_\+negativity@{set\+\_\+negativity}} \index{set\+\_\+negativity@{set\+\_\+negativity}!Filter@{Filter}} \paragraph[{set\+\_\+negativity}]{\setlength{\rightskip}{0pt plus 5cm}void Filter\+::set\+\_\+negativity ( \begin{DoxyParamCaption} \item[{bool}]{t} \end{DoxyParamCaption} )}\label{classFilter_a8aec8a32fb0ecfb9a47d4b3f34cc5c18} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf filter.\+hh}\item {\bf filter.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classAPOP.eps0000644000175000017500000000743112675277621015551 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 895.522388 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 0.558333 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 3 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (APOP) cw (POP3) cw (Protocol) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (APOP) 0.000000 0.000000 box (POP3) 0.000000 1.000000 box (Protocol) 0.000000 2.000000 box % ----- relations ----- solid 0 0.000000 0.000000 out solid 1 0.000000 1.000000 in solid 0 0.000000 1.000000 out solid 1 0.000000 2.000000 in mailfilter-0.8.4/doc/api/latex/feedback_8cc.tex0000644000175000017500000000057112675277621016254 00000000000000\subsection{feedback.\+cc File Reference} \label{feedback_8cc}\index{feedback.\+cc@{feedback.\+cc}} {\ttfamily \#include $<$iostream$>$}\\* {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$cstring$>$}\\* {\ttfamily \#include $<$fstream$>$}\\* {\ttfamily \#include \char`\"{}feedback.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}preferences.\+hh\char`\"{}}\\* mailfilter-0.8.4/doc/api/latex/feedback_8hh.tex0000644000175000017500000000043212675277621016262 00000000000000\subsection{feedback.\+hh File Reference} \label{feedback_8hh}\index{feedback.\+hh@{feedback.\+hh}} {\ttfamily \#include $<$fstream$>$}\\* {\ttfamily \#include $<$string$>$}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Feedback} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classPOP3.tex0000644000175000017500000000640412675277621015543 00000000000000\subsection{P\+O\+P3 Class Reference} \label{classPOP3}\index{P\+O\+P3@{P\+O\+P3}} {\ttfamily \#include $<$pop3.\+hh$>$} Inheritance diagram for P\+O\+P3\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=3.000000cm]{classPOP3} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item bool {\bf login} ({\bf const} char $\ast$, {\bf const} char $\ast$, {\bf const} unsigned int) {\bf const} \item bool {\bf logout} (void) {\bf const} \item int {\bf remove\+\_\+msg} ({\bf const} unsigned int) {\bf const} \item int {\bf status} (void) {\bf const} \item int {\bf scan} (void) {\bf const} \end{DoxyCompactItemize} \subsubsection*{Additional Inherited Members} \subsubsection{Member Function Documentation} \index{P\+O\+P3@{P\+O\+P3}!login@{login}} \index{login@{login}!P\+O\+P3@{P\+O\+P3}} \paragraph[{login}]{\setlength{\rightskip}{0pt plus 5cm}bool P\+O\+P3\+::login ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{usr, } \item[{{\bf const} char $\ast$}]{pass, } \item[{{\bf const} unsigned int}]{enc} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classPOP3_a824f175c9eac3fe9cbc231607d832169} Implements {\bf Protocol} \doxyref{}{p.}{classProtocol_add24e2c5ffa8c940dd6a3ba8f295113f}. Reimplemented in {\bf A\+P\+O\+P} \doxyref{}{p.}{classAPOP_a61d6b84a9b463c948c74420065f9dfc9}. \index{P\+O\+P3@{P\+O\+P3}!logout@{logout}} \index{logout@{logout}!P\+O\+P3@{P\+O\+P3}} \paragraph[{logout}]{\setlength{\rightskip}{0pt plus 5cm}bool P\+O\+P3\+::logout ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classPOP3_a7b1056eb702ce559084fc34331b5aa9a} Implements {\bf Protocol} \doxyref{}{p.}{classProtocol_a488b2fdeb3dec121284b5102b913619e}. \index{P\+O\+P3@{P\+O\+P3}!remove\+\_\+msg@{remove\+\_\+msg}} \index{remove\+\_\+msg@{remove\+\_\+msg}!P\+O\+P3@{P\+O\+P3}} \paragraph[{remove\+\_\+msg}]{\setlength{\rightskip}{0pt plus 5cm}int P\+O\+P3\+::remove\+\_\+msg ( \begin{DoxyParamCaption} \item[{{\bf const} unsigned int}]{num} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classPOP3_a8b5ed311c138197ab480534d613b1c48} Implements {\bf Protocol} \doxyref{}{p.}{classProtocol_ad53aee64e3f129eec4aff7017c7dbc6f}. \index{P\+O\+P3@{P\+O\+P3}!scan@{scan}} \index{scan@{scan}!P\+O\+P3@{P\+O\+P3}} \paragraph[{scan}]{\setlength{\rightskip}{0pt plus 5cm}int P\+O\+P3\+::scan ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classPOP3_abf3047977ab6e51508bc106b3323925e} Implements {\bf Protocol} \doxyref{}{p.}{classProtocol_a7dceb148931883c4ce8c1dd643cbcc3f}. \index{P\+O\+P3@{P\+O\+P3}!status@{status}} \index{status@{status}!P\+O\+P3@{P\+O\+P3}} \paragraph[{status}]{\setlength{\rightskip}{0pt plus 5cm}int P\+O\+P3\+::status ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classPOP3_a45658ab25cfe351d2dfc0ba596442a7d} Implements {\bf Protocol} \doxyref{}{p.}{classProtocol_afebeff26211c158d3cfdeb9b456b53c5}. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf pop3.\+hh}\item {\bf pop3.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/socket_8hh.tex0000644000175000017500000000155312675277621016033 00000000000000\subsection{socket.\+hh File Reference} \label{socket_8hh}\index{socket.\+hh@{socket.\+hh}} {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$csignal$>$}\\* {\ttfamily \#include \char`\"{}connection.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Socket} \end{DoxyCompactItemize} \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf M\+A\+X\+\_\+\+B\+Y\+T\+E\+S}~512 \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{socket.\+hh@{socket.\+hh}!M\+A\+X\+\_\+\+B\+Y\+T\+E\+S@{M\+A\+X\+\_\+\+B\+Y\+T\+E\+S}} \index{M\+A\+X\+\_\+\+B\+Y\+T\+E\+S@{M\+A\+X\+\_\+\+B\+Y\+T\+E\+S}!socket.\+hh@{socket.\+hh}} \paragraph[{M\+A\+X\+\_\+\+B\+Y\+T\+E\+S}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\+A\+X\+\_\+\+B\+Y\+T\+E\+S~512}\label{socket_8hh_aabb27f74e9a532512f75b57584b5d420} mailfilter-0.8.4/doc/api/latex/classFilter.eps0000644000175000017500000000726412675277621016243 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 740.740741 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 0.675000 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 2 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (Filter) cw (Score) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (Filter) 0.000000 1.000000 box (Score) 0.000000 0.000000 box % ----- relations ----- solid 1 0.000000 0.250000 out solid 0 0.000000 0.750000 in mailfilter-0.8.4/doc/api/latex/classProtocol.tex0000644000175000017500000001435312675277621016625 00000000000000\subsection{Protocol Class Reference} \label{classProtocol}\index{Protocol@{Protocol}} {\ttfamily \#include $<$protocol.\+hh$>$} Inheritance diagram for Protocol\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=3.000000cm]{classProtocol} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item virtual {\bf $\sim$\+Protocol} (void) \item virtual bool {\bf login} ({\bf const} char $\ast$usr, {\bf const} char $\ast$pass, {\bf const} unsigned int) {\bf const} =0 \item virtual bool {\bf logout} (void) {\bf const} =0 \item virtual int {\bf remove\+\_\+msg} ({\bf const} unsigned int num) {\bf const} =0 \item virtual int {\bf status} (void) {\bf const} =0 \item virtual int {\bf scan} (void) {\bf const} =0 \item void {\bf set\+\_\+connection} ({\bf Connection} $\ast$) \item void {\bf set\+\_\+ident} (unsigned int) \item unsigned int {\bf ident} (void) {\bf const} \end{DoxyCompactItemize} \subsubsection*{Protected Attributes} \begin{DoxyCompactItemize} \item {\bf Connection} $\ast$ {\bf conn} \item unsigned int {\bf prot\+\_\+ident} \item unsigned int {\bf connect\+\_\+type} \end{DoxyCompactItemize} \subsubsection{Constructor \& Destructor Documentation} \index{Protocol@{Protocol}!````~Protocol@{$\sim$\+Protocol}} \index{````~Protocol@{$\sim$\+Protocol}!Protocol@{Protocol}} \paragraph[{$\sim$\+Protocol}]{\setlength{\rightskip}{0pt plus 5cm}virtual Protocol\+::$\sim$\+Protocol ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}\label{classProtocol_a61154b2c43496d9a97f95dcb7162ab5f} \subsubsection{Member Function Documentation} \index{Protocol@{Protocol}!ident@{ident}} \index{ident@{ident}!Protocol@{Protocol}} \paragraph[{ident}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Protocol\+::ident ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const}\label{classProtocol_a21d236277e5acc6209f2eabbdbe133b2} \index{Protocol@{Protocol}!login@{login}} \index{login@{login}!Protocol@{Protocol}} \paragraph[{login}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Protocol\+::login ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{usr, } \item[{{\bf const} char $\ast$}]{pass, } \item[{{\bf const} unsigned}]{int} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classProtocol_add24e2c5ffa8c940dd6a3ba8f295113f} Implemented in {\bf P\+O\+P3} \doxyref{}{p.}{classPOP3_a824f175c9eac3fe9cbc231607d832169}, and {\bf A\+P\+O\+P} \doxyref{}{p.}{classAPOP_a61d6b84a9b463c948c74420065f9dfc9}. \index{Protocol@{Protocol}!logout@{logout}} \index{logout@{logout}!Protocol@{Protocol}} \paragraph[{logout}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Protocol\+::logout ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classProtocol_a488b2fdeb3dec121284b5102b913619e} Implemented in {\bf P\+O\+P3} \doxyref{}{p.}{classPOP3_a7b1056eb702ce559084fc34331b5aa9a}. \index{Protocol@{Protocol}!remove\+\_\+msg@{remove\+\_\+msg}} \index{remove\+\_\+msg@{remove\+\_\+msg}!Protocol@{Protocol}} \paragraph[{remove\+\_\+msg}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Protocol\+::remove\+\_\+msg ( \begin{DoxyParamCaption} \item[{{\bf const} unsigned int}]{num} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classProtocol_ad53aee64e3f129eec4aff7017c7dbc6f} Implemented in {\bf P\+O\+P3} \doxyref{}{p.}{classPOP3_a8b5ed311c138197ab480534d613b1c48}. \index{Protocol@{Protocol}!scan@{scan}} \index{scan@{scan}!Protocol@{Protocol}} \paragraph[{scan}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Protocol\+::scan ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classProtocol_a7dceb148931883c4ce8c1dd643cbcc3f} Implemented in {\bf P\+O\+P3} \doxyref{}{p.}{classPOP3_abf3047977ab6e51508bc106b3323925e}. \index{Protocol@{Protocol}!set\+\_\+connection@{set\+\_\+connection}} \index{set\+\_\+connection@{set\+\_\+connection}!Protocol@{Protocol}} \paragraph[{set\+\_\+connection}]{\setlength{\rightskip}{0pt plus 5cm}void Protocol\+::set\+\_\+connection ( \begin{DoxyParamCaption} \item[{{\bf Connection} $\ast$}]{currently\+\_\+established\+\_\+connection} \end{DoxyParamCaption} )}\label{classProtocol_a85546aa117be70f6a0e26d74394853a3} \index{Protocol@{Protocol}!set\+\_\+ident@{set\+\_\+ident}} \index{set\+\_\+ident@{set\+\_\+ident}!Protocol@{Protocol}} \paragraph[{set\+\_\+ident}]{\setlength{\rightskip}{0pt plus 5cm}void Protocol\+::set\+\_\+ident ( \begin{DoxyParamCaption} \item[{unsigned int}]{i} \end{DoxyParamCaption} )}\label{classProtocol_a264ca0a8901e25808495443c823c399f} \index{Protocol@{Protocol}!status@{status}} \index{status@{status}!Protocol@{Protocol}} \paragraph[{status}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Protocol\+::status ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classProtocol_afebeff26211c158d3cfdeb9b456b53c5} Implemented in {\bf P\+O\+P3} \doxyref{}{p.}{classPOP3_a45658ab25cfe351d2dfc0ba596442a7d}. \subsubsection{Member Data Documentation} \index{Protocol@{Protocol}!conn@{conn}} \index{conn@{conn}!Protocol@{Protocol}} \paragraph[{conn}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Connection}$\ast$ Protocol\+::conn\hspace{0.3cm}{\ttfamily [protected]}}\label{classProtocol_af1f453d40b56eef6493a777d18f82706} \index{Protocol@{Protocol}!connect\+\_\+type@{connect\+\_\+type}} \index{connect\+\_\+type@{connect\+\_\+type}!Protocol@{Protocol}} \paragraph[{connect\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Protocol\+::connect\+\_\+type\hspace{0.3cm}{\ttfamily [protected]}}\label{classProtocol_a2934827bc2c96f11fa0ec84b196fdfd6} \index{Protocol@{Protocol}!prot\+\_\+ident@{prot\+\_\+ident}} \index{prot\+\_\+ident@{prot\+\_\+ident}!Protocol@{Protocol}} \paragraph[{prot\+\_\+ident}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Protocol\+::prot\+\_\+ident\hspace{0.3cm}{\ttfamily [protected]}}\label{classProtocol_a40de8aaff8deebdfee2aa4c29e5b716e} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf protocol.\+hh}\item {\bf protocol.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/refman.tex0000644000175000017500000000745412675277621015252 00000000000000\documentclass[twoside]{article} % Packages required by doxygen \usepackage{calc} \usepackage{doxygen} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{makeidx} \usepackage{multicol} \usepackage{multirow} \usepackage{fixltx2e} \PassOptionsToPackage{warn}{textcomp} \usepackage{textcomp} \usepackage[nointegrals]{wasysym} \usepackage[table]{xcolor} % Font selection \usepackage[T1]{fontenc} \usepackage{mathptmx} \usepackage[scaled=.90]{helvet} \usepackage{courier} \usepackage{amssymb} \usepackage{sectsty} \renewcommand{\familydefault}{\sfdefault} \allsectionsfont{% \fontseries{bc}\selectfont% \color{darkgray}% } \renewcommand{\DoxyLabelFont}{% \fontseries{bc}\selectfont% \color{darkgray}% } \newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}} % Page & text layout \usepackage{geometry} \geometry{% a4paper,% top=2.5cm,% bottom=2.5cm,% left=2.5cm,% right=2.5cm% } \tolerance=750 \hfuzz=15pt \hbadness=750 \setlength{\emergencystretch}{15pt} \setlength{\parindent}{0cm} \setlength{\parskip}{0.2cm} \makeatletter \renewcommand{\paragraph}{% \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{% \normalfont\normalsize\bfseries\SS@parafont% }% } \renewcommand{\subparagraph}{% \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{% \normalfont\normalsize\bfseries\SS@subparafont% }% } \makeatother % Headers & footers \usepackage{fancyhdr} \pagestyle{fancyplain} \fancyhead[LE]{\fancyplain{}{\bfseries\thepage}} \fancyhead[CE]{\fancyplain{}{}} \fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}} \fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}} \fancyhead[CO]{\fancyplain{}{}} \fancyhead[RO]{\fancyplain{}{\bfseries\thepage}} \fancyfoot[LE]{\fancyplain{}{}} \fancyfoot[CE]{\fancyplain{}{}} \fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Fri Mar 25 2016 19\+:12\+:32 for mailfilter by Doxygen }} \fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Fri Mar 25 2016 19\+:12\+:32 for mailfilter by Doxygen }} \fancyfoot[CO]{\fancyplain{}{}} \fancyfoot[RO]{\fancyplain{}{}} \renewcommand{\footrulewidth}{0.4pt} \renewcommand{\sectionmark}[1]{% \markright{\thesection\ #1}% } % Indices & bibliography \usepackage{natbib} \usepackage[titles]{tocloft} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{5} \makeindex % Custom commands \newcommand{\clearemptydoublepage}{% \newpage{\pagestyle{empty}\cleardoublepage}% } %===== C O N T E N T S ===== \begin{document} % Titlepage & ToC \pagenumbering{roman} \begin{titlepage} \vspace*{7cm} \begin{center}% {\Large mailfilter \\[1ex]\large 0.\+8.\+4 }\\ \vspace*{1cm} {\large Generated by Doxygen 1.8.7}\\ \vspace*{0.5cm} {\small Fri Mar 25 2016 19:12:32}\\ \end{center} \end{titlepage} \tableofcontents \pagenumbering{arabic} %--- Begin generated contents --- \section{Hierarchical Index} \input{hierarchy} \section{Class Index} \input{annotated} \section{File Index} \input{files} \section{Class Documentation} \input{classAccount} \input{classAPOP} \input{classConnection} \input{classFeedback} \input{classFilter} \input{structMD5__CTX} \input{structoption} \input{classPOP3} \input{classPreferences} \input{classProtocol} \input{classScore} \input{classSize__score} \input{classSocket} \section{File Documentation} \input{account_8cc} \input{account_8hh} \input{apop_8cc} \input{apop_8hh} \input{connection_8hh} \input{feedback_8cc} \input{feedback_8hh} \input{filter_8cc} \input{filter_8hh} \input{getopt_8c} \input{getopt_8h} \input{getopt1_8c} \input{mailfilter_8cc} \input{mailfilter_8hh} \input{md5_8h} \input{md5c_8c} \input{pop3_8cc} \input{pop3_8hh} \input{preferences_8cc} \input{preferences_8hh} \input{protocol_8cc} \input{protocol_8hh} \input{score_8hh} \input{socket_8cc} \input{socket_8hh} %--- End generated contents --- % Index \newpage \phantomsection \addcontentsline{toc}{section}{Index} \printindex \end{document} mailfilter-0.8.4/doc/api/latex/hierarchy.tex0000644000175000017500000000226312675277621015751 00000000000000\subsection{Class Hierarchy} This inheritance list is sorted roughly, but not completely, alphabetically\+:\begin{DoxyCompactList} \item \contentsline{section}{Account}{\pageref{classAccount}}{} \item \contentsline{section}{Connection}{\pageref{classConnection}}{} \begin{DoxyCompactList} \item \contentsline{section}{Socket}{\pageref{classSocket}}{} \end{DoxyCompactList} \item \contentsline{section}{Feedback}{\pageref{classFeedback}}{} \item \contentsline{section}{Filter}{\pageref{classFilter}}{} \begin{DoxyCompactList} \item \contentsline{section}{Score}{\pageref{classScore}}{} \end{DoxyCompactList} \item \contentsline{section}{M\+D5\+\_\+\+C\+T\+X}{\pageref{structMD5__CTX}}{} \item \contentsline{section}{option}{\pageref{structoption}}{} \item \contentsline{section}{Preferences}{\pageref{classPreferences}}{} \item \contentsline{section}{Protocol}{\pageref{classProtocol}}{} \begin{DoxyCompactList} \item \contentsline{section}{P\+O\+P3}{\pageref{classPOP3}}{} \begin{DoxyCompactList} \item \contentsline{section}{A\+P\+O\+P}{\pageref{classAPOP}}{} \end{DoxyCompactList} \end{DoxyCompactList} \item \contentsline{section}{Size\+\_\+score}{\pageref{classSize__score}}{} \end{DoxyCompactList} mailfilter-0.8.4/doc/api/latex/classFeedback.tex0000644000175000017500000000607412675277621016511 00000000000000\subsection{Feedback Class Reference} \label{classFeedback}\index{Feedback@{Feedback}} {\ttfamily \#include $<$feedback.\+hh$>$} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item {\bf $\sim$\+Feedback} (void) \item bool {\bf open} ({\bf const} char $\ast$) \item bool {\bf print\+\_\+msg} ({\bf const} string, int) \item bool {\bf print\+\_\+err} ({\bf const} string, int=1) \item bool {\bf print\+\_\+header} ({\bf const} string) \end{DoxyCompactItemize} \subsubsection*{Static Public Member Functions} \begin{DoxyCompactItemize} \item static {\bf Feedback} $\ast$ {\bf Instance} (void) \end{DoxyCompactItemize} \subsubsection{Constructor \& Destructor Documentation} \index{Feedback@{Feedback}!````~Feedback@{$\sim$\+Feedback}} \index{````~Feedback@{$\sim$\+Feedback}!Feedback@{Feedback}} \paragraph[{$\sim$\+Feedback}]{\setlength{\rightskip}{0pt plus 5cm}Feedback\+::$\sim$\+Feedback ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classFeedback_a63513e2b765321d2df29b942b459e952} \subsubsection{Member Function Documentation} \index{Feedback@{Feedback}!Instance@{Instance}} \index{Instance@{Instance}!Feedback@{Feedback}} \paragraph[{Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Feedback} $\ast$ Feedback\+::\+Instance ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [static]}}\label{classFeedback_a7e987414365ca2317d2cb2f3fb0a1b71} \index{Feedback@{Feedback}!open@{open}} \index{open@{open}!Feedback@{Feedback}} \paragraph[{open}]{\setlength{\rightskip}{0pt plus 5cm}bool Feedback\+::open ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{name} \end{DoxyParamCaption} )}\label{classFeedback_af9a7a2200050cac9109d5459777498ff} \index{Feedback@{Feedback}!print\+\_\+err@{print\+\_\+err}} \index{print\+\_\+err@{print\+\_\+err}!Feedback@{Feedback}} \paragraph[{print\+\_\+err}]{\setlength{\rightskip}{0pt plus 5cm}bool Feedback\+::print\+\_\+err ( \begin{DoxyParamCaption} \item[{{\bf const} string}]{msg, } \item[{int}]{min\+\_\+verbose\+\_\+level = {\ttfamily 1}} \end{DoxyParamCaption} )}\label{classFeedback_a6341420b3777e6b056cd42bd65b4baf8} \index{Feedback@{Feedback}!print\+\_\+header@{print\+\_\+header}} \index{print\+\_\+header@{print\+\_\+header}!Feedback@{Feedback}} \paragraph[{print\+\_\+header}]{\setlength{\rightskip}{0pt plus 5cm}bool Feedback\+::print\+\_\+header ( \begin{DoxyParamCaption} \item[{{\bf const} string}]{msg} \end{DoxyParamCaption} )}\label{classFeedback_adcc86c7458bb788695b2a971a645279e} \index{Feedback@{Feedback}!print\+\_\+msg@{print\+\_\+msg}} \index{print\+\_\+msg@{print\+\_\+msg}!Feedback@{Feedback}} \paragraph[{print\+\_\+msg}]{\setlength{\rightskip}{0pt plus 5cm}bool Feedback\+::print\+\_\+msg ( \begin{DoxyParamCaption} \item[{{\bf const} string}]{msg, } \item[{int}]{min\+\_\+verbose\+\_\+level} \end{DoxyParamCaption} )}\label{classFeedback_a6444e9bf01c4d9d7bd1787fd1c44e230} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf feedback.\+hh}\item {\bf feedback.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/mailfilter_8cc.tex0000644000175000017500000001452412675277621016663 00000000000000\subsection{mailfilter.\+cc File Reference} \label{mailfilter_8cc}\index{mailfilter.\+cc@{mailfilter.\+cc}} {\ttfamily \#include $<$iostream$>$}\\* {\ttfamily \#include $<$sstream$>$}\\* {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$cstring$>$}\\* {\ttfamily \#include $<$cstdlib$>$}\\* {\ttfamily \#include $<$cstdio$>$}\\* {\ttfamily \#include $<$csignal$>$}\\* {\ttfamily \#include $<$stdexcept$>$}\\* {\ttfamily \#include $<$vector$>$}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}preferences.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}feedback.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}weeder.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}time.\+h\char`\"{}}\\* {\ttfamily \#include $<$sys/time.\+h$>$}\\* {\ttfamily \#include \char`\"{}getopt.\+h\char`\"{}}\\* \subsubsection*{Functions} \begin{DoxyCompactItemize} \item void {\bf init\+\_\+app} (void) \item bool {\bf open\+\_\+prefs} (string) \item void {\bf get\+\_\+opts} (int argc, char $\ast$argv[$\,$]) \item void {\bf override\+\_\+prefs} (string) \item int {\bf cmp\+\_\+no\+\_\+case} ({\bf const} string \&, {\bf const} string \&) \item int {\bf precompile\+\_\+expressions} (void) \item void {\bf connect\+\_\+sigint} (int) \item string {\bf int\+\_\+to\+\_\+string} (int) \item int {\bf main} (int argc, char $\ast$argv[$\,$]) \item string {\bf exec\+\_\+shell} ({\bf const} char $\ast$command) \end{DoxyCompactItemize} \subsubsection*{Variables} \begin{DoxyCompactItemize} \item struct sigaction {\bf sigact} \item Weeder {\bf weeder} \item int {\bf mailbox\+\_\+status} \end{DoxyCompactItemize} \subsubsection{Function Documentation} \index{mailfilter.\+cc@{mailfilter.\+cc}!cmp\+\_\+no\+\_\+case@{cmp\+\_\+no\+\_\+case}} \index{cmp\+\_\+no\+\_\+case@{cmp\+\_\+no\+\_\+case}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{cmp\+\_\+no\+\_\+case}]{\setlength{\rightskip}{0pt plus 5cm}int cmp\+\_\+no\+\_\+case ( \begin{DoxyParamCaption} \item[{{\bf const} string \&}]{s, } \item[{{\bf const} string \&}]{s2} \end{DoxyParamCaption} )}\label{mailfilter_8cc_afb83c30b29c387537092966aa333c78e} \index{mailfilter.\+cc@{mailfilter.\+cc}!connect\+\_\+sigint@{connect\+\_\+sigint}} \index{connect\+\_\+sigint@{connect\+\_\+sigint}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{connect\+\_\+sigint}]{\setlength{\rightskip}{0pt plus 5cm}void connect\+\_\+sigint ( \begin{DoxyParamCaption} \item[{int}]{signo} \end{DoxyParamCaption} )}\label{mailfilter_8cc_a42c0c83467bf8024561a6d3df70eb95e} \index{mailfilter.\+cc@{mailfilter.\+cc}!exec\+\_\+shell@{exec\+\_\+shell}} \index{exec\+\_\+shell@{exec\+\_\+shell}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{exec\+\_\+shell}]{\setlength{\rightskip}{0pt plus 5cm}string exec\+\_\+shell ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{command} \end{DoxyParamCaption} )}\label{mailfilter_8cc_a5a9ad2e87ba6c60a00cbe9f67e011dc8} \index{mailfilter.\+cc@{mailfilter.\+cc}!get\+\_\+opts@{get\+\_\+opts}} \index{get\+\_\+opts@{get\+\_\+opts}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{get\+\_\+opts}]{\setlength{\rightskip}{0pt plus 5cm}void get\+\_\+opts ( \begin{DoxyParamCaption} \item[{int}]{argc, } \item[{char $\ast$}]{argv[$\,$]} \end{DoxyParamCaption} )}\label{mailfilter_8cc_ac637252f69fe0ea66e9d27c72b8db2b1} \index{mailfilter.\+cc@{mailfilter.\+cc}!init\+\_\+app@{init\+\_\+app}} \index{init\+\_\+app@{init\+\_\+app}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{init\+\_\+app}]{\setlength{\rightskip}{0pt plus 5cm}void init\+\_\+app ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{mailfilter_8cc_a58365390a2f6d58ce8173e26f693d999} \index{mailfilter.\+cc@{mailfilter.\+cc}!int\+\_\+to\+\_\+string@{int\+\_\+to\+\_\+string}} \index{int\+\_\+to\+\_\+string@{int\+\_\+to\+\_\+string}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{int\+\_\+to\+\_\+string}]{\setlength{\rightskip}{0pt plus 5cm}string int\+\_\+to\+\_\+string ( \begin{DoxyParamCaption} \item[{int}]{val} \end{DoxyParamCaption} )}\label{mailfilter_8cc_aac5566abbb83233a9d5daa9d32ed2112} \index{mailfilter.\+cc@{mailfilter.\+cc}!main@{main}} \index{main@{main}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main ( \begin{DoxyParamCaption} \item[{int}]{argc, } \item[{char $\ast$}]{argv[$\,$]} \end{DoxyParamCaption} )}\label{mailfilter_8cc_a0ddf1224851353fc92bfbff6f499fa97} \index{mailfilter.\+cc@{mailfilter.\+cc}!open\+\_\+prefs@{open\+\_\+prefs}} \index{open\+\_\+prefs@{open\+\_\+prefs}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{open\+\_\+prefs}]{\setlength{\rightskip}{0pt plus 5cm}bool open\+\_\+prefs ( \begin{DoxyParamCaption} \item[{string}]{} \end{DoxyParamCaption} )}\label{mailfilter_8cc_ac02d124f8fa9e015fb98e14cc9cb5070} \index{mailfilter.\+cc@{mailfilter.\+cc}!override\+\_\+prefs@{override\+\_\+prefs}} \index{override\+\_\+prefs@{override\+\_\+prefs}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{override\+\_\+prefs}]{\setlength{\rightskip}{0pt plus 5cm}void override\+\_\+prefs ( \begin{DoxyParamCaption} \item[{string}]{} \end{DoxyParamCaption} )}\label{mailfilter_8cc_a531fcb6645da6100d824da9d52d64ceb} \index{mailfilter.\+cc@{mailfilter.\+cc}!precompile\+\_\+expressions@{precompile\+\_\+expressions}} \index{precompile\+\_\+expressions@{precompile\+\_\+expressions}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{precompile\+\_\+expressions}]{\setlength{\rightskip}{0pt plus 5cm}int precompile\+\_\+expressions ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{mailfilter_8cc_a2db2b680ca9c7976043a616dcb98e22f} \subsubsection{Variable Documentation} \index{mailfilter.\+cc@{mailfilter.\+cc}!mailbox\+\_\+status@{mailbox\+\_\+status}} \index{mailbox\+\_\+status@{mailbox\+\_\+status}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{mailbox\+\_\+status}]{\setlength{\rightskip}{0pt plus 5cm}int mailbox\+\_\+status}\label{mailfilter_8cc_acd4537e46d80e3511292706d88b868f0} \index{mailfilter.\+cc@{mailfilter.\+cc}!sigact@{sigact}} \index{sigact@{sigact}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{sigact}]{\setlength{\rightskip}{0pt plus 5cm}struct sigaction sigact}\label{mailfilter_8cc_a737d54f440be21a1dd889b62719de138} \index{mailfilter.\+cc@{mailfilter.\+cc}!weeder@{weeder}} \index{weeder@{weeder}!mailfilter.\+cc@{mailfilter.\+cc}} \paragraph[{weeder}]{\setlength{\rightskip}{0pt plus 5cm}Weeder weeder}\label{mailfilter_8cc_aa366ad0c1ab3b661b0df659697a5e10f} mailfilter-0.8.4/doc/api/latex/preferences_8hh.tex0000644000175000017500000000115512675277621017042 00000000000000\subsection{preferences.\+hh File Reference} \label{preferences_8hh}\index{preferences.\+hh@{preferences.\+hh}} {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$vector$>$}\\* {\ttfamily \#include $<$fstream$>$}\\* {\ttfamily \#include \char`\"{}defines.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}socket.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}filter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}score.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}account.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Preferences} \end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/filter_8hh.tex0000644000175000017500000000407212675277621016027 00000000000000\subsection{filter.\+hh File Reference} \label{filter_8hh}\index{filter.\+hh@{filter.\+hh}} {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$regex.\+h$>$}\\* {\ttfamily \#include $<$sys/types.\+h$>$}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Filter} \end{DoxyCompactItemize} \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T}~R\+E\+G\+\_\+\+I\+C\+A\+S\+E \item \#define {\bf C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E}~0 \item \#define {\bf C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E}~R\+E\+G\+\_\+\+I\+C\+A\+S\+E \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{filter.\+hh@{filter.\+hh}!C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T@{C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T}} \index{C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T@{C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T}!filter.\+hh@{filter.\+hh}} \paragraph[{C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\+A\+S\+E\+\_\+\+D\+E\+F\+A\+U\+L\+T~R\+E\+G\+\_\+\+I\+C\+A\+S\+E}\label{filter_8hh_aa5127ed4c597bb0debd64f97e75449c4} \index{filter.\+hh@{filter.\+hh}!C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E@{C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E}} \index{C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E@{C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E}!filter.\+hh@{filter.\+hh}} \paragraph[{C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\+A\+S\+E\+\_\+\+I\+N\+S\+E\+N\+S\+I\+T\+I\+V\+E~R\+E\+G\+\_\+\+I\+C\+A\+S\+E}\label{filter_8hh_a73dbf9d86ec7a319f372cb1ae227a54b} \index{filter.\+hh@{filter.\+hh}!C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E@{C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E}} \index{C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E@{C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E}!filter.\+hh@{filter.\+hh}} \paragraph[{C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\+A\+S\+E\+\_\+\+S\+E\+N\+S\+I\+T\+I\+V\+E~0}\label{filter_8hh_a6094f5f4a8aa099faa6d80b4f020927b} mailfilter-0.8.4/doc/api/latex/files.tex0000644000175000017500000000363712675277621015103 00000000000000\subsection{File List} Here is a list of all files with brief descriptions\+:\begin{DoxyCompactList} \item\contentsline{section}{{\bf account.\+cc} }{\pageref{account_8cc}}{} \item\contentsline{section}{{\bf account.\+hh} }{\pageref{account_8hh}}{} \item\contentsline{section}{{\bf apop.\+cc} }{\pageref{apop_8cc}}{} \item\contentsline{section}{{\bf apop.\+hh} }{\pageref{apop_8hh}}{} \item\contentsline{section}{{\bf connection.\+hh} }{\pageref{connection_8hh}}{} \item\contentsline{section}{{\bf feedback.\+cc} }{\pageref{feedback_8cc}}{} \item\contentsline{section}{{\bf feedback.\+hh} }{\pageref{feedback_8hh}}{} \item\contentsline{section}{{\bf filter.\+cc} }{\pageref{filter_8cc}}{} \item\contentsline{section}{{\bf filter.\+hh} }{\pageref{filter_8hh}}{} \item\contentsline{section}{{\bf getopt.\+c} }{\pageref{getopt_8c}}{} \item\contentsline{section}{{\bf getopt.\+h} }{\pageref{getopt_8h}}{} \item\contentsline{section}{{\bf getopt1.\+c} }{\pageref{getopt1_8c}}{} \item\contentsline{section}{{\bf mailfilter.\+cc} }{\pageref{mailfilter_8cc}}{} \item\contentsline{section}{{\bf mailfilter.\+hh} }{\pageref{mailfilter_8hh}}{} \item\contentsline{section}{{\bf md5.\+h} }{\pageref{md5_8h}}{} \item\contentsline{section}{{\bf md5c.\+c} }{\pageref{md5c_8c}}{} \item\contentsline{section}{{\bf pop3.\+cc} }{\pageref{pop3_8cc}}{} \item\contentsline{section}{{\bf pop3.\+hh} }{\pageref{pop3_8hh}}{} \item\contentsline{section}{{\bf preferences.\+cc} }{\pageref{preferences_8cc}}{} \item\contentsline{section}{{\bf preferences.\+hh} }{\pageref{preferences_8hh}}{} \item\contentsline{section}{{\bf protocol.\+cc} }{\pageref{protocol_8cc}}{} \item\contentsline{section}{{\bf protocol.\+hh} }{\pageref{protocol_8hh}}{} \item\contentsline{section}{{\bf score.\+hh} }{\pageref{score_8hh}}{} \item\contentsline{section}{{\bf socket.\+cc} }{\pageref{socket_8cc}}{} \item\contentsline{section}{{\bf socket.\+hh} }{\pageref{socket_8hh}}{} \end{DoxyCompactList} mailfilter-0.8.4/doc/api/latex/classConnection.eps0000644000175000017500000000727612675277621017120 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 476.190476 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 1.050000 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 2 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (Connection) cw (Socket) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (Connection) 0.000000 1.000000 box (Socket) 0.000000 0.000000 box % ----- relations ----- solid 1 0.000000 0.250000 out solid 0 0.000000 0.750000 in mailfilter-0.8.4/doc/api/latex/classSocket.eps0000644000175000017500000000727612675277621016251 00000000000000%!PS-Adobe-2.0 EPSF-2.0 %%Title: ClassName %%Creator: Doxygen %%CreationDate: Time %%For: %Magnification: 1.00 %%Orientation: Portrait %%BoundingBox: 0 0 500 476.190476 %%Pages: 0 %%BeginSetup %%EndSetup %%EndComments % ----- variables ----- /boxwidth 0 def /boxheight 40 def /fontheight 24 def /marginwidth 10 def /distx 20 def /disty 40 def /boundaspect 1.050000 def % aspect ratio of the BoundingBox (width/height) /boundx 500 def /boundy boundx boundaspect div def /xspacing 0 def /yspacing 0 def /rows 2 def /cols 1 def /scalefactor 0 def /boxfont /Times-Roman findfont fontheight scalefont def % ----- procedures ----- /dotted { [1 4] 0 setdash } def /dashed { [5] 0 setdash } def /solid { [] 0 setdash } def /max % result = MAX(arg1,arg2) { /a exch def /b exch def a b gt {a} {b} ifelse } def /xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) { 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max } def /cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) { /str exch def /boxwidth boxwidth str stringwidth pop max def } def /box % draws a box with text `arg1' at grid pos (arg2,arg3) { gsave 2 setlinewidth newpath exch xspacing mul xoffset add exch yspacing mul moveto boxwidth 0 rlineto 0 boxheight rlineto boxwidth neg 0 rlineto 0 boxheight neg rlineto closepath dup stringwidth pop neg boxwidth add 2 div boxheight fontheight 2 div sub 2 div rmoveto show stroke grestore } def /mark { newpath exch xspacing mul xoffset add boxwidth add exch yspacing mul moveto 0 boxheight 4 div rlineto boxheight neg 4 div boxheight neg 4 div rlineto closepath eofill stroke } def /arrow { newpath moveto 3 -8 rlineto -6 0 rlineto 3 8 rlineto closepath eofill stroke } def /out % draws an output connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight add /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /in % draws an input connector for the block at (arg1,arg2) { newpath exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul disty 2 div sub /y exch def /x exch def x y moveto 0 disty 2 div rlineto stroke 1 eq { x y disty 2 div add arrow } if } def /hedge { exch xspacing mul xoffset add boxwidth 2 div add exch yspacing mul boxheight 2 div sub /y exch def /x exch def newpath x y moveto boxwidth 2 div distx add 0 rlineto stroke 1 eq { newpath x boxwidth 2 div distx add add y moveto -8 3 rlineto 0 -6 rlineto 8 3 rlineto closepath eofill stroke } if } def /vedge { /ye exch def /ys exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add dup ys yspacing mul boxheight 2 div sub moveto ye yspacing mul boxheight 2 div sub lineto stroke } def /conn % connections the blocks from col `arg1' to `arg2' of row `arg3' { /ys exch def /xe exch def /xs exch def newpath xs xspacing mul xoffset add boxwidth 2 div add ys yspacing mul disty 2 div sub moveto xspacing xe xs sub mul 0 rlineto stroke } def % ----- main ------ boxfont setfont 1 boundaspect scale (Socket) cw (Connection) cw /boxwidth boxwidth marginwidth 2 mul add def /xspacing boxwidth distx add def /yspacing boxheight disty add def /scalefactor boxwidth cols mul distx cols 1 sub mul add boxheight rows mul disty rows 1 sub mul add boundaspect mul max def boundx scalefactor div boundy scalefactor div scale % ----- classes ----- (Socket) 0.000000 0.000000 box (Connection) 0.000000 1.000000 box % ----- relations ----- solid 0 0.000000 0.000000 out solid 1 0.000000 1.000000 in mailfilter-0.8.4/doc/api/latex/filter_8cc.tex0000644000175000017500000000066412675277621016020 00000000000000\subsection{filter.\+cc File Reference} \label{filter_8cc}\index{filter.\+cc@{filter.\+cc}} {\ttfamily \#include $<$iostream$>$}\\* {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$sys/types.\+h$>$}\\* {\ttfamily \#include $<$regex.\+h$>$}\\* {\ttfamily \#include \char`\"{}filter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}mailfilter.\+hh\char`\"{}}\\* {\ttfamily \#include \char`\"{}preferences.\+hh\char`\"{}}\\* mailfilter-0.8.4/doc/api/latex/classSocket.tex0000644000175000017500000000766212675277621016261 00000000000000\subsection{Socket Class Reference} \label{classSocket}\index{Socket@{Socket}} {\ttfamily \#include $<$socket.\+hh$>$} Inheritance diagram for Socket\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2.000000cm]{classSocket} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item {\bf Socket} (void) \item void {\bf clear} (void) \item int {\bf c\+\_\+open} ({\bf const} char $\ast$host, int port, int time\+\_\+out, int protocol) \item int {\bf c\+\_\+close} (void) {\bf const} \item int {\bf c\+\_\+write} ({\bf const} char $\ast$command) \item int {\bf c\+\_\+read} (bool=false) \item {\bf const} string $\ast$ {\bf c\+\_\+reply} (void) {\bf const} \end{DoxyCompactItemize} \subsubsection{Constructor \& Destructor Documentation} \index{Socket@{Socket}!Socket@{Socket}} \index{Socket@{Socket}!Socket@{Socket}} \paragraph[{Socket}]{\setlength{\rightskip}{0pt plus 5cm}Socket\+::\+Socket ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classSocket_a69e810ab6e91f13f746b90cdee819a7d} \subsubsection{Member Function Documentation} \index{Socket@{Socket}!c\+\_\+close@{c\+\_\+close}} \index{c\+\_\+close@{c\+\_\+close}!Socket@{Socket}} \paragraph[{c\+\_\+close}]{\setlength{\rightskip}{0pt plus 5cm}int Socket\+::c\+\_\+close ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSocket_a503235d029ac700c29cd56a4ca56d71e} Implements {\bf Connection} \doxyref{}{p.}{classConnection_a59ec69c9c520e630ff68d26a79e9e233}. \index{Socket@{Socket}!c\+\_\+open@{c\+\_\+open}} \index{c\+\_\+open@{c\+\_\+open}!Socket@{Socket}} \paragraph[{c\+\_\+open}]{\setlength{\rightskip}{0pt plus 5cm}int Socket\+::c\+\_\+open ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{host, } \item[{int}]{port, } \item[{int}]{time\+\_\+out, } \item[{int}]{protocol} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSocket_abde2f1d9ce0920abf5db65045a994261} Implements {\bf Connection} \doxyref{}{p.}{classConnection_a72f5c47421cb5e244f13c31af3ec8997}. \index{Socket@{Socket}!c\+\_\+read@{c\+\_\+read}} \index{c\+\_\+read@{c\+\_\+read}!Socket@{Socket}} \paragraph[{c\+\_\+read}]{\setlength{\rightskip}{0pt plus 5cm}int Socket\+::c\+\_\+read ( \begin{DoxyParamCaption} \item[{bool}]{read\+\_\+header = {\ttfamily false}} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSocket_ac5891445e5a71a389dffc5a20396901c} Implements {\bf Connection} \doxyref{}{p.}{classConnection_a1afa33b5406c710fde80167c4688a3fa}. \index{Socket@{Socket}!c\+\_\+reply@{c\+\_\+reply}} \index{c\+\_\+reply@{c\+\_\+reply}!Socket@{Socket}} \paragraph[{c\+\_\+reply}]{\setlength{\rightskip}{0pt plus 5cm}{\bf const} string $\ast$ Socket\+::c\+\_\+reply ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSocket_af4e5077ca0a9275c2a201a6531c58061} Implements {\bf Connection} \doxyref{}{p.}{classConnection_a21d05ebfedbedf2bc8f89c8c6727976b}. \index{Socket@{Socket}!c\+\_\+write@{c\+\_\+write}} \index{c\+\_\+write@{c\+\_\+write}!Socket@{Socket}} \paragraph[{c\+\_\+write}]{\setlength{\rightskip}{0pt plus 5cm}int Socket\+::c\+\_\+write ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{command} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSocket_a3c60642af7ebb0ee0f3f6642702f6f87} Implements {\bf Connection} \doxyref{}{p.}{classConnection_a64687373aef3050c7620d726989df0e2}. \index{Socket@{Socket}!clear@{clear}} \index{clear@{clear}!Socket@{Socket}} \paragraph[{clear}]{\setlength{\rightskip}{0pt plus 5cm}void Socket\+::clear ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )}\label{classSocket_ae11afdfb4c8b4316b37d2de9750a7614} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf socket.\+hh}\item {\bf socket.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/protocol_8hh.tex0000644000175000017500000000331012675277621016375 00000000000000\subsection{protocol.\+hh File Reference} \label{protocol_8hh}\index{protocol.\+hh@{protocol.\+hh}} {\ttfamily \#include \char`\"{}connection.\+hh\char`\"{}}\\* \subsubsection*{Classes} \begin{DoxyCompactItemize} \item class {\bf Protocol} \end{DoxyCompactItemize} \subsubsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bf P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3}~2 \item \#define {\bf P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P}~4 \item \#define {\bf S\+S\+L\+\_\+\+C}~4096 \end{DoxyCompactItemize} \subsubsection{Macro Definition Documentation} \index{protocol.\+hh@{protocol.\+hh}!P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P@{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P}} \index{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P@{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P}!protocol.\+hh@{protocol.\+hh}} \paragraph[{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+A\+P\+O\+P~4}\label{protocol_8hh_a04f294c603def267137ca3a5738a2b11} \index{protocol.\+hh@{protocol.\+hh}!P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3@{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3}} \index{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3@{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3}!protocol.\+hh@{protocol.\+hh}} \paragraph[{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3}]{\setlength{\rightskip}{0pt plus 5cm}\#define P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+P\+O\+P3~2}\label{protocol_8hh_ad876dc190884e8c65408ebe50b1d0abd} \index{protocol.\+hh@{protocol.\+hh}!S\+S\+L\+\_\+\+C@{S\+S\+L\+\_\+\+C}} \index{S\+S\+L\+\_\+\+C@{S\+S\+L\+\_\+\+C}!protocol.\+hh@{protocol.\+hh}} \paragraph[{S\+S\+L\+\_\+\+C}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\+S\+L\+\_\+\+C~4096}\label{protocol_8hh_a80a5cc66a6a61cf1a884f75bf1f656bc} mailfilter-0.8.4/doc/api/latex/doxygen.sty0000644000175000017500000002457312675277621015477 00000000000000\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{doxygen} % Packages used by this style file \RequirePackage{alltt} \RequirePackage{array} \RequirePackage{calc} \RequirePackage{float} \RequirePackage{ifthen} \RequirePackage{verbatim} \RequirePackage[table]{xcolor} \RequirePackage{xtab} %---------- Internal commands used in this style file ---------------- \newcommand{\ensurespace}[1]{% \begingroup% \setlength{\dimen@}{#1}% \vskip\z@\@plus\dimen@% \penalty -100\vskip\z@\@plus -\dimen@% \vskip\dimen@% \penalty 9999% \vskip -\dimen@% \vskip\z@skip% hide the previous |\vskip| from |\addvspace| \endgroup% } \newcommand{\DoxyLabelFont}{} \newcommand{\entrylabel}[1]{% {% \parbox[b]{\labelwidth-4pt}{% \makebox[0pt][l]{\DoxyLabelFont#1}% \vspace{1.5\baselineskip}% }% }% } \newenvironment{DoxyDesc}[1]{% \ensurespace{4\baselineskip}% \begin{list}{}{% \settowidth{\labelwidth}{20pt}% \setlength{\parsep}{0pt}% \setlength{\itemsep}{0pt}% \setlength{\leftmargin}{\labelwidth+\labelsep}% \renewcommand{\makelabel}{\entrylabel}% }% \item[#1]% }{% \end{list}% } \newsavebox{\xrefbox} \newlength{\xreflength} \newcommand{\xreflabel}[1]{% \sbox{\xrefbox}{#1}% \setlength{\xreflength}{\wd\xrefbox}% \ifthenelse{\xreflength>\labelwidth}{% \begin{minipage}{\textwidth}% \setlength{\parindent}{0pt}% \hangindent=15pt\bfseries #1\vspace{1.2\itemsep}% \end{minipage}% }{% \parbox[b]{\labelwidth}{\makebox[0pt][l]{\textbf{#1}}}% }% } %---------- Commands used by doxygen LaTeX output generator ---------- % Used by
 ... 
\newenvironment{DoxyPre}{% \small% \begin{alltt}% }{% \end{alltt}% \normalsize% } % Used by @code ... @endcode \newenvironment{DoxyCode}{% \par% \scriptsize% \begin{alltt}% }{% \end{alltt}% \normalsize% } % Used by @example, @include, @includelineno and @dontinclude \newenvironment{DoxyCodeInclude}{% \DoxyCode% }{% \endDoxyCode% } % Used by @verbatim ... @endverbatim \newenvironment{DoxyVerb}{% \footnotesize% \verbatim% }{% \endverbatim% \normalsize% } % Used by @verbinclude \newenvironment{DoxyVerbInclude}{% \DoxyVerb% }{% \endDoxyVerb% } % Used by numbered lists (using '-#' or
    ...
) \newenvironment{DoxyEnumerate}{% \enumerate% }{% \endenumerate% } % Used by bullet lists (using '-', @li, @arg, or
    ...
) \newenvironment{DoxyItemize}{% \itemize% }{% \enditemize% } % Used by description lists (using
...
) \newenvironment{DoxyDescription}{% \description% }{% \enddescription% } % Used by @image, @dotfile, @dot ... @enddot, and @msc ... @endmsc % (only if caption is specified) \newenvironment{DoxyImage}{% \begin{figure}[H]% \begin{center}% }{% \end{center}% \end{figure}% } % Used by @image, @dotfile, @dot ... @enddot, and @msc ... @endmsc % (only if no caption is specified) \newenvironment{DoxyImageNoCaption}{% }{% } % Used by @attention \newenvironment{DoxyAttention}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @author and @authors \newenvironment{DoxyAuthor}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @date \newenvironment{DoxyDate}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @invariant \newenvironment{DoxyInvariant}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @note \newenvironment{DoxyNote}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @post \newenvironment{DoxyPostcond}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @pre \newenvironment{DoxyPrecond}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @copyright \newenvironment{DoxyCopyright}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @remark \newenvironment{DoxyRemark}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @return and @returns \newenvironment{DoxyReturn}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @since \newenvironment{DoxySince}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @see \newenvironment{DoxySeeAlso}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @version \newenvironment{DoxyVersion}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @warning \newenvironment{DoxyWarning}[1]{% \begin{DoxyDesc}{#1}% }{% \end{DoxyDesc}% } % Used by @internal \newenvironment{DoxyInternal}[1]{% \paragraph*{#1}% }{% } % Used by @par and @paragraph \newenvironment{DoxyParagraph}[1]{% \begin{list}{}{% \settowidth{\labelwidth}{40pt}% \setlength{\leftmargin}{\labelwidth}% \setlength{\parsep}{0pt}% \setlength{\itemsep}{-4pt}% \renewcommand{\makelabel}{\entrylabel}% }% \item[#1]% }{% \end{list}% } % Used by parameter lists \newenvironment{DoxyParams}[2][]{% \par% \tabletail{\hline}% \tablelasttail{\hline}% \tablefirsthead{}% \tablehead{}% \ifthenelse{\equal{#1}{}}% {\tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2}\\[1ex]}% \begin{xtabular}{|>{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% p{0.805\textwidth}|}}% {\ifthenelse{\equal{#1}{1}}% {\tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2}\\[1ex]}% \begin{xtabular}{|>{\centering}p{0.10\textwidth}|% >{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% p{0.678\textwidth}|}}% {\tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2}\\[1ex]}% \begin{xtabular}{|>{\centering}p{0.10\textwidth}|% >{\centering\hspace{0pt}}p{0.15\textwidth}|% >{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% p{0.501\textwidth}|}}% }\hline% }{% \end{xtabular}% \tablefirsthead{}% \vspace{6pt}% } % Used for fields of simple structs \newenvironment{DoxyFields}[1]{% \par% \tabletail{\hline}% \tablelasttail{\hline}% \tablehead{}% \tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]}% \begin{xtabular}{|>{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% p{0.15\textwidth}|% p{0.63\textwidth}|}% \hline% }{% \end{xtabular}% \tablefirsthead{}% \vspace{6pt}% } % Used for parameters within a detailed function description \newenvironment{DoxyParamCaption}{% \renewcommand{\item}[2][]{##1 {\em ##2}}% }{% } % Used by return value lists \newenvironment{DoxyRetVals}[1]{% \par% \tabletail{\hline}% \tablelasttail{\hline}% \tablehead{}% \tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]}% \begin{xtabular}{|>{\raggedleft\hspace{0pt}}p{0.25\textwidth}|% p{0.705\textwidth}|}% \hline% }{% \end{xtabular}% \tablefirsthead{}% \vspace{6pt}% } % Used by exception lists \newenvironment{DoxyExceptions}[1]{% \par% \tabletail{\hline}% \tablelasttail{\hline}% \tablehead{}% \tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]}% \begin{xtabular}{|>{\raggedleft\hspace{0pt}}p{0.25\textwidth}|% p{0.705\textwidth}|}% \hline% }{% \end{xtabular}% \tablefirsthead{}% \vspace{6pt}% } % Used by template parameter lists \newenvironment{DoxyTemplParams}[1]{% \par% \tabletail{\hline}% \tablelasttail{\hline}% \tablehead{}% \tablefirsthead{\multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]}% \begin{xtabular}{|>{\raggedleft\hspace{0pt}}p{0.25\textwidth}|% p{0.705\textwidth}|}% \hline% }{% \end{xtabular}% \tablefirsthead{}% \vspace{6pt}% } % Used for member lists \newenvironment{DoxyCompactItemize}{% \begin{itemize}% \setlength{\itemsep}{-3pt}% \setlength{\parsep}{0pt}% \setlength{\topsep}{0pt}% \setlength{\partopsep}{0pt}% }{% \end{itemize}% } % Used for member descriptions \newenvironment{DoxyCompactList}{% \begin{list}{}{% \setlength{\leftmargin}{0.5cm}% \setlength{\itemsep}{0pt}% \setlength{\parsep}{0pt}% \setlength{\topsep}{0pt}% \renewcommand{\makelabel}{\hfill}% }% }{% \end{list}% } % Used for reference lists (@bug, @deprecated, @todo, etc.) \newenvironment{DoxyRefList}{% \begin{list}{}{% \setlength{\labelwidth}{10pt}% \setlength{\leftmargin}{\labelwidth}% \addtolength{\leftmargin}{\labelsep}% \renewcommand{\makelabel}{\xreflabel}% }% }{% \end{list}% } % Used by @bug, @deprecated, @todo, etc. \newenvironment{DoxyRefDesc}[1]{% \begin{list}{}{% \renewcommand\makelabel[1]{\textbf{##1}}% \settowidth\labelwidth{\makelabel{#1}}% \setlength\leftmargin{\labelwidth+\labelsep}% }% }{% \end{list}% } % Used by parameter lists and simple sections \newenvironment{Desc} {\begin{list}{}{% \settowidth{\labelwidth}{40pt}% \setlength{\leftmargin}{\labelwidth}% \setlength{\parsep}{0pt}% \setlength{\itemsep}{-4pt}% \renewcommand{\makelabel}{\entrylabel}% } }{% \end{list}% } % Used by tables \newcommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp}% \newlength{\tmplength}% \newenvironment{TabularC}[1]% {% \setlength{\tmplength}% {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)}% \par\begin{xtabular*}{\linewidth}% {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|}% }% {\end{xtabular*}\par}% % Used for member group headers \newenvironment{Indent}{% \begin{list}{}{% \setlength{\leftmargin}{0.5cm}% }% \item[]\ignorespaces% }{% \unskip% \end{list}% } % Used when hyperlinks are turned off \newcommand{\doxyref}[3]{% \textbf{#1} (\textnormal{#2}\,\pageref{#3})% } % Used by @addindex \newcommand{\lcurly}{\{} \newcommand{\rcurly}{\}} % Used for syntax highlighting \definecolor{comment}{rgb}{0.5,0.0,0.0} \definecolor{keyword}{rgb}{0.0,0.5,0.0} \definecolor{keywordtype}{rgb}{0.38,0.25,0.125} \definecolor{keywordflow}{rgb}{0.88,0.5,0.0} \definecolor{preprocessor}{rgb}{0.5,0.38,0.125} \definecolor{stringliteral}{rgb}{0.0,0.125,0.25} \definecolor{charliteral}{rgb}{0.0,0.5,0.5} \definecolor{vhdldigit}{rgb}{1.0,0.0,1.0} \definecolor{vhdlkeyword}{rgb}{0.43,0.0,0.43} \definecolor{vhdllogic}{rgb}{1.0,0.0,0.0} \definecolor{vhdlchar}{rgb}{0.0,0.0,0.0} mailfilter-0.8.4/doc/api/latex/classConnection.tex0000644000175000017500000001000612675277621017112 00000000000000\subsection{Connection Class Reference} \label{classConnection}\index{Connection@{Connection}} {\ttfamily \#include $<$connection.\+hh$>$} Inheritance diagram for Connection\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2.000000cm]{classConnection} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item virtual {\bf $\sim$\+Connection} (void) \item virtual int {\bf c\+\_\+open} ({\bf const} char $\ast$host\+\_\+name, int port, int time\+\_\+out, int protocol)=0 \item virtual int {\bf c\+\_\+close} (void) {\bf const} =0 \item virtual int {\bf c\+\_\+read} (bool=false)=0 \item virtual int {\bf c\+\_\+write} ({\bf const} char $\ast$msg)=0 \item virtual {\bf const} string $\ast$ {\bf c\+\_\+reply} (void) {\bf const} =0 \end{DoxyCompactItemize} \subsubsection{Constructor \& Destructor Documentation} \index{Connection@{Connection}!````~Connection@{$\sim$\+Connection}} \index{````~Connection@{$\sim$\+Connection}!Connection@{Connection}} \paragraph[{$\sim$\+Connection}]{\setlength{\rightskip}{0pt plus 5cm}virtual Connection\+::$\sim$\+Connection ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}\label{classConnection_a4612766870d8abe5cacadf2cd32d7303} \subsubsection{Member Function Documentation} \index{Connection@{Connection}!c\+\_\+close@{c\+\_\+close}} \index{c\+\_\+close@{c\+\_\+close}!Connection@{Connection}} \paragraph[{c\+\_\+close}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Connection\+::c\+\_\+close ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classConnection_a59ec69c9c520e630ff68d26a79e9e233} Implemented in {\bf Socket} \doxyref{}{p.}{classSocket_a503235d029ac700c29cd56a4ca56d71e}. \index{Connection@{Connection}!c\+\_\+open@{c\+\_\+open}} \index{c\+\_\+open@{c\+\_\+open}!Connection@{Connection}} \paragraph[{c\+\_\+open}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Connection\+::c\+\_\+open ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{host\+\_\+name, } \item[{int}]{port, } \item[{int}]{time\+\_\+out, } \item[{int}]{protocol} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classConnection_a72f5c47421cb5e244f13c31af3ec8997} Implemented in {\bf Socket} \doxyref{}{p.}{classSocket_abde2f1d9ce0920abf5db65045a994261}. \index{Connection@{Connection}!c\+\_\+read@{c\+\_\+read}} \index{c\+\_\+read@{c\+\_\+read}!Connection@{Connection}} \paragraph[{c\+\_\+read}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Connection\+::c\+\_\+read ( \begin{DoxyParamCaption} \item[{bool}]{ = {\ttfamily false}} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classConnection_a1afa33b5406c710fde80167c4688a3fa} Implemented in {\bf Socket} \doxyref{}{p.}{classSocket_ac5891445e5a71a389dffc5a20396901c}. \index{Connection@{Connection}!c\+\_\+reply@{c\+\_\+reply}} \index{c\+\_\+reply@{c\+\_\+reply}!Connection@{Connection}} \paragraph[{c\+\_\+reply}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf const} string$\ast$ Connection\+::c\+\_\+reply ( \begin{DoxyParamCaption} \item[{void}]{} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classConnection_a21d05ebfedbedf2bc8f89c8c6727976b} Implemented in {\bf Socket} \doxyref{}{p.}{classSocket_af4e5077ca0a9275c2a201a6531c58061}. \index{Connection@{Connection}!c\+\_\+write@{c\+\_\+write}} \index{c\+\_\+write@{c\+\_\+write}!Connection@{Connection}} \paragraph[{c\+\_\+write}]{\setlength{\rightskip}{0pt plus 5cm}virtual int Connection\+::c\+\_\+write ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{msg} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classConnection_a64687373aef3050c7620d726989df0e2} Implemented in {\bf Socket} \doxyref{}{p.}{classSocket_a3c60642af7ebb0ee0f3f6642702f6f87}. The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} \item {\bf connection.\+hh}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/latex/classAPOP.tex0000644000175000017500000000243112675277621015555 00000000000000\subsection{A\+P\+O\+P Class Reference} \label{classAPOP}\index{A\+P\+O\+P@{A\+P\+O\+P}} {\ttfamily \#include $<$apop.\+hh$>$} Inheritance diagram for A\+P\+O\+P\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=3.000000cm]{classAPOP} \end{center} \end{figure} \subsubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item bool {\bf login} ({\bf const} char $\ast$usr, {\bf const} char $\ast$pass, {\bf const} unsigned int enc) {\bf const} \end{DoxyCompactItemize} \subsubsection*{Additional Inherited Members} \subsubsection{Member Function Documentation} \index{A\+P\+O\+P@{A\+P\+O\+P}!login@{login}} \index{login@{login}!A\+P\+O\+P@{A\+P\+O\+P}} \paragraph[{login}]{\setlength{\rightskip}{0pt plus 5cm}bool A\+P\+O\+P\+::login ( \begin{DoxyParamCaption} \item[{{\bf const} char $\ast$}]{usr, } \item[{{\bf const} char $\ast$}]{pass, } \item[{{\bf const} unsigned int}]{enc} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAPOP_a61d6b84a9b463c948c74420065f9dfc9} Reimplemented from {\bf P\+O\+P3} \doxyref{}{p.}{classPOP3_a824f175c9eac3fe9cbc231607d832169}. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item {\bf apop.\+hh}\item {\bf apop.\+cc}\end{DoxyCompactItemize} mailfilter-0.8.4/doc/api/man/0000755000175000017500000000000012675277621012764 500000000000000mailfilter-0.8.4/doc/api/man/man3/0000755000175000017500000000000012675277621013622 500000000000000mailfilter-0.8.4/doc/api/man/man3/socket.cc.30000644000175000017500000000155512675277621015510 00000000000000.TH "socket.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME socket.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'defines\&.hh'\fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include 'feedback\&.hh'\fP .br \fC#include 'socket\&.hh'\fP .br \fC#include 'protocol\&.hh'\fP .br .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Size_score.30000644000175000017500000000072112675277621015733 00000000000000.TH "Size_score" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Size_score \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Attributes" .in +1c .ti -1c .RI "int \fBscore\fP" .br .ti -1c .RI "int \fBsize\fP" .br .in -1c .SH "Member Data Documentation" .PP .SS "int Size_score::score" .SS "int Size_score::size" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/filter.hh.30000644000175000017500000000135612675277621015516 00000000000000.TH "filter.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME filter.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBFilter\fP" .br .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBCASE_DEFAULT\fP REG_ICASE" .br .ti -1c .RI "#define \fBCASE_SENSITIVE\fP 0" .br .ti -1c .RI "#define \fBCASE_INSENSITIVE\fP REG_ICASE" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define CASE_DEFAULT REG_ICASE" .SS "#define CASE_INSENSITIVE REG_ICASE" .SS "#define CASE_SENSITIVE 0" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/mailfilter.hh.30000644000175000017500000000225312675277621016356 00000000000000.TH "mailfilter.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME mailfilter.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br .SS "Macros" .in +1c .ti -1c .RI "#define \fBVALUE_HELP\fP 1" .br .ti -1c .RI "#define \fBVALUE_VERBOSE\fP 2" .br .ti -1c .RI "#define \fBVALUE_MAILFILTERRC\fP 3" .br .ti -1c .RI "#define \fBVALUE_LOGFILE\fP 4" .br .ti -1c .RI "#define \fBVALUE_VERSION\fP 5" .br .ti -1c .RI "#define \fBVALUE_TEST\fP 6" .br .ti -1c .RI "#define \fBVALUE_RETURN\fP 7" .br .ti -1c .RI "#define \fBVALUE_TIMESTAMP\fP 8" .br .ti -1c .RI "#define \fBERROR_MSG\fP(msg)" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define ERROR_MSG(msg)" \fBValue:\fP .PP .nf cerr << PACKAGE_NAME \ << ": Error: " \ << msg \ << endl .fi .SS "#define VALUE_HELP 1" .SS "#define VALUE_LOGFILE 4" .SS "#define VALUE_MAILFILTERRC 3" .SS "#define VALUE_RETURN 7" .SS "#define VALUE_TEST 6" .SS "#define VALUE_TIMESTAMP 8" .SS "#define VALUE_VERBOSE 2" .SS "#define VALUE_VERSION 5" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/apop.hh.30000644000175000017500000000050212675277621015160 00000000000000.TH "apop.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME apop.hh \- .SH SYNOPSIS .br .PP \fC#include 'pop3\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBAPOP\fP" .br .in -1c .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/pop3.hh.30000644000175000017500000000172412675277621015111 00000000000000.TH "pop3.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME pop3.hh \- .SH SYNOPSIS .br .PP \fC#include 'header\&.hh'\fP .br \fC#include 'protocol\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBPOP3\fP" .br .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBREPLY_OK\fP" .br .ti -1c .RI "#define \fBHEADER_OK\fP" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define HEADER_OK" \fBValue:\fP .PP .nf ((conn->c_read (true) > 0 && conn->c_reply ())? \ (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \ : false) .fi .SS "#define REPLY_OK" \fBValue:\fP .PP .nf ((conn->c_read () > 0 && conn->c_reply ()) ? \ (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \ : false) .fi .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Connection.30000644000175000017500000000306012675277621015724 00000000000000.TH "Connection" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Connection \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherited by \fBSocket\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fB~Connection\fP (void)" .br .ti -1c .RI "virtual int \fBc_open\fP (\fBconst\fP char *host_name, int port, int time_out, int protocol)=0" .br .ti -1c .RI "virtual int \fBc_close\fP (void) \fBconst\fP =0" .br .ti -1c .RI "virtual int \fBc_read\fP (bool=false)=0" .br .ti -1c .RI "virtual int \fBc_write\fP (\fBconst\fP char *msg)=0" .br .ti -1c .RI "virtual \fBconst\fP string * \fBc_reply\fP (void) \fBconst\fP =0" .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "virtual Connection::~Connection (void)\fC [inline]\fP, \fC [virtual]\fP" .SH "Member Function Documentation" .PP .SS "virtual int Connection::c_close (void) const\fC [pure virtual]\fP" .PP Implemented in \fBSocket\fP\&. .SS "virtual int Connection::c_open (\fBconst\fP char *host_name, intport, inttime_out, intprotocol)\fC [pure virtual]\fP" .PP Implemented in \fBSocket\fP\&. .SS "virtual int Connection::c_read (bool = \fCfalse\fP)\fC [pure virtual]\fP" .PP Implemented in \fBSocket\fP\&. .SS "virtual \fBconst\fP string* Connection::c_reply (void) const\fC [pure virtual]\fP" .PP Implemented in \fBSocket\fP\&. .SS "virtual int Connection::c_write (\fBconst\fP char *msg)\fC [pure virtual]\fP" .PP Implemented in \fBSocket\fP\&. .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/protocol.hh.30000644000175000017500000000121312675277621016062 00000000000000.TH "protocol.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME protocol.hh \- .SH SYNOPSIS .br .PP \fC#include 'connection\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBProtocol\fP" .br .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBPROTOCOL_POP3\fP 2" .br .ti -1c .RI "#define \fBPROTOCOL_APOP\fP 4" .br .ti -1c .RI "#define \fBSSL_C\fP 4096" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define PROTOCOL_APOP 4" .SS "#define PROTOCOL_POP3 2" .SS "#define SSL_C 4096" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/md5.h.30000644000175000017500000000207612675277621014546 00000000000000.TH "md5.h" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME md5.h \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br .SS "Classes" .in +1c .ti -1c .RI "struct \fBMD5_CTX\fP" .br .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef unsigned char * \fBPOINTER\fP" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBMD5Init\fP (\fBMD5_CTX\fP *)" .br .ti -1c .RI "void \fBMD5Update\fP (\fBMD5_CTX\fP *, unsigned char *, unsigned int)" .br .ti -1c .RI "void \fBMD5Final\fP (unsigned char[16], \fBMD5_CTX\fP *)" .br .ti -1c .RI "void \fBgethash\fP (char[33], char *, char *)" .br .in -1c .SH "Typedef Documentation" .PP .SS "typedef unsigned char* \fBPOINTER\fP" .SH "Function Documentation" .PP .SS "void gethash (char[33], char *, char *)" .SS "void MD5Final (unsignedchar[16], \fBMD5_CTX\fP *)" .SS "void MD5Init (\fBMD5_CTX\fP *)" .SS "void MD5Update (\fBMD5_CTX\fP *, unsigned char *, unsignedint)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/getopt.h.30000644000175000017500000000253412675277621015362 00000000000000.TH "getopt.h" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME getopt.h \- .SH SYNOPSIS .br .PP \fC#include \fP .br .SS "Classes" .in +1c .ti -1c .RI "struct \fBoption\fP" .br .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fB_GETOPT_H\fP 1" .br .ti -1c .RI "#define \fBno_argument\fP 0" .br .ti -1c .RI "#define \fBrequired_argument\fP 1" .br .ti -1c .RI "#define \fBoptional_argument\fP 2" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBgetopt\fP ()" .br .ti -1c .RI "int \fBgetopt_long\fP ()" .br .ti -1c .RI "int \fBgetopt_long_only\fP ()" .br .ti -1c .RI "int \fB_getopt_internal\fP ()" .br .in -1c .SS "Variables" .in +1c .ti -1c .RI "char * \fBoptarg\fP" .br .ti -1c .RI "int \fBoptind\fP" .br .ti -1c .RI "int \fBopterr\fP" .br .ti -1c .RI "int \fBoptopt\fP" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define _GETOPT_H 1" .SS "#define no_argument 0" .SS "#define optional_argument 2" .SS "#define required_argument 1" .SH "Function Documentation" .PP .SS "int _getopt_internal ()" .SS "int getopt ()" .SS "int getopt_long ()" .SS "int getopt_long_only ()" .SH "Variable Documentation" .PP .SS "char* optarg" .SS "int opterr" .SS "int optind" .SS "int optopt" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/filter.cc.30000644000175000017500000000071512675277621015502 00000000000000.TH "filter.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME filter.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'filter\&.hh'\fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include 'preferences\&.hh'\fP .br .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/score.hh.30000644000175000017500000000056012675277621015340 00000000000000.TH "score.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME score.hh \- .SH SYNOPSIS .br .PP \fC#include 'filter\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBSize_score\fP" .br .ti -1c .RI "class \fBScore\fP" .br .in -1c .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/protocol.cc.30000644000175000017500000000046112675277621016054 00000000000000.TH "protocol.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME protocol.cc \- .SH SYNOPSIS .br .PP \fC#include 'connection\&.hh'\fP .br \fC#include 'protocol\&.hh'\fP .br .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Score.30000644000175000017500000000126612675277621014706 00000000000000.TH "Score" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Score \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBFilter\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "int \fBscore\fP (void) \fBconst\fP " .br .ti -1c .RI "void \fBset_score\fP (int)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "int \fBscr\fP" .br .in -1c .SH "Member Function Documentation" .PP .SS "int Score::score (void) const" .SS "void Score::set_score (int)" .SH "Member Data Documentation" .PP .SS "int Score::scr\fC [protected]\fP" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Protocol.30000644000175000017500000000450312675277621015431 00000000000000.TH "Protocol" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Protocol \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherited by \fBPOP3\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fB~Protocol\fP (void)" .br .ti -1c .RI "virtual bool \fBlogin\fP (\fBconst\fP char *usr, \fBconst\fP char *pass, \fBconst\fP unsigned int) \fBconst\fP =0" .br .ti -1c .RI "virtual bool \fBlogout\fP (void) \fBconst\fP =0" .br .ti -1c .RI "virtual int \fBremove_msg\fP (\fBconst\fP unsigned int num) \fBconst\fP =0" .br .ti -1c .RI "virtual int \fBstatus\fP (void) \fBconst\fP =0" .br .ti -1c .RI "virtual int \fBscan\fP (void) \fBconst\fP =0" .br .ti -1c .RI "void \fBset_connection\fP (\fBConnection\fP *)" .br .ti -1c .RI "void \fBset_ident\fP (unsigned int)" .br .ti -1c .RI "unsigned int \fBident\fP (void) \fBconst\fP " .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "\fBConnection\fP * \fBconn\fP" .br .ti -1c .RI "unsigned int \fBprot_ident\fP" .br .ti -1c .RI "unsigned int \fBconnect_type\fP" .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "virtual Protocol::~Protocol (void)\fC [inline]\fP, \fC [virtual]\fP" .SH "Member Function Documentation" .PP .SS "unsigned int Protocol::ident (void) const" .SS "virtual bool Protocol::login (\fBconst\fP char *usr, \fBconst\fP char *pass, \fBconst\fP unsignedint) const\fC [pure virtual]\fP" .PP Implemented in \fBPOP3\fP, and \fBAPOP\fP\&. .SS "virtual bool Protocol::logout (void) const\fC [pure virtual]\fP" .PP Implemented in \fBPOP3\fP\&. .SS "virtual int Protocol::remove_msg (\fBconst\fP unsigned intnum) const\fC [pure virtual]\fP" .PP Implemented in \fBPOP3\fP\&. .SS "virtual int Protocol::scan (void) const\fC [pure virtual]\fP" .PP Implemented in \fBPOP3\fP\&. .SS "void Protocol::set_connection (\fBConnection\fP *currently_established_connection)" .SS "void Protocol::set_ident (unsigned inti)" .SS "virtual int Protocol::status (void) const\fC [pure virtual]\fP" .PP Implemented in \fBPOP3\fP\&. .SH "Member Data Documentation" .PP .SS "\fBConnection\fP* Protocol::conn\fC [protected]\fP" .SS "unsigned int Protocol::connect_type\fC [protected]\fP" .SS "unsigned int Protocol::prot_ident\fC [protected]\fP" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Account.30000644000175000017500000000452312675277621015226 00000000000000.TH "Account" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Account \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "void \fBclear\fP (void)" .br .ti -1c .RI "string \fBserver\fP (void)" .br .ti -1c .RI "void \fBset_server\fP (\fBconst\fP char *)" .br .ti -1c .RI "string \fBusr\fP (void)" .br .ti -1c .RI "void \fBset_usr\fP (\fBconst\fP char *)" .br .ti -1c .RI "string \fBpasswd\fP (void)" .br .ti -1c .RI "void \fBset_passwd\fP (\fBconst\fP char *)" .br .ti -1c .RI "unsigned int \fBport\fP (void)" .br .ti -1c .RI "void \fBset_port\fP (unsigned int)" .br .ti -1c .RI "void \fBset_protocol\fP (unsigned int)" .br .ti -1c .RI "unsigned int \fBprotocol\fP (void)" .br .ti -1c .RI "void \fBset_connection\fP (unsigned int=POSIX_SOCKETS) __attribute__((unused))" .br .ti -1c .RI "int \fBcheck\fP (void)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "string \fBserv\fP" .br .ti -1c .RI "string \fBuser\fP" .br .ti -1c .RI "string \fBpass\fP" .br .ti -1c .RI "int \fBthe_port\fP" .br .ti -1c .RI "vector< string > \fBmsg_ids\fP" .br .ti -1c .RI "\fBProtocol\fP * \fBproto\fP" .br .ti -1c .RI "\fBConnection\fP * \fBconn\fP" .br .in -1c .SH "Member Function Documentation" .PP .SS "int Account::check (void)" .SS "void Account::clear (void)" .SS "string Account::passwd (void)" .SS "unsigned int Account::port (void)" .SS "unsigned int Account::protocol (void)" .SS "string Account::server (void)" .SS "void Account::set_connection (unsigned intthe_connection_type = \fCPOSIX_SOCKETS\fP)" .SS "void Account::set_passwd (\fBconst\fP char *s)" .SS "void Account::set_port (unsigned intp)" .SS "void Account::set_protocol (unsigned intprot)" .SS "void Account::set_server (\fBconst\fP char *s)" .SS "void Account::set_usr (\fBconst\fP char *s)" .SS "string Account::usr (void)" .SH "Member Data Documentation" .PP .SS "\fBConnection\fP* Account::conn\fC [protected]\fP" .SS "vector Account::msg_ids\fC [protected]\fP" .SS "string Account::pass\fC [protected]\fP" .SS "\fBProtocol\fP* Account::proto\fC [protected]\fP" .SS "string Account::serv\fC [protected]\fP" .SS "int Account::the_port\fC [protected]\fP" .SS "string Account::user\fC [protected]\fP" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/connection.hh.30000644000175000017500000000052112675277621016361 00000000000000.TH "connection.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME connection.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBConnection\fP" .br .in -1c .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/apop.cc.30000644000175000017500000000074112675277621015153 00000000000000.TH "apop.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME apop.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'apop\&.hh'\fP .br \fC#include 'feedback\&.hh'\fP .br \fC#include 'defines\&.hh'\fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include \fP .br \fC#include 'md5\&.h'\fP .br .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/_home_baueran_Development_mailfilter-code_src_.30000644000175000017500000000232012675277621025077 00000000000000.TH "src Directory Reference" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME src Directory Reference \- .SH SYNOPSIS .br .PP .SS "Files" .in +1c .ti -1c .RI "file \fBaccount\&.cc\fP" .br .ti -1c .RI "file \fBaccount\&.hh\fP" .br .ti -1c .RI "file \fBapop\&.cc\fP" .br .ti -1c .RI "file \fBapop\&.hh\fP" .br .ti -1c .RI "file \fBconnection\&.hh\fP" .br .ti -1c .RI "file \fBfeedback\&.cc\fP" .br .ti -1c .RI "file \fBfeedback\&.hh\fP" .br .ti -1c .RI "file \fBfilter\&.cc\fP" .br .ti -1c .RI "file \fBfilter\&.hh\fP" .br .ti -1c .RI "file \fBgetopt\&.c\fP" .br .ti -1c .RI "file \fBgetopt\&.h\fP" .br .ti -1c .RI "file \fBgetopt1\&.c\fP" .br .ti -1c .RI "file \fBmailfilter\&.cc\fP" .br .ti -1c .RI "file \fBmailfilter\&.hh\fP" .br .ti -1c .RI "file \fBmd5\&.h\fP" .br .ti -1c .RI "file \fBmd5c\&.c\fP" .br .ti -1c .RI "file \fBpop3\&.cc\fP" .br .ti -1c .RI "file \fBpop3\&.hh\fP" .br .ti -1c .RI "file \fBpreferences\&.cc\fP" .br .ti -1c .RI "file \fBpreferences\&.hh\fP" .br .ti -1c .RI "file \fBprotocol\&.cc\fP" .br .ti -1c .RI "file \fBprotocol\&.hh\fP" .br .ti -1c .RI "file \fBscore\&.hh\fP" .br .ti -1c .RI "file \fBsocket\&.cc\fP" .br .ti -1c .RI "file \fBsocket\&.hh\fP" .br .in -1c mailfilter-0.8.4/doc/api/man/man3/feedback.hh.30000644000175000017500000000055012675277621015750 00000000000000.TH "feedback.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME feedback.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBFeedback\fP" .br .in -1c .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/getopt.c.30000644000175000017500000000446712675277621015364 00000000000000.TH "getopt.c" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME getopt.c \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include 'getopt\&.h'\fP .br \fC#include \fP .br .SS "Macros" .in +1c .ti -1c .RI "#define \fB_NO_PROTO\fP" .br .ti -1c .RI "#define \fBconst\fP" .br .ti -1c .RI "#define \fBGETOPT_INTERFACE_VERSION\fP 2" .br .ti -1c .RI "#define \fB_\fP(msgid) (msgid)" .br .ti -1c .RI "#define \fBSWAP_FLAGS\fP(ch1, ch2)" .br .ti -1c .RI "#define \fBNONOPTION_P\fP (argv[\fBoptind\fP][0] != '-' || argv[\fBoptind\fP][1] == '\\0')" .br .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum { \fBREQUIRE_ORDER\fP, \fBPERMUTE\fP, \fBRETURN_IN_ORDER\fP }" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "char * \fBgetenv\fP ()" .br .ti -1c .RI "int \fB_getopt_internal\fP (int argc, char *\fBconst\fP *argv, \fBconst\fP char *optstring, \fBconst\fP struct \fBoption\fP *longopts, int *longind, int long_only)" .br .ti -1c .RI "int \fBgetopt\fP (int argc, char *\fBconst\fP *argv, \fBconst\fP char *optstring)" .br .in -1c .SS "Variables" .in +1c .ti -1c .RI "char * \fBoptarg\fP" .br .ti -1c .RI "int \fBoptind\fP = 1" .br .ti -1c .RI "int \fB__getopt_initialized\fP" .br .ti -1c .RI "int \fBopterr\fP = 1" .br .ti -1c .RI "int \fBoptopt\fP = '?'" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define _(msgid) (msgid)" .SS "#define _NO_PROTO" .SS "#define const" .SS "#define GETOPT_INTERFACE_VERSION 2" .SS "#define NONOPTION_P (argv[\fBoptind\fP][0] != '-' || argv[\fBoptind\fP][1] == '\\0')" .SS "#define SWAP_FLAGS(ch1, ch2)" .SH "Enumeration Type Documentation" .PP .SS "anonymous enum" .PP \fBEnumerator\fP .in +1c .TP \fB\fIREQUIRE_ORDER \fP\fP .TP \fB\fIPERMUTE \fP\fP .TP \fB\fIRETURN_IN_ORDER \fP\fP .SH "Function Documentation" .PP .SS "int _getopt_internal (intargc, char *\fBconst\fP *argv, \fBconst\fP char *optstring, \fBconst\fP struct \fBoption\fP *longopts, int *longind, intlong_only)" .SS "char* getenv ()" .SS "int getopt (intargc, char *\fBconst\fP *argv, \fBconst\fP char *optstring)" .SH "Variable Documentation" .PP .SS "int __getopt_initialized" .SS "char* optarg" .SS "int opterr = 1" .SS "int optind = 1" .SS "int optopt = '?'" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/preferences.cc.30000644000175000017500000000211712675277621016514 00000000000000.TH "preferences.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME preferences.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'preferences\&.hh'\fP .br \fC#include 'filter\&.hh'\fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include 'account\&.hh'\fP .br \fC#include 'protocol\&.hh'\fP .br \fC#include 'score\&.hh'\fP .br \fC#include 'rcfile\&.hh'\fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br .SS "Functions" .in +1c .ti -1c .RI "int \fBrcparse\fP (void *)" .br .ti -1c .RI "int \fBcmp_no_case\fP (\fBconst\fP string &, \fBconst\fP string &)" .br .in -1c .SH "Function Documentation" .PP .SS "int cmp_no_case (\fBconst\fP string &, \fBconst\fP string &)" .SS "int rcparse (void *)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/feedback.cc.30000644000175000017500000000064612675277621015744 00000000000000.TH "feedback.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME feedback.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'feedback\&.hh'\fP .br \fC#include 'preferences\&.hh'\fP .br .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Feedback.30000644000175000017500000000224112675277621015311 00000000000000.TH "Feedback" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Feedback \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fB~Feedback\fP (void)" .br .ti -1c .RI "bool \fBopen\fP (\fBconst\fP char *)" .br .ti -1c .RI "bool \fBprint_msg\fP (\fBconst\fP string, int)" .br .ti -1c .RI "bool \fBprint_err\fP (\fBconst\fP string, int=1)" .br .ti -1c .RI "bool \fBprint_header\fP (\fBconst\fP string)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBFeedback\fP * \fBInstance\fP (void)" .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "Feedback::~Feedback (void)" .SH "Member Function Documentation" .PP .SS "\fBFeedback\fP * Feedback::Instance (void)\fC [static]\fP" .SS "bool Feedback::open (\fBconst\fP char *name)" .SS "bool Feedback::print_err (\fBconst\fP stringmsg, intmin_verbose_level = \fC1\fP)" .SS "bool Feedback::print_header (\fBconst\fP stringmsg)" .SS "bool Feedback::print_msg (\fBconst\fP stringmsg, intmin_verbose_level)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/APOP.30000644000175000017500000000125612675277621014371 00000000000000.TH "APOP" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME APOP \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBPOP3\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "bool \fBlogin\fP (\fBconst\fP char *usr, \fBconst\fP char *pass, \fBconst\fP unsigned int enc) \fBconst\fP " .br .in -1c .SS "Additional Inherited Members" .SH "Member Function Documentation" .PP .SS "bool APOP::login (\fBconst\fP char *usr, \fBconst\fP char *pass, \fBconst\fP unsigned intenc) const\fC [virtual]\fP" .PP Reimplemented from \fBPOP3\fP\&. .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/pop3.cc.30000644000175000017500000000232312675277621015073 00000000000000.TH "pop3.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME pop3.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'socket\&.hh'\fP .br \fC#include 'pop3\&.hh'\fP .br \fC#include 'feedback\&.hh'\fP .br \fC#include 'preferences\&.hh'\fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include 'header\&.hh'\fP .br \fC#include 'weeder\&.hh'\fP .br \fC#include 'defines\&.hh'\fP .br \fC#include 'protocol\&.hh'\fP .br \fC#include 'rfc822parser\&.hh'\fP .br \fC#include \fP .br .SS "Macros" .in +1c .ti -1c .RI "#define \fByyFlexLexer\fP rfcFlexLexer" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBrfcparse\fP (void *)" .br .in -1c .SS "Variables" .in +1c .ti -1c .RI "FlexLexer * \fBrfclexer\fP" .br .ti -1c .RI "Weeder \fBweeder\fP" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define yyFlexLexer rfcFlexLexer" .SH "Function Documentation" .PP .SS "int rfcparse (void *)" .SH "Variable Documentation" .PP .SS "FlexLexer* rfclexer" .SS "Weeder weeder" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Socket.30000644000175000017500000000266312675277621015065 00000000000000.TH "Socket" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Socket \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBConnection\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSocket\fP (void)" .br .ti -1c .RI "void \fBclear\fP (void)" .br .ti -1c .RI "int \fBc_open\fP (\fBconst\fP char *host, int port, int time_out, int protocol)" .br .ti -1c .RI "int \fBc_close\fP (void) \fBconst\fP " .br .ti -1c .RI "int \fBc_write\fP (\fBconst\fP char *command)" .br .ti -1c .RI "int \fBc_read\fP (bool=false)" .br .ti -1c .RI "\fBconst\fP string * \fBc_reply\fP (void) \fBconst\fP " .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "Socket::Socket (void)" .SH "Member Function Documentation" .PP .SS "int Socket::c_close (void) const\fC [virtual]\fP" .PP Implements \fBConnection\fP\&. .SS "int Socket::c_open (\fBconst\fP char *host, intport, inttime_out, intprotocol)\fC [virtual]\fP" .PP Implements \fBConnection\fP\&. .SS "int Socket::c_read (boolread_header = \fCfalse\fP)\fC [virtual]\fP" .PP Implements \fBConnection\fP\&. .SS "\fBconst\fP string * Socket::c_reply (void) const\fC [virtual]\fP" .PP Implements \fBConnection\fP\&. .SS "int Socket::c_write (\fBconst\fP char *command)\fC [virtual]\fP" .PP Implements \fBConnection\fP\&. .SS "void Socket::clear (void)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/preferences.hh.30000644000175000017500000000106312675277621016525 00000000000000.TH "preferences.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME preferences.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'defines\&.hh'\fP .br \fC#include 'socket\&.hh'\fP .br \fC#include 'filter\&.hh'\fP .br \fC#include 'score\&.hh'\fP .br \fC#include 'account\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBPreferences\fP" .br .in -1c .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/md5c.c.30000644000175000017500000000652412675277621014706 00000000000000.TH "md5c.c" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME md5c.c \- .SH SYNOPSIS .br .PP \fC#include 'md5\&.h'\fP .br .SS "Macros" .in +1c .ti -1c .RI "#define \fBS11\fP 7" .br .ti -1c .RI "#define \fBS12\fP 12" .br .ti -1c .RI "#define \fBS13\fP 17" .br .ti -1c .RI "#define \fBS14\fP 22" .br .ti -1c .RI "#define \fBS21\fP 5" .br .ti -1c .RI "#define \fBS22\fP 9" .br .ti -1c .RI "#define \fBS23\fP 14" .br .ti -1c .RI "#define \fBS24\fP 20" .br .ti -1c .RI "#define \fBS31\fP 4" .br .ti -1c .RI "#define \fBS32\fP 11" .br .ti -1c .RI "#define \fBS33\fP 16" .br .ti -1c .RI "#define \fBS34\fP 23" .br .ti -1c .RI "#define \fBS41\fP 6" .br .ti -1c .RI "#define \fBS42\fP 10" .br .ti -1c .RI "#define \fBS43\fP 15" .br .ti -1c .RI "#define \fBS44\fP 21" .br .ti -1c .RI "#define \fBF\fP(x, y, z) (((x) & (y)) | ((~x) & (z)))" .br .ti -1c .RI "#define \fBG\fP(x, y, z) (((x) & (z)) | ((y) & (~z)))" .br .ti -1c .RI "#define \fBH\fP(x, y, z) ((x) ^ (y) ^ (z))" .br .ti -1c .RI "#define \fBI\fP(x, y, z) ((y) ^ ((x) | (~z)))" .br .ti -1c .RI "#define \fBROTATE_LEFT\fP(x, n) (((x) << (n)) | ((x) >> (32-(n))))" .br .ti -1c .RI "#define \fBFF\fP(a, b, c, d, x, s, ac)" .br .ti -1c .RI "#define \fBGG\fP(a, b, c, d, x, s, ac)" .br .ti -1c .RI "#define \fBHH\fP(a, b, c, d, x, s, ac)" .br .ti -1c .RI "#define \fBII\fP(a, b, c, d, x, s, ac)" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBMD5Init\fP (\fBMD5_CTX\fP *context)" .br .ti -1c .RI "void \fBMD5Update\fP (\fBMD5_CTX\fP *context, unsigned char *input, unsigned int inputLen)" .br .ti -1c .RI "void \fBMD5Final\fP (digest, \fBMD5_CTX\fP *context)" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))" .SS "#define FF(a, b, c, d, x, s, ac)" \fBValue:\fP .PP .nf { \ (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } .fi .SS "#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))" .SS "#define GG(a, b, c, d, x, s, ac)" \fBValue:\fP .PP .nf { \ (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } .fi .SS "#define H(x, y, z) ((x) ^ (y) ^ (z))" .SS "#define HH(a, b, c, d, x, s, ac)" \fBValue:\fP .PP .nf { \ (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } .fi .SS "#define I(x, y, z) ((y) ^ ((x) | (~z)))" .SS "#define II(a, b, c, d, x, s, ac)" \fBValue:\fP .PP .nf { \ (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } .fi .SS "#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))" .SS "#define S11 7" .SS "#define S12 12" .SS "#define S13 17" .SS "#define S14 22" .SS "#define S21 5" .SS "#define S22 9" .SS "#define S23 14" .SS "#define S24 20" .SS "#define S31 4" .SS "#define S32 11" .SS "#define S33 16" .SS "#define S34 23" .SS "#define S41 6" .SS "#define S42 10" .SS "#define S43 15" .SS "#define S44 21" .SH "Function Documentation" .PP .SS "void MD5Final (digest, \fBMD5_CTX\fP *context)" .SS "void MD5Init (\fBMD5_CTX\fP *context)" .SS "void MD5Update (\fBMD5_CTX\fP *context, unsigned char *input, unsigned intinputLen)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/account.cc.30000644000175000017500000000162312675277621015650 00000000000000.TH "account.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME account.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'account\&.hh'\fP .br \fC#include 'pop3\&.hh'\fP .br \fC#include 'apop\&.hh'\fP .br \fC#include 'preferences\&.hh'\fP .br \fC#include 'feedback\&.hh'\fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include 'connection\&.hh'\fP .br \fC#include 'socket\&.hh'\fP .br \fC#include 'defines\&.hh'\fP .br .SS "Functions" .in +1c .ti -1c .RI "string \fBint_to_string\fP (int)" .br .in -1c .SS "Variables" .in +1c .ti -1c .RI "int \fBmailbox_status\fP" .br .in -1c .SH "Function Documentation" .PP .SS "string int_to_string (int)" .SH "Variable Documentation" .PP .SS "int mailbox_status" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/POP3.30000644000175000017500000000251212675277621014347 00000000000000.TH "POP3" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME POP3 \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBProtocol\fP\&. .PP Inherited by \fBAPOP\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "bool \fBlogin\fP (\fBconst\fP char *, \fBconst\fP char *, \fBconst\fP unsigned int) \fBconst\fP " .br .ti -1c .RI "bool \fBlogout\fP (void) \fBconst\fP " .br .ti -1c .RI "int \fBremove_msg\fP (\fBconst\fP unsigned int) \fBconst\fP " .br .ti -1c .RI "int \fBstatus\fP (void) \fBconst\fP " .br .ti -1c .RI "int \fBscan\fP (void) \fBconst\fP " .br .in -1c .SS "Additional Inherited Members" .SH "Member Function Documentation" .PP .SS "bool POP3::login (\fBconst\fP char *usr, \fBconst\fP char *pass, \fBconst\fP unsigned intenc) const\fC [virtual]\fP" .PP Implements \fBProtocol\fP\&. .PP Reimplemented in \fBAPOP\fP\&. .SS "bool POP3::logout (void) const\fC [virtual]\fP" .PP Implements \fBProtocol\fP\&. .SS "int POP3::remove_msg (\fBconst\fP unsigned intnum) const\fC [virtual]\fP" .PP Implements \fBProtocol\fP\&. .SS "int POP3::scan (void) const\fC [virtual]\fP" .PP Implements \fBProtocol\fP\&. .SS "int POP3::status (void) const\fC [virtual]\fP" .PP Implements \fBProtocol\fP\&. .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/socket.hh.30000644000175000017500000000103612675277621015514 00000000000000.TH "socket.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME socket.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'connection\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBSocket\fP" .br .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBMAX_BYTES\fP 512" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define MAX_BYTES 512" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/MD5_CTX.30000644000175000017500000000110112675277621014722 00000000000000.TH "MD5_CTX" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME MD5_CTX \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Attributes" .in +1c .ti -1c .RI "uint32_t \fBstate\fP [4]" .br .ti -1c .RI "uint32_t \fBcount\fP [2]" .br .ti -1c .RI "unsigned char \fBbuffer\fP [64]" .br .in -1c .SH "Member Data Documentation" .PP .SS "unsigned char MD5_CTX::buffer[64]" .SS "uint32_t MD5_CTX::count[2]" .SS "uint32_t MD5_CTX::state[4]" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Preferences.30000644000175000017500000002331212675277621016070 00000000000000.TH "Preferences" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Preferences \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBPreferences\fP ()" .br .ti -1c .RI "void \fBinit\fP (void)" .br .ti -1c .RI "void \fBkill\fP (void)" .br .ti -1c .RI "bool \fBopen\fP (\fBconst\fP char *)" .br .ti -1c .RI "bool \fBload\fP (void)" .br .ti -1c .RI "void \fBadd_deny_rule\fP (\fBconst\fP char *, \fBconst\fP char *, \fBconst\fP char *)" .br .ti -1c .RI "void \fBadd_allow_rule\fP (\fBconst\fP char *, \fBconst\fP char *, \fBconst\fP char *)" .br .ti -1c .RI "void \fBadd_score\fP (\fBconst\fP char *, int, \fBconst\fP char *, \fBconst\fP char *)" .br .ti -1c .RI "int \fBneg_allows\fP (void)" .br .ti -1c .RI "int \fBneg_denies\fP (void)" .br .ti -1c .RI "void \fBset_rc_file\fP (\fBconst\fP char *)" .br .ti -1c .RI "string \fBrc_file\fP (void)" .br .ti -1c .RI "void \fBset_log_file\fP (\fBconst\fP char *)" .br .ti -1c .RI "string \fBlog_file\fP (void)" .br .ti -1c .RI "void \fBset_verbose_level\fP (int)" .br .ti -1c .RI "int \fBverbose_level\fP (void)" .br .ti -1c .RI "void \fBset_headers_file\fP (\fBconst\fP char *)" .br .ti -1c .RI "string \fBheaders_file\fP (void)" .br .ti -1c .RI "void \fBset_default_case\fP (\fBconst\fP char *)" .br .ti -1c .RI "int \fBdefault_case\fP (void)" .br .ti -1c .RI "void \fBset_reg_type\fP (\fBconst\fP char *)" .br .ti -1c .RI "int \fBreg_type\fP (void)" .br .ti -1c .RI "void \fBset_server\fP (\fBconst\fP char *)" .br .ti -1c .RI "void \fBset_usr\fP (\fBconst\fP char *)" .br .ti -1c .RI "void \fBset_passwd\fP (\fBconst\fP char *)" .br .ti -1c .RI "void \fBset_protocol\fP (\fBconst\fP char *)" .br .ti -1c .RI "void \fBset_connection\fP (unsigned int=POSIX_SOCKETS) __attribute__((unused))" .br .ti -1c .RI "void \fBset_port\fP (unsigned int)" .br .ti -1c .RI "unsigned int \fBtime_out\fP (void)" .br .ti -1c .RI "void \fBset_time_out\fP (unsigned int)" .br .ti -1c .RI "bool \fBdelete_duplicates\fP (void)" .br .ti -1c .RI "void \fBset_del_duplicates\fP (\fBconst\fP char *)" .br .ti -1c .RI "int \fBmax_size_allow\fP (void)" .br .ti -1c .RI "void \fBset_max_size_allow\fP (int)" .br .ti -1c .RI "int \fBmax_size_deny\fP (void)" .br .ti -1c .RI "void \fBset_max_size_deny\fP (int)" .br .ti -1c .RI "\fBSize_score\fP \fBmax_size_score\fP (void)" .br .ti -1c .RI "void \fBset_max_size_score\fP (int, int)" .br .ti -1c .RI "int \fBhighscore\fP (void)" .br .ti -1c .RI "void \fBset_highscore\fP (int)" .br .ti -1c .RI "bool \fBnormal\fP (void)" .br .ti -1c .RI "void \fBset_normal\fP (\fBconst\fP char *)" .br .ti -1c .RI "bool \fBtest_mode\fP (void)" .br .ti -1c .RI "void \fBset_test_mode\fP (\fBconst\fP char *)" .br .ti -1c .RI "int \fBmaxlength\fP (void)" .br .ti -1c .RI "void \fBset_maxlength\fP (int)" .br .ti -1c .RI "bool \fBignore_time_stamp\fP ()" .br .ti -1c .RI "void \fBset_ignore_time_stamp\fP (bool=true)" .br .ti -1c .RI "bool \fBreturn_status\fP (void)" .br .ti -1c .RI "void \fBset_return_status\fP (bool)" .br .ti -1c .RI "vector< \fBAccount\fP > * \fBaccounts\fP (void)" .br .ti -1c .RI "vector< \fBFilter\fP > * \fBallow_filters\fP (void)" .br .ti -1c .RI "vector< \fBFilter\fP > * \fBdeny_filters\fP (void)" .br .ti -1c .RI "vector< \fBScore\fP > * \fBscore_filters\fP (void)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBPreferences\fP & \fBInstance\fP ()" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "ifstream \fBprefs_stream\fP" .br .ti -1c .RI "vector< \fBFilter\fP > \fBallows\fP" .br .ti -1c .RI "vector< \fBFilter\fP > \fBdenies\fP" .br .ti -1c .RI "vector< \fBScore\fP > \fBscores\fP" .br .ti -1c .RI "vector< \fBAccount\fP > \fBaccnts\fP" .br .ti -1c .RI "\fBAccount\fP \fBcur_account\fP" .br .ti -1c .RI "string \fBprefs_file_name\fP" .br .ti -1c .RI "string \fBlog_file_name\fP" .br .ti -1c .RI "string \fBheaders_file_name\fP" .br .ti -1c .RI "int \fBicase\fP" .br .ti -1c .RI "bool \fBnorm\fP" .br .ti -1c .RI "bool \fBtest\fP" .br .ti -1c .RI "bool \fBshow_headers\fP" .br .ti -1c .RI "bool \fBdel_duplicates\fP" .br .ti -1c .RI "bool \fBret_status\fP" .br .ti -1c .RI "bool \fB_ignore_time_stamp\fP" .br .ti -1c .RI "int \fBhigh_score\fP" .br .ti -1c .RI "unsigned \fBtime_out_val\fP" .br .ti -1c .RI "int \fBmax_size\fP" .br .ti -1c .RI "\fBSize_score\fP \fBsize_score\fP" .br .ti -1c .RI "int \fBmax_size_friends\fP" .br .ti -1c .RI "int \fBmax_line_length\fP" .br .ti -1c .RI "int \fBrreg_type\fP" .br .ti -1c .RI "int \fBverbosity\fP" .br .ti -1c .RI "int \fBconn_type\fP" .br .ti -1c .RI "int \fBnegative_allows\fP" .br .ti -1c .RI "int \fBnegative_denies\fP" .br .ti -1c .RI "int \fBnegative_scores\fP" .br .ti -1c .RI "bool \fBverbosity_changed\fP" .br .ti -1c .RI "bool \fBtest_changed\fP" .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "Preferences::Preferences ()" .SH "Member Function Documentation" .PP .SS "vector< \fBAccount\fP > * Preferences::accounts (void)" .SS "void Preferences::add_allow_rule (\fBconst\fP char *keyword, \fBconst\fP char *operat, \fBconst\fP char *id)" .SS "void Preferences::add_deny_rule (\fBconst\fP char *keyword, \fBconst\fP char *operat, \fBconst\fP char *id)" .SS "void Preferences::add_score (\fBconst\fP char *keyword, intgiven_score, \fBconst\fP char *operat, \fBconst\fP char *id)" .SS "vector< \fBFilter\fP > * Preferences::allow_filters (void)" .SS "int Preferences::default_case (void)" .SS "bool Preferences::delete_duplicates (void)" .SS "vector< \fBFilter\fP > * Preferences::deny_filters (void)" .SS "string Preferences::headers_file (void)" .SS "int Preferences::highscore (void)" .SS "bool Preferences::ignore_time_stamp ()" .SS "void Preferences::init (void)" .SS "\fBPreferences\fP & Preferences::Instance ()\fC [static]\fP" .SS "void Preferences::kill (void)" .SS "bool Preferences::load (void)" .SS "string Preferences::log_file (void)" .SS "int Preferences::max_size_allow (void)" .SS "int Preferences::max_size_deny (void)" .SS "\fBSize_score\fP Preferences::max_size_score (void)" .SS "int Preferences::maxlength (void)" .SS "int Preferences::neg_allows (void)" .SS "int Preferences::neg_denies (void)" .SS "bool Preferences::normal (void)" .SS "bool Preferences::open (\fBconst\fP char *name)" .SS "string Preferences::rc_file (void)" .SS "int Preferences::reg_type (void)" .SS "bool Preferences::return_status (void)" .SS "vector< \fBScore\fP > * Preferences::score_filters (void)" .SS "void Preferences::set_connection (unsigned intp = \fCPOSIX_SOCKETS\fP)" .SS "void Preferences::set_default_case (\fBconst\fP char *new_case)" .SS "void Preferences::set_del_duplicates (\fBconst\fP char *del)" .SS "void Preferences::set_headers_file (\fBconst\fP char *name)" .SS "void Preferences::set_highscore (intval)" .SS "void Preferences::set_ignore_time_stamp (boolnew_ts = \fCtrue\fP)" .SS "void Preferences::set_log_file (\fBconst\fP char *name)" .SS "void Preferences::set_max_size_allow (intval)" .SS "void Preferences::set_max_size_deny (intval)" .SS "void Preferences::set_max_size_score (intscore, intsize)" .SS "void Preferences::set_maxlength (intval)" .SS "void Preferences::set_normal (\fBconst\fP char *par)" .SS "void Preferences::set_passwd (\fBconst\fP char *pass)" .SS "void Preferences::set_port (unsigned intp)" .SS "void Preferences::set_protocol (\fBconst\fP char *prot)" .SS "void Preferences::set_rc_file (\fBconst\fP char *name)" .SS "void Preferences::set_reg_type (\fBconst\fP char *new_type)" .SS "void Preferences::set_return_status (boolst)" .SS "void Preferences::set_server (\fBconst\fP char *server)" .SS "void Preferences::set_test_mode (\fBconst\fP char *par)" .SS "void Preferences::set_time_out (unsigned intval)" .SS "void Preferences::set_usr (\fBconst\fP char *user)" .SS "void Preferences::set_verbose_level (intlevel)" .SS "bool Preferences::test_mode (void)" .SS "unsigned int Preferences::time_out (void)" .SS "int Preferences::verbose_level (void)" .SH "Member Data Documentation" .PP .SS "bool Preferences::_ignore_time_stamp\fC [protected]\fP" .SS "vector<\fBAccount\fP> Preferences::accnts\fC [protected]\fP" .SS "vector<\fBFilter\fP> Preferences::allows\fC [protected]\fP" .SS "int Preferences::conn_type\fC [protected]\fP" .SS "\fBAccount\fP Preferences::cur_account\fC [protected]\fP" .SS "bool Preferences::del_duplicates\fC [protected]\fP" .SS "vector<\fBFilter\fP> Preferences::denies\fC [protected]\fP" .SS "string Preferences::headers_file_name\fC [protected]\fP" .SS "int Preferences::high_score\fC [protected]\fP" .SS "int Preferences::icase\fC [protected]\fP" .SS "string Preferences::log_file_name\fC [protected]\fP" .SS "int Preferences::max_line_length\fC [protected]\fP" .SS "int Preferences::max_size\fC [protected]\fP" .SS "int Preferences::max_size_friends\fC [protected]\fP" .SS "int Preferences::negative_allows\fC [protected]\fP" .SS "int Preferences::negative_denies\fC [protected]\fP" .SS "int Preferences::negative_scores\fC [protected]\fP" .SS "bool Preferences::norm\fC [protected]\fP" .SS "string Preferences::prefs_file_name\fC [protected]\fP" .SS "ifstream Preferences::prefs_stream\fC [protected]\fP" .SS "bool Preferences::ret_status\fC [protected]\fP" .SS "int Preferences::rreg_type\fC [protected]\fP" .SS "vector<\fBScore\fP> Preferences::scores\fC [protected]\fP" .SS "bool Preferences::show_headers\fC [protected]\fP" .SS "\fBSize_score\fP Preferences::size_score\fC [protected]\fP" .SS "bool Preferences::test\fC [protected]\fP" .SS "bool Preferences::test_changed\fC [protected]\fP" .SS "unsigned Preferences::time_out_val\fC [protected]\fP" .SS "int Preferences::verbosity\fC [protected]\fP" .SS "bool Preferences::verbosity_changed\fC [protected]\fP" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/getopt1.c.30000644000175000017500000000242212675277621015432 00000000000000.TH "getopt1.c" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME getopt1.c \- .SH SYNOPSIS .br .PP \fC#include 'getopt\&.h'\fP .br \fC#include \fP .br .SS "Macros" .in +1c .ti -1c .RI "#define \fBconst\fP" .br .ti -1c .RI "#define \fBGETOPT_INTERFACE_VERSION\fP 2" .br .ti -1c .RI "#define \fBNULL\fP 0" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBgetopt_long\fP (int argc, char *\fBconst\fP *argv, \fBconst\fP char *options, \fBconst\fP struct \fBoption\fP *long_options, int *opt_index)" .br .ti -1c .RI "int \fBgetopt_long_only\fP (int argc, char *\fBconst\fP *argv, \fBconst\fP char *options, \fBconst\fP struct \fBoption\fP *long_options, int *opt_index)" .br .in -1c .SH "Macro Definition Documentation" .PP .SS "#define const" .SS "#define GETOPT_INTERFACE_VERSION 2" .SS "#define NULL 0" .SH "Function Documentation" .PP .SS "int getopt_long (intargc, char *\fBconst\fP *argv, \fBconst\fP char *options, \fBconst\fP struct \fBoption\fP *long_options, int *opt_index)" .SS "int getopt_long_only (intargc, char *\fBconst\fP *argv, \fBconst\fP char *options, \fBconst\fP struct \fBoption\fP *long_options, int *opt_index)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/account.hh.30000644000175000017500000000101412675277621015654 00000000000000.TH "account.hh" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME account.hh \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'defines\&.hh'\fP .br \fC#include 'protocol\&.hh'\fP .br \fC#include 'pop3\&.hh'\fP .br \fC#include 'apop\&.hh'\fP .br \fC#include 'connection\&.hh'\fP .br .SS "Classes" .in +1c .ti -1c .RI "class \fBAccount\fP" .br .in -1c .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/option.30000644000175000017500000000107512675277621015141 00000000000000.TH "option" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME option \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Attributes" .in +1c .ti -1c .RI "char * \fBname\fP" .br .ti -1c .RI "int \fBhas_arg\fP" .br .ti -1c .RI "int * \fBflag\fP" .br .ti -1c .RI "int \fBval\fP" .br .in -1c .SH "Member Data Documentation" .PP .SS "int* option::flag" .SS "int option::has_arg" .SS "char* option::name" .SS "int option::val" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/mailfilter.cc.30000644000175000017500000000404112675277621016341 00000000000000.TH "mailfilter.cc" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME mailfilter.cc \- .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'mailfilter\&.hh'\fP .br \fC#include 'preferences\&.hh'\fP .br \fC#include 'feedback\&.hh'\fP .br \fC#include 'weeder\&.hh'\fP .br \fC#include 'time\&.h'\fP .br \fC#include \fP .br \fC#include 'getopt\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "void \fBinit_app\fP (void)" .br .ti -1c .RI "bool \fBopen_prefs\fP (string)" .br .ti -1c .RI "void \fBget_opts\fP (int argc, char *argv[])" .br .ti -1c .RI "void \fBoverride_prefs\fP (string)" .br .ti -1c .RI "int \fBcmp_no_case\fP (\fBconst\fP string &, \fBconst\fP string &)" .br .ti -1c .RI "int \fBprecompile_expressions\fP (void)" .br .ti -1c .RI "void \fBconnect_sigint\fP (int)" .br .ti -1c .RI "string \fBint_to_string\fP (int)" .br .ti -1c .RI "int \fBmain\fP (int argc, char *argv[])" .br .ti -1c .RI "string \fBexec_shell\fP (\fBconst\fP char *command)" .br .in -1c .SS "Variables" .in +1c .ti -1c .RI "struct sigaction \fBsigact\fP" .br .ti -1c .RI "Weeder \fBweeder\fP" .br .ti -1c .RI "int \fBmailbox_status\fP" .br .in -1c .SH "Function Documentation" .PP .SS "int cmp_no_case (\fBconst\fP string &s, \fBconst\fP string &s2)" .SS "void connect_sigint (intsigno)" .SS "string exec_shell (\fBconst\fP char *command)" .SS "void get_opts (intargc, char *argv[])" .SS "void init_app (void)" .SS "string int_to_string (intval)" .SS "int main (intargc, char *argv[])" .SS "bool open_prefs (string)" .SS "void override_prefs (string)" .SS "int precompile_expressions (void)" .SH "Variable Documentation" .PP .SS "int mailbox_status" .SS "struct sigaction sigact" .SS "Weeder weeder" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/man/man3/Filter.30000644000175000017500000000254112675277621015055 00000000000000.TH "Filter" 3 "Fri Mar 25 2016" "Version 0.8.4" "mailfilter" \" -*- nroff -*- .ad l .nh .SH NAME Filter \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherited by \fBScore\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBFilter\fP (void)" .br .ti -1c .RI "\fB~Filter\fP (void)" .br .ti -1c .RI "string \fBexpression\fP (void) \fBconst\fP " .br .ti -1c .RI "void \fBset_expression\fP (\fBconst\fP char *)" .br .ti -1c .RI "int \fBcompile\fP (void)" .br .ti -1c .RI "void \fBset_negativity\fP (bool)" .br .ti -1c .RI "bool \fBis_negative\fP (void) \fBconst\fP " .br .ti -1c .RI "int \fBccase\fP (void) \fBconst\fP " .br .ti -1c .RI "void \fBset_case\fP (int)" .br .ti -1c .RI "\fBconst\fP regex_t * \fBcomp_exp\fP (void) \fBconst\fP " .br .in -1c .SH "Constructor & Destructor Documentation" .PP .SS "Filter::Filter (void)" .SS "Filter::~Filter (void)" .SH "Member Function Documentation" .PP .SS "int Filter::ccase (void) const" .SS "\fBconst\fP regex_t * Filter::comp_exp (void) const" .SS "int Filter::compile (void)" .SS "string Filter::expression (void) const" .SS "bool Filter::is_negative (void) const" .SS "void Filter::set_case (intc)" .SS "void Filter::set_expression (\fBconst\fP char *exp)" .SS "void Filter::set_negativity (boolt)" .SH "Author" .PP Generated automatically by Doxygen for mailfilter from the source code\&. mailfilter-0.8.4/doc/api/rtf/0000755000175000017500000000000012675277621013004 500000000000000mailfilter-0.8.4/doc/api/rtf/dir_68267d1309a1af8e8297ef4c3efbcdba.rtf0000644000175000017500000003053012675277621021111 00000000000000{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033 {\fonttbl {\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;} {\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} {\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;} {\f3\froman\fcharset2\fprq2{\*\panose 05050102010706020507}Symbol;} } {\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;} {\stylesheet {\widctlpar\adjustright \fs20\cgrid \snext0 Normal;} {\s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs36\kerning36\cgrid \sbasedon0 \snext0 heading 1;} {\s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \sbasedon0 \snext0 heading 2;} {\s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid \sbasedon0 \snext0 heading 3;} {\s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid \sbasedon0 \snext0 heading 4;}{\*\cs10 \additive Default Paragraph Font;} {\s5\sb90\sa30\keepn\widctlpar\adjustright \b\f1\fs20\cgrid \sbasedon0 \snext0 heading 5;}{\*\cs10 \additive Default Paragraph Font;} {\s15\qc\sb240\sa60\widctlpar\outlinelevel0\adjustright \b\f1\fs32\kerning28\cgrid \sbasedon0 \snext15 Title;} {\s16\qc\sa60\widctlpar\outlinelevel1\adjustright \f1\cgrid \sbasedon0 \snext16 Subtitle;} {\s17\sa60\sb30\widctlpar\qj \fs22\cgrid \sbasedon0 \snext17 BodyText;} {\s18\widctlpar\fs22\cgrid \sbasedon0 \snext18 DenseText;} {\s28\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext28 header;} {\s29\widctlpar\tqc\tx4320\tqr\tx8640\qr\adjustright \fs20\cgrid \sbasedon0 \snext29 footer;} {\s30\li360\sa60\sb120\keepn\widctlpar\adjustright \b\f1\fs20\cgrid \sbasedon0 \snext30 GroupHeader;} {\s40\li0\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext41 Code Example 0;} {\s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext42 Code Example 1;} {\s42\li720\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext43 Code Example 2;} {\s43\li1080\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext44 Code Example 3;} {\s44\li1440\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext45 Code Example 4;} {\s45\li1800\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext46 Code Example 5;} {\s46\li2160\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext47 Code Example 6;} {\s47\li2520\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext48 Code Example 7;} {\s48\li2880\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext49 Code Example 8;} {\s49\li3240\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \sbasedon0 \snext49 Code Example 9;} {\s50\li0\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext51 List Continue 0;} {\s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext52 List Continue 1;} {\s52\li720\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext53 List Continue 2;} {\s53\li1080\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext54 List Continue 3;} {\s54\li1440\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext55 List Continue 4;} {\s55\li1800\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext56 List Continue 5;} {\s56\li2160\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext57 List Continue 6;} {\s57\li2520\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext58 List Continue 7;} {\s58\li2880\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext59 List Continue 8;} {\s59\li3240\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \sbasedon0 \snext59 List Continue 9;} {\s60\li0\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext61 DescContinue 0;} {\s61\li360\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext62 DescContinue 1;} {\s62\li720\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext63 DescContinue 2;} {\s63\li1080\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext64 DescContinue 3;} {\s64\li1440\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext65 DescContinue 4;} {\s65\li1800\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext66 DescContinue 5;} {\s66\li2160\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext67 DescContinue 6;} {\s67\li2520\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext68 DescContinue 7;} {\s68\li2880\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext69 DescContinue 8;} {\s69\li3240\widctlpar\ql\adjustright \fs20\cgrid \sbasedon0 \snext69 DescContinue 9;} {\s70\li0\sa30\sb30\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext81 LatexTOC 0;} {\s71\li360\sa27\sb27\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext82 LatexTOC 1;} {\s72\li720\sa24\sb24\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext83 LatexTOC 2;} {\s73\li1080\sa21\sb21\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext84 LatexTOC 3;} {\s74\li1440\sa18\sb18\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext85 LatexTOC 4;} {\s75\li1800\sa15\sb15\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext86 LatexTOC 5;} {\s76\li2160\sa12\sb12\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext87 LatexTOC 6;} {\s77\li2520\sa9\sb9\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext88 LatexTOC 7;} {\s78\li2880\sa6\sb6\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext89 LatexTOC 8;} {\s79\li3240\sa3\sb3\widctlpar\tqr\tldot\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext89 LatexTOC 9;} {\s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid \sbasedon0 \snext81 \sautoupd List Bullet 0;} {\s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid \sbasedon0 \snext82 \sautoupd List Bullet 1;} {\s82\fi-360\li1080\widctlpar\jclisttab\tx1080{\*\pn \pnlvlbody\ilvl0\ls3\pnrnot0\pndec }\ls3\adjustright \fs20\cgrid \sbasedon0 \snext83 \sautoupd List Bullet 2;} {\s83\fi-360\li1440\widctlpar\jclisttab\tx1440{\*\pn \pnlvlbody\ilvl0\ls4\pnrnot0\pndec }\ls4\adjustright \fs20\cgrid \sbasedon0 \snext84 \sautoupd List Bullet 3;} {\s84\fi-360\li1800\widctlpar\jclisttab\tx1800{\*\pn \pnlvlbody\ilvl0\ls5\pnrnot0\pndec }\ls5\adjustright \fs20\cgrid \sbasedon0 \snext85 \sautoupd List Bullet 4;} {\s85\fi-360\li2160\widctlpar\jclisttab\tx2160{\*\pn \pnlvlbody\ilvl0\ls6\pnrnot0\pndec }\ls6\adjustright \fs20\cgrid \sbasedon0 \snext86 \sautoupd List Bullet 5;} {\s86\fi-360\li2520\widctlpar\jclisttab\tx2520{\*\pn \pnlvlbody\ilvl0\ls7\pnrnot0\pndec }\ls7\adjustright \fs20\cgrid \sbasedon0 \snext87 \sautoupd List Bullet 6;} {\s87\fi-360\li2880\widctlpar\jclisttab\tx2880{\*\pn \pnlvlbody\ilvl0\ls8\pnrnot0\pndec }\ls8\adjustright \fs20\cgrid \sbasedon0 \snext88 \sautoupd List Bullet 7;} {\s88\fi-360\li3240\widctlpar\jclisttab\tx3240{\*\pn \pnlvlbody\ilvl0\ls9\pnrnot0\pndec }\ls9\adjustright \fs20\cgrid \sbasedon0 \snext89 \sautoupd List Bullet 8;} {\s89\fi-360\li3600\widctlpar\jclisttab\tx3600{\*\pn \pnlvlbody\ilvl0\ls10\pnrnot0\pndec }\ls10\adjustright \fs20\cgrid \sbasedon0 \snext89 \sautoupd List Bullet 9;} {\s90\fi-360\li360\widctlpar\fs20\cgrid \sbasedon0 \snext91 \sautoupd List Enum 0;} {\s91\fi-360\li720\widctlpar\fs20\cgrid \sbasedon0 \snext92 \sautoupd List Enum 1;} {\s92\fi-360\li1080\widctlpar\fs20\cgrid \sbasedon0 \snext93 \sautoupd List Enum 2;} {\s93\fi-360\li1440\widctlpar\fs20\cgrid \sbasedon0 \snext94 \sautoupd List Enum 3;} {\s94\fi-360\li1800\widctlpar\fs20\cgrid \sbasedon0 \snext95 \sautoupd List Enum 4;} {\s95\fi-360\li2160\widctlpar\fs20\cgrid \sbasedon0 \snext96 \sautoupd List Enum 5;} {\s96\fi-360\li2520\widctlpar\fs20\cgrid \sbasedon0 \snext96 \sautoupd List Enum 5;} {\s97\fi-360\li2880\widctlpar\fs20\cgrid \sbasedon0 \snext98 \sautoupd List Enum 7;} {\s98\fi-360\li3240\widctlpar\fs20\cgrid \sbasedon0 \snext99 \sautoupd List Enum 8;} {\s99\fi-360\li3600\widctlpar\fs20\cgrid \sbasedon0 \snext99 \sautoupd List Enum 9;} } {\comment begin body} \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid src Directory Reference\par \pard\plain {\tc\tcl2 \v src Directory Reference} {\xe \v src Directory Reference} {\bkmkstart AAAAAAAALX} {\bkmkend AAAAAAAALX} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Files\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b account.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b account.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b apop.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b apop.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b connection.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b feedback.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b feedback.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b filter.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b filter.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b getopt.c}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b getopt.h}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b getopt1.c}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b mailfilter.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b mailfilter.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b md5.h}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b md5c.c}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b pop3.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b pop3.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b preferences.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b preferences.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b protocol.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b protocol.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b score.hh}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b socket.cc}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid file {\b socket.hh}\par } }mailfilter-0.8.4/doc/api/rtf/classScore.png0000644000175000017500000000050312675277621015531 00000000000000PNG  IHDR.PQOPLTEutRNST2IDATxᎄ m?iwQ~\bGXJ`fSU2.RU zy:9nNI7~1~bBRg3}b=ަhӷmw{3KhtKhtDD Yq>t7%.Zv級*,rw.܎SgbOŜ3e>'mHh ¨ IENDB`mailfilter-0.8.4/doc/api/rtf/classFilter.png0000644000175000017500000000051112675277621015702 00000000000000PNG  IHDR.PQOPLTEutRNST2IDATx / RƇAk=M B_DDߎ'>l\/'O~8 5SF]-ԃ@lW ""az$8czJCGAϝY:@X:@cf!TU̡ߠOei_Cs,6;jY͋zNٶj_u~U̞w\1U[y pIENDB`mailfilter-0.8.4/doc/api/rtf/classSocket.png0000644000175000017500000000062312675277621015711 00000000000000PNG  IHDRLP]cPLTEutRNST2"IDATxQ0 ǎhI [TjP2uX@J)E SUzk Ѯ\ e@Yk+[O3!+paîJV -yw;wdvϦ9~ SUw`)$Z [@Z$leBa_85a>MOӄ4a%"% F,Ge:ư;m|&leU.Ǭ{`e,݃۔oH=|+;;wvL3c40~&"?W"uMIENDB`mailfilter-0.8.4/doc/api/rtf/classProtocol.png0000644000175000017500000000067512675277621016271 00000000000000PNG  IHDR;ncZPLTEutRNST2LIDATxᎃ oVRWK-qBZw.i&%ɧrW$qUb|t[lROgN2\/tC6 nvWܗyN c> ]3&̬ &I]|ctnJQtynp[uw3 iw$I>53͋)1ܛ-_q?d> c> ]3&̬ &I] 7tQ9t,>p=u %{oJʭr[YRnn_I*߂$xS̬(hlIENDB`mailfilter-0.8.4/doc/api/rtf/classConnection.png0000644000175000017500000000063012675277621016556 00000000000000PNG  IHDRLP]cPLTEutRNST2'IDATxQ *ٝMCgr9!%& `L,juXZ ; u(d*dXR:Nԅ4{ۼ;X>g{H^Ӽ| BIx,4O¾8 Ԅi4ac01MXyuI&LԀJu΋QVz뼽 s `xq XR Kpm]? svN3b4%i\&Ic 2IENDB`mailfilter-0.8.4/doc/api/rtf/classPOP3.png0000644000175000017500000000067212675277621015206 00000000000000PNG  IHDR;ncZPLTEutRNST2IIDATxᎃ o[OR.YbYLB|CҺUn>yUC)Dp;w/'l\Og%$ݕ$/tb\p!._pjX⾬p]]覔R@owhnvs6G4󼺕T5}pվܲj;nJ)h0 ] W܏4..C̬`fMS?K44K|syK{ʩTZΥݲ M]37ޒIENDB`mailfilter-0.8.4/doc/api/rtf/classAPOP.png0000644000175000017500000000066612675277621015227 00000000000000PNG  IHDR;ncZPLTEutRNST2EIDATxᎃ o"ֺw0_̂`c4֭w޹jםYMԝ}}\par \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b clear} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b server} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_server} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b usr} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_usr} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b passwd} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_passwd} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned int {\b port} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_port} (unsigned int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_protocol} (unsigned int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned int {\b protocol} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_connection} (unsigned int=POSIX_SOCKETS) __attribute__((unused))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b check} (void)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Protected Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b serv}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b user}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b pass}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b the_port}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< string > {\b msg_ids}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Protocol} * {\b proto}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Connection} * {\b conn}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v check\:Account} {\xe \v Account\:check} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Account::check (void )}} \par {\bkmkstart AAAAAAAAFD} {\bkmkend AAAAAAAAFD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v clear\:Account} {\xe \v Account\:clear} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::clear (void )}} \par {\bkmkstart AAAAAAAAFE} {\bkmkend AAAAAAAAFE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v passwd\:Account} {\xe \v Account\:passwd} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Account::passwd (void )}} \par {\bkmkstart AAAAAAAAFF} {\bkmkend AAAAAAAAFF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v port\:Account} {\xe \v Account\:port} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned int Account::port (void )}} \par {\bkmkstart AAAAAAAAFG} {\bkmkend AAAAAAAAFG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v protocol\:Account} {\xe \v Account\:protocol} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned int Account::protocol (void )}} \par {\bkmkstart AAAAAAAAFH} {\bkmkend AAAAAAAAFH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v server\:Account} {\xe \v Account\:server} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Account::server (void )}} \par {\bkmkstart AAAAAAAAFI} {\bkmkend AAAAAAAAFI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_connection\:Account} {\xe \v Account\:set_connection} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::set_connection (unsigned int {\i the_connection_type} = {\f2 POSIX_SOCKETS})}} \par {\bkmkstart AAAAAAAAFJ} {\bkmkend AAAAAAAAFJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_passwd\:Account} {\xe \v Account\:set_passwd} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::set_passwd ({\b const} char * {\i s})}} \par {\bkmkstart AAAAAAAAFK} {\bkmkend AAAAAAAAFK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_port\:Account} {\xe \v Account\:set_port} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::set_port (unsigned int {\i p})}} \par {\bkmkstart AAAAAAAAFL} {\bkmkend AAAAAAAAFL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_protocol\:Account} {\xe \v Account\:set_protocol} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::set_protocol (unsigned int {\i prot})}} \par {\bkmkstart AAAAAAAAFM} {\bkmkend AAAAAAAAFM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_server\:Account} {\xe \v Account\:set_server} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::set_server ({\b const} char * {\i s})}} \par {\bkmkstart AAAAAAAAFN} {\bkmkend AAAAAAAAFN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_usr\:Account} {\xe \v Account\:set_usr} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Account::set_usr ({\b const} char * {\i s})}} \par {\bkmkstart AAAAAAAAFO} {\bkmkend AAAAAAAAFO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v usr\:Account} {\xe \v Account\:usr} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Account::usr (void )}} \par {\bkmkstart AAAAAAAAFP} {\bkmkend AAAAAAAAFP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v conn\:Account} {\xe \v Account\:conn} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Connection}* Account::conn{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFQ} {\bkmkend AAAAAAAAFQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v msg_ids\:Account} {\xe \v Account\:msg_ids} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector Account::msg_ids{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFR} {\bkmkend AAAAAAAAFR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v pass\:Account} {\xe \v Account\:pass} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Account::pass{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFS} {\bkmkend AAAAAAAAFS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v proto\:Account} {\xe \v Account\:proto} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Protocol}* Account::proto{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFT} {\bkmkend AAAAAAAAFT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v serv\:Account} {\xe \v Account\:serv} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Account::serv{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFU} {\bkmkend AAAAAAAAFU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v the_port\:Account} {\xe \v Account\:the_port} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Account::the_port{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFV} {\bkmkend AAAAAAAAFV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v user\:Account} {\xe \v Account\:user} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Account::user{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAFW} {\bkmkend AAAAAAAAFW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b account.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b account.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid APOP Class Reference\par \pard\plain {\tc\tcl2 \v APOP} {\xe \v APOP} {\bkmkstart AAAAAAAAFX} {\bkmkend AAAAAAAAFX} \par { {\f2 #include }}\par Inheritance diagram for APOP:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classAPOP.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b login} ({\b const} char *usr, {\b const} char *pass, {\b const} unsigned int enc) {\b const} \par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Additional Inherited Members\par \pard\plain {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v login\:APOP} {\xe \v APOP\:login} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool APOP::login ({\b const} char * {\i usr}, {\b const} char * {\i pass}, {\b const} unsigned int {\i enc}) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAFY} {\bkmkend AAAAAAAAFY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Reimplemented from {\b POP3} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAFZ \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b apop.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b apop.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Connection Class Reference\par \pard\plain {\tc\tcl2 \v Connection} {\xe \v Connection} {\bkmkstart AAAAAAAAGA} {\bkmkend AAAAAAAAGA} \par { {\f2 #include }}\par Inheritance diagram for Connection:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classConnection.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual {\b ~Connection} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b c_open} ({\b const} char *host_name, int port, int time_out, int protocol)=0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b c_close} (void) {\b const} =0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b c_read} (bool=false)=0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b c_write} ({\b const} char *msg)=0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual {\b const} string * {\b c_reply} (void) {\b const} =0\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Constructor & Destructor Documentation\par \pard\plain {\xe \v ~Connection\:Connection} {\xe \v Connection\:~Connection} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual Connection::~Connection (void ){\f2 [inline]}, {\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAGB} {\bkmkend AAAAAAAAGB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v c_close\:Connection} {\xe \v Connection\:c_close} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Connection::c_close (void ) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAGC} {\bkmkend AAAAAAAAGC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b Socket} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGD \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_open\:Connection} {\xe \v Connection\:c_open} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Connection::c_open ({\b const} char * {\i host_name}, int {\i port}, int {\i time_out}, int {\i protocol}){\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAGE} {\bkmkend AAAAAAAAGE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b Socket} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGF \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_read\:Connection} {\xe \v Connection\:c_read} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Connection::c_read (bool = {\f2 false}){\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAGG} {\bkmkend AAAAAAAAGG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b Socket} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGH \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_reply\:Connection} {\xe \v Connection\:c_reply} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual {\b const} string* Connection::c_reply (void ) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAGI} {\bkmkend AAAAAAAAGI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b Socket} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGJ \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_write\:Connection} {\xe \v Connection\:c_write} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Connection::c_write ({\b const} char * {\i msg}){\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAGK} {\bkmkend AAAAAAAAGK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b Socket} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGL \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following file:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b connection.hh}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Feedback Class Reference\par \pard\plain {\tc\tcl2 \v Feedback} {\xe \v Feedback} {\bkmkstart AAAAAAAAGM} {\bkmkend AAAAAAAAGM} \par { {\f2 #include }}\par \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b ~Feedback} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b open} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b print_msg} ({\b const} string, int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b print_err} ({\b const} string, int=1)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b print_header} ({\b const} string)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Static Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid static {\b Feedback} * {\b Instance} (void)\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Constructor & Destructor Documentation\par \pard\plain {\xe \v ~Feedback\:Feedback} {\xe \v Feedback\:~Feedback} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Feedback::~Feedback (void )}} \par {\bkmkstart AAAAAAAAGN} {\bkmkend AAAAAAAAGN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v Instance\:Feedback} {\xe \v Feedback\:Instance} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Feedback} * Feedback::Instance (void ){\f2 [static]}}} \par {\bkmkstart AAAAAAAAGO} {\bkmkend AAAAAAAAGO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v open\:Feedback} {\xe \v Feedback\:open} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Feedback::open ({\b const} char * {\i name})}} \par {\bkmkstart AAAAAAAAGP} {\bkmkend AAAAAAAAGP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v print_err\:Feedback} {\xe \v Feedback\:print_err} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Feedback::print_err ({\b const} string {\i msg}, int {\i min_verbose_level} = {\f2 1})}} \par {\bkmkstart AAAAAAAAGQ} {\bkmkend AAAAAAAAGQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v print_header\:Feedback} {\xe \v Feedback\:print_header} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Feedback::print_header ({\b const} string {\i msg})}} \par {\bkmkstart AAAAAAAAGR} {\bkmkend AAAAAAAAGR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v print_msg\:Feedback} {\xe \v Feedback\:print_msg} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Feedback::print_msg ({\b const} string {\i msg}, int {\i min_verbose_level})}} \par {\bkmkstart AAAAAAAAGS} {\bkmkend AAAAAAAAGS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b feedback.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b feedback.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Filter Class Reference\par \pard\plain {\tc\tcl2 \v Filter} {\xe \v Filter} {\bkmkstart AAAAAAAAGT} {\bkmkend AAAAAAAAGT} \par { {\f2 #include }}\par Inheritance diagram for Filter:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classFilter.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Filter} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b ~Filter} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b expression} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_expression} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b compile} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_negativity} (bool)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b is_negative} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b ccase} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_case} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b const} regex_t * {\b comp_exp} (void) {\b const} \par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Constructor & Destructor Documentation\par \pard\plain {\xe \v Filter\:Filter} {\xe \v Filter\:Filter} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Filter::Filter (void )}} \par {\bkmkstart AAAAAAAAGU} {\bkmkend AAAAAAAAGU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v ~Filter\:Filter} {\xe \v Filter\:~Filter} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Filter::~Filter (void )}} \par {\bkmkstart AAAAAAAAGV} {\bkmkend AAAAAAAAGV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v ccase\:Filter} {\xe \v Filter\:ccase} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Filter::ccase (void ) const}} \par {\bkmkstart AAAAAAAAGW} {\bkmkend AAAAAAAAGW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v comp_exp\:Filter} {\xe \v Filter\:comp_exp} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b const} regex_t * Filter::comp_exp (void ) const}} \par {\bkmkstart AAAAAAAAGX} {\bkmkend AAAAAAAAGX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v compile\:Filter} {\xe \v Filter\:compile} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Filter::compile (void )}} \par {\bkmkstart AAAAAAAAGY} {\bkmkend AAAAAAAAGY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v expression\:Filter} {\xe \v Filter\:expression} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Filter::expression (void ) const}} \par {\bkmkstart AAAAAAAAGZ} {\bkmkend AAAAAAAAGZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v is_negative\:Filter} {\xe \v Filter\:is_negative} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Filter::is_negative (void ) const}} \par {\bkmkstart AAAAAAAAHA} {\bkmkend AAAAAAAAHA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_case\:Filter} {\xe \v Filter\:set_case} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Filter::set_case (int {\i c})}} \par {\bkmkstart AAAAAAAAHB} {\bkmkend AAAAAAAAHB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_expression\:Filter} {\xe \v Filter\:set_expression} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Filter::set_expression ({\b const} char * {\i exp})}} \par {\bkmkstart AAAAAAAAHC} {\bkmkend AAAAAAAAHC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_negativity\:Filter} {\xe \v Filter\:set_negativity} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Filter::set_negativity (bool {\i t})}} \par {\bkmkstart AAAAAAAAHD} {\bkmkend AAAAAAAAHD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b filter.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b filter.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid MD5_CTX Struct Reference\par \pard\plain {\tc\tcl2 \v MD5_CTX} {\xe \v MD5_CTX} {\bkmkstart AAAAAAAAHE} {\bkmkend AAAAAAAAHE} \par { {\f2 #include }}\par \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid uint32_t {\b state} [4]\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid uint32_t {\b count} [2]\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned char {\b buffer} [64]\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v buffer\:MD5_CTX} {\xe \v MD5_CTX\:buffer} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned char MD5_CTX::buffer[64]}} \par {\bkmkstart AAAAAAAAHF} {\bkmkend AAAAAAAAHF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v count\:MD5_CTX} {\xe \v MD5_CTX\:count} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b uint32_t MD5_CTX::count[2]}} \par {\bkmkstart AAAAAAAAHG} {\bkmkend AAAAAAAAHG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v state\:MD5_CTX} {\xe \v MD5_CTX\:state} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b uint32_t MD5_CTX::state[4]}} \par {\bkmkstart AAAAAAAAHH} {\bkmkend AAAAAAAAHH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this struct was generated from the following file:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b md5.h}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid option Struct Reference\par \pard\plain {\tc\tcl2 \v option} {\xe \v option} {\bkmkstart AAAAAAAAHI} {\bkmkend AAAAAAAAHI} \par { {\f2 #include }}\par \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid char * {\b name}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b has_arg}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int * {\b flag}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b val}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v flag\:option} {\xe \v option\:flag} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int* option::flag}} \par {\bkmkstart AAAAAAAAHJ} {\bkmkend AAAAAAAAHJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v has_arg\:option} {\xe \v option\:has_arg} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int option::has_arg}} \par {\bkmkstart AAAAAAAAHK} {\bkmkend AAAAAAAAHK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v name\:option} {\xe \v option\:name} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b char* option::name}} \par {\bkmkstart AAAAAAAAHL} {\bkmkend AAAAAAAAHL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v val\:option} {\xe \v option\:val} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int option::val}} \par {\bkmkstart AAAAAAAAHM} {\bkmkend AAAAAAAAHM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this struct was generated from the following file:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b getopt.h}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid POP3 Class Reference\par \pard\plain {\tc\tcl2 \v POP3} {\xe \v POP3} {\bkmkstart AAAAAAAAHN} {\bkmkend AAAAAAAAHN} \par { {\f2 #include }}\par Inheritance diagram for POP3:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classPOP3.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b login} ({\b const} char *, {\b const} char *, {\b const} unsigned int) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b logout} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b remove_msg} ({\b const} unsigned int) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b status} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b scan} (void) {\b const} \par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Additional Inherited Members\par \pard\plain {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v login\:POP3} {\xe \v POP3\:login} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool POP3::login ({\b const} char * {\i usr}, {\b const} char * {\i pass}, {\b const} unsigned int {\i enc}) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAFZ} {\bkmkend AAAAAAAAFZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Protocol} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHO \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par { Reimplemented in {\b APOP} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAFY \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v logout\:POP3} {\xe \v POP3\:logout} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool POP3::logout (void ) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAHP} {\bkmkend AAAAAAAAHP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Protocol} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHQ \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v remove_msg\:POP3} {\xe \v POP3\:remove_msg} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int POP3::remove_msg ({\b const} unsigned int {\i num}) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAHR} {\bkmkend AAAAAAAAHR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Protocol} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHS \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v scan\:POP3} {\xe \v POP3\:scan} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int POP3::scan (void ) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAHT} {\bkmkend AAAAAAAAHT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Protocol} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHU \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v status\:POP3} {\xe \v POP3\:status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int POP3::status (void ) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAHV} {\bkmkend AAAAAAAAHV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Protocol} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHW \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b pop3.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b pop3.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Preferences Class Reference\par \pard\plain {\tc\tcl2 \v Preferences} {\xe \v Preferences} {\bkmkstart AAAAAAAAHX} {\bkmkend AAAAAAAAHX} \par { {\f2 #include }}\par \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Preferences} ()\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b init} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b kill} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b open} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b load} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b add_deny_rule} ({\b const} char *, {\b const} char *, {\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b add_allow_rule} ({\b const} char *, {\b const} char *, {\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b add_score} ({\b const} char *, int, {\b const} char *, {\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b neg_allows} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b neg_denies} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_rc_file} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b rc_file} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_log_file} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b log_file} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_verbose_level} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b verbose_level} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_headers_file} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b headers_file} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_default_case} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b default_case} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_reg_type} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b reg_type} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_server} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_usr} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_passwd} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_protocol} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_connection} (unsigned int=POSIX_SOCKETS) __attribute__((unused))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_port} (unsigned int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned int {\b time_out} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_time_out} (unsigned int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b delete_duplicates} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_del_duplicates} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b max_size_allow} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_max_size_allow} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b max_size_deny} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_max_size_deny} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Size_score} {\b max_size_score} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_max_size_score} (int, int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b highscore} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_highscore} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b normal} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_normal} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b test_mode} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_test_mode} ({\b const} char *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b maxlength} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_maxlength} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b ignore_time_stamp} ()\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_ignore_time_stamp} (bool=true)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b return_status} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_return_status} (bool)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Account} > * {\b accounts} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Filter} > * {\b allow_filters} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Filter} > * {\b deny_filters} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Score} > * {\b score_filters} (void)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Static Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid static {\b Preferences} & {\b Instance} ()\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Protected Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid ifstream {\b prefs_stream}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Filter} > {\b allows}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Filter} > {\b denies}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Score} > {\b scores}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid vector< {\b Account} > {\b accnts}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Account} {\b cur_account}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b prefs_file_name}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b log_file_name}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b headers_file_name}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b icase}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b norm}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b test}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b show_headers}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b del_duplicates}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b ret_status}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b _ignore_time_stamp}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b high_score}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned {\b time_out_val}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b max_size}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Size_score} {\b size_score}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b max_size_friends}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b max_line_length}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b rreg_type}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b verbosity}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b conn_type}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b negative_allows}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b negative_denies}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b negative_scores}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b verbosity_changed}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b test_changed}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Constructor & Destructor Documentation\par \pard\plain {\xe \v Preferences\:Preferences} {\xe \v Preferences\:Preferences} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Preferences::Preferences ()}} \par {\bkmkstart AAAAAAAAHY} {\bkmkend AAAAAAAAHY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v accounts\:Preferences} {\xe \v Preferences\:accounts} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector< {\b Account} > * Preferences::accounts (void )}} \par {\bkmkstart AAAAAAAAHZ} {\bkmkend AAAAAAAAHZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v add_allow_rule\:Preferences} {\xe \v Preferences\:add_allow_rule} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::add_allow_rule ({\b const} char * {\i keyword}, {\b const} char * {\i operat}, {\b const} char * {\i id})}} \par {\bkmkstart AAAAAAAAIA} {\bkmkend AAAAAAAAIA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v add_deny_rule\:Preferences} {\xe \v Preferences\:add_deny_rule} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::add_deny_rule ({\b const} char * {\i keyword}, {\b const} char * {\i operat}, {\b const} char * {\i id})}} \par {\bkmkstart AAAAAAAAIB} {\bkmkend AAAAAAAAIB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v add_score\:Preferences} {\xe \v Preferences\:add_score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::add_score ({\b const} char * {\i keyword}, int {\i given_score}, {\b const} char * {\i operat}, {\b const} char * {\i id})}} \par {\bkmkstart AAAAAAAAIC} {\bkmkend AAAAAAAAIC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v allow_filters\:Preferences} {\xe \v Preferences\:allow_filters} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector< {\b Filter} > * Preferences::allow_filters (void )}} \par {\bkmkstart AAAAAAAAID} {\bkmkend AAAAAAAAID} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v default_case\:Preferences} {\xe \v Preferences\:default_case} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::default_case (void )}} \par {\bkmkstart AAAAAAAAIE} {\bkmkend AAAAAAAAIE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v delete_duplicates\:Preferences} {\xe \v Preferences\:delete_duplicates} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::delete_duplicates (void )}} \par {\bkmkstart AAAAAAAAIF} {\bkmkend AAAAAAAAIF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v deny_filters\:Preferences} {\xe \v Preferences\:deny_filters} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector< {\b Filter} > * Preferences::deny_filters (void )}} \par {\bkmkstart AAAAAAAAIG} {\bkmkend AAAAAAAAIG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v headers_file\:Preferences} {\xe \v Preferences\:headers_file} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Preferences::headers_file (void )}} \par {\bkmkstart AAAAAAAAIH} {\bkmkend AAAAAAAAIH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v highscore\:Preferences} {\xe \v Preferences\:highscore} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::highscore (void )}} \par {\bkmkstart AAAAAAAAII} {\bkmkend AAAAAAAAII} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v ignore_time_stamp\:Preferences} {\xe \v Preferences\:ignore_time_stamp} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::ignore_time_stamp ()}} \par {\bkmkstart AAAAAAAAIJ} {\bkmkend AAAAAAAAIJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v init\:Preferences} {\xe \v Preferences\:init} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::init (void )}} \par {\bkmkstart AAAAAAAAIK} {\bkmkend AAAAAAAAIK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v Instance\:Preferences} {\xe \v Preferences\:Instance} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Preferences} & Preferences::Instance (){\f2 [static]}}} \par {\bkmkstart AAAAAAAAIL} {\bkmkend AAAAAAAAIL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v kill\:Preferences} {\xe \v Preferences\:kill} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::kill (void )}} \par {\bkmkstart AAAAAAAAIM} {\bkmkend AAAAAAAAIM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v load\:Preferences} {\xe \v Preferences\:load} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::load (void )}} \par {\bkmkstart AAAAAAAAIN} {\bkmkend AAAAAAAAIN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v log_file\:Preferences} {\xe \v Preferences\:log_file} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Preferences::log_file (void )}} \par {\bkmkstart AAAAAAAAIO} {\bkmkend AAAAAAAAIO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v max_size_allow\:Preferences} {\xe \v Preferences\:max_size_allow} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::max_size_allow (void )}} \par {\bkmkstart AAAAAAAAIP} {\bkmkend AAAAAAAAIP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v max_size_deny\:Preferences} {\xe \v Preferences\:max_size_deny} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::max_size_deny (void )}} \par {\bkmkstart AAAAAAAAIQ} {\bkmkend AAAAAAAAIQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v max_size_score\:Preferences} {\xe \v Preferences\:max_size_score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Size_score} Preferences::max_size_score (void )}} \par {\bkmkstart AAAAAAAAIR} {\bkmkend AAAAAAAAIR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v maxlength\:Preferences} {\xe \v Preferences\:maxlength} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::maxlength (void )}} \par {\bkmkstart AAAAAAAAIS} {\bkmkend AAAAAAAAIS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v neg_allows\:Preferences} {\xe \v Preferences\:neg_allows} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::neg_allows (void )}} \par {\bkmkstart AAAAAAAAIT} {\bkmkend AAAAAAAAIT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v neg_denies\:Preferences} {\xe \v Preferences\:neg_denies} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::neg_denies (void )}} \par {\bkmkstart AAAAAAAAIU} {\bkmkend AAAAAAAAIU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v normal\:Preferences} {\xe \v Preferences\:normal} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::normal (void )}} \par {\bkmkstart AAAAAAAAIV} {\bkmkend AAAAAAAAIV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v open\:Preferences} {\xe \v Preferences\:open} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::open ({\b const} char * {\i name})}} \par {\bkmkstart AAAAAAAAIW} {\bkmkend AAAAAAAAIW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v rc_file\:Preferences} {\xe \v Preferences\:rc_file} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Preferences::rc_file (void )}} \par {\bkmkstart AAAAAAAAIX} {\bkmkend AAAAAAAAIX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v reg_type\:Preferences} {\xe \v Preferences\:reg_type} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::reg_type (void )}} \par {\bkmkstart AAAAAAAAIY} {\bkmkend AAAAAAAAIY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v return_status\:Preferences} {\xe \v Preferences\:return_status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::return_status (void )}} \par {\bkmkstart AAAAAAAAIZ} {\bkmkend AAAAAAAAIZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v score_filters\:Preferences} {\xe \v Preferences\:score_filters} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector< {\b Score} > * Preferences::score_filters (void )}} \par {\bkmkstart AAAAAAAAJA} {\bkmkend AAAAAAAAJA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_connection\:Preferences} {\xe \v Preferences\:set_connection} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_connection (unsigned int {\i p} = {\f2 POSIX_SOCKETS})}} \par {\bkmkstart AAAAAAAAJB} {\bkmkend AAAAAAAAJB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_default_case\:Preferences} {\xe \v Preferences\:set_default_case} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_default_case ({\b const} char * {\i new_case})}} \par {\bkmkstart AAAAAAAAJC} {\bkmkend AAAAAAAAJC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_del_duplicates\:Preferences} {\xe \v Preferences\:set_del_duplicates} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_del_duplicates ({\b const} char * {\i del})}} \par {\bkmkstart AAAAAAAAJD} {\bkmkend AAAAAAAAJD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_headers_file\:Preferences} {\xe \v Preferences\:set_headers_file} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_headers_file ({\b const} char * {\i name})}} \par {\bkmkstart AAAAAAAAJE} {\bkmkend AAAAAAAAJE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_highscore\:Preferences} {\xe \v Preferences\:set_highscore} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_highscore (int {\i val})}} \par {\bkmkstart AAAAAAAAJF} {\bkmkend AAAAAAAAJF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_ignore_time_stamp\:Preferences} {\xe \v Preferences\:set_ignore_time_stamp} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_ignore_time_stamp (bool {\i new_ts} = {\f2 true})}} \par {\bkmkstart AAAAAAAAJG} {\bkmkend AAAAAAAAJG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_log_file\:Preferences} {\xe \v Preferences\:set_log_file} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_log_file ({\b const} char * {\i name})}} \par {\bkmkstart AAAAAAAAJH} {\bkmkend AAAAAAAAJH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_max_size_allow\:Preferences} {\xe \v Preferences\:set_max_size_allow} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_max_size_allow (int {\i val})}} \par {\bkmkstart AAAAAAAAJI} {\bkmkend AAAAAAAAJI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_max_size_deny\:Preferences} {\xe \v Preferences\:set_max_size_deny} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_max_size_deny (int {\i val})}} \par {\bkmkstart AAAAAAAAJJ} {\bkmkend AAAAAAAAJJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_max_size_score\:Preferences} {\xe \v Preferences\:set_max_size_score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_max_size_score (int {\i score}, int {\i size})}} \par {\bkmkstart AAAAAAAAJK} {\bkmkend AAAAAAAAJK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_maxlength\:Preferences} {\xe \v Preferences\:set_maxlength} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_maxlength (int {\i val})}} \par {\bkmkstart AAAAAAAAJL} {\bkmkend AAAAAAAAJL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_normal\:Preferences} {\xe \v Preferences\:set_normal} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_normal ({\b const} char * {\i par})}} \par {\bkmkstart AAAAAAAAJM} {\bkmkend AAAAAAAAJM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_passwd\:Preferences} {\xe \v Preferences\:set_passwd} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_passwd ({\b const} char * {\i pass})}} \par {\bkmkstart AAAAAAAAJN} {\bkmkend AAAAAAAAJN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_port\:Preferences} {\xe \v Preferences\:set_port} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_port (unsigned int {\i p})}} \par {\bkmkstart AAAAAAAAJO} {\bkmkend AAAAAAAAJO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_protocol\:Preferences} {\xe \v Preferences\:set_protocol} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_protocol ({\b const} char * {\i prot})}} \par {\bkmkstart AAAAAAAAJP} {\bkmkend AAAAAAAAJP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_rc_file\:Preferences} {\xe \v Preferences\:set_rc_file} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_rc_file ({\b const} char * {\i name})}} \par {\bkmkstart AAAAAAAAJQ} {\bkmkend AAAAAAAAJQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_reg_type\:Preferences} {\xe \v Preferences\:set_reg_type} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_reg_type ({\b const} char * {\i new_type})}} \par {\bkmkstart AAAAAAAAJR} {\bkmkend AAAAAAAAJR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_return_status\:Preferences} {\xe \v Preferences\:set_return_status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_return_status (bool {\i st})}} \par {\bkmkstart AAAAAAAAJS} {\bkmkend AAAAAAAAJS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_server\:Preferences} {\xe \v Preferences\:set_server} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_server ({\b const} char * {\i server})}} \par {\bkmkstart AAAAAAAAJT} {\bkmkend AAAAAAAAJT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_test_mode\:Preferences} {\xe \v Preferences\:set_test_mode} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_test_mode ({\b const} char * {\i par})}} \par {\bkmkstart AAAAAAAAJU} {\bkmkend AAAAAAAAJU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_time_out\:Preferences} {\xe \v Preferences\:set_time_out} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_time_out (unsigned int {\i val})}} \par {\bkmkstart AAAAAAAAJV} {\bkmkend AAAAAAAAJV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_usr\:Preferences} {\xe \v Preferences\:set_usr} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_usr ({\b const} char * {\i user})}} \par {\bkmkstart AAAAAAAAJW} {\bkmkend AAAAAAAAJW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_verbose_level\:Preferences} {\xe \v Preferences\:set_verbose_level} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Preferences::set_verbose_level (int {\i level})}} \par {\bkmkstart AAAAAAAAJX} {\bkmkend AAAAAAAAJX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v test_mode\:Preferences} {\xe \v Preferences\:test_mode} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::test_mode (void )}} \par {\bkmkstart AAAAAAAAJY} {\bkmkend AAAAAAAAJY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v time_out\:Preferences} {\xe \v Preferences\:time_out} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned int Preferences::time_out (void )}} \par {\bkmkstart AAAAAAAAJZ} {\bkmkend AAAAAAAAJZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v verbose_level\:Preferences} {\xe \v Preferences\:verbose_level} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::verbose_level (void )}} \par {\bkmkstart AAAAAAAAKA} {\bkmkend AAAAAAAAKA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v _ignore_time_stamp\:Preferences} {\xe \v Preferences\:_ignore_time_stamp} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::_ignore_time_stamp{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKB} {\bkmkend AAAAAAAAKB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v accnts\:Preferences} {\xe \v Preferences\:accnts} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector<{\b Account}> Preferences::accnts{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKC} {\bkmkend AAAAAAAAKC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v allows\:Preferences} {\xe \v Preferences\:allows} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector<{\b Filter}> Preferences::allows{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKD} {\bkmkend AAAAAAAAKD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v conn_type\:Preferences} {\xe \v Preferences\:conn_type} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::conn_type{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKE} {\bkmkend AAAAAAAAKE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v cur_account\:Preferences} {\xe \v Preferences\:cur_account} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Account} Preferences::cur_account{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKF} {\bkmkend AAAAAAAAKF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v del_duplicates\:Preferences} {\xe \v Preferences\:del_duplicates} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::del_duplicates{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKG} {\bkmkend AAAAAAAAKG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v denies\:Preferences} {\xe \v Preferences\:denies} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector<{\b Filter}> Preferences::denies{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKH} {\bkmkend AAAAAAAAKH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v headers_file_name\:Preferences} {\xe \v Preferences\:headers_file_name} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Preferences::headers_file_name{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKI} {\bkmkend AAAAAAAAKI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v high_score\:Preferences} {\xe \v Preferences\:high_score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::high_score{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKJ} {\bkmkend AAAAAAAAKJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v icase\:Preferences} {\xe \v Preferences\:icase} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::icase{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKK} {\bkmkend AAAAAAAAKK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v log_file_name\:Preferences} {\xe \v Preferences\:log_file_name} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Preferences::log_file_name{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKL} {\bkmkend AAAAAAAAKL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v max_line_length\:Preferences} {\xe \v Preferences\:max_line_length} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::max_line_length{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKM} {\bkmkend AAAAAAAAKM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v max_size\:Preferences} {\xe \v Preferences\:max_size} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::max_size{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKN} {\bkmkend AAAAAAAAKN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v max_size_friends\:Preferences} {\xe \v Preferences\:max_size_friends} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::max_size_friends{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKO} {\bkmkend AAAAAAAAKO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v negative_allows\:Preferences} {\xe \v Preferences\:negative_allows} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::negative_allows{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKP} {\bkmkend AAAAAAAAKP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v negative_denies\:Preferences} {\xe \v Preferences\:negative_denies} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::negative_denies{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKQ} {\bkmkend AAAAAAAAKQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v negative_scores\:Preferences} {\xe \v Preferences\:negative_scores} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::negative_scores{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKR} {\bkmkend AAAAAAAAKR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v norm\:Preferences} {\xe \v Preferences\:norm} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::norm{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKS} {\bkmkend AAAAAAAAKS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v prefs_file_name\:Preferences} {\xe \v Preferences\:prefs_file_name} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string Preferences::prefs_file_name{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKT} {\bkmkend AAAAAAAAKT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v prefs_stream\:Preferences} {\xe \v Preferences\:prefs_stream} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b ifstream Preferences::prefs_stream{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKU} {\bkmkend AAAAAAAAKU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v ret_status\:Preferences} {\xe \v Preferences\:ret_status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::ret_status{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKV} {\bkmkend AAAAAAAAKV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v rreg_type\:Preferences} {\xe \v Preferences\:rreg_type} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::rreg_type{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKW} {\bkmkend AAAAAAAAKW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v scores\:Preferences} {\xe \v Preferences\:scores} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b vector<{\b Score}> Preferences::scores{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKX} {\bkmkend AAAAAAAAKX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v show_headers\:Preferences} {\xe \v Preferences\:show_headers} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::show_headers{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKY} {\bkmkend AAAAAAAAKY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v size_score\:Preferences} {\xe \v Preferences\:size_score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Size_score} Preferences::size_score{\f2 [protected]}}} \par {\bkmkstart AAAAAAAAKZ} {\bkmkend AAAAAAAAKZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v test\:Preferences} {\xe \v Preferences\:test} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::test{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALA} {\bkmkend AAAAAAAALA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v test_changed\:Preferences} {\xe \v Preferences\:test_changed} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::test_changed{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALB} {\bkmkend AAAAAAAALB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v time_out_val\:Preferences} {\xe \v Preferences\:time_out_val} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned Preferences::time_out_val{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALC} {\bkmkend AAAAAAAALC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v verbosity\:Preferences} {\xe \v Preferences\:verbosity} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Preferences::verbosity{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALD} {\bkmkend AAAAAAAALD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v verbosity_changed\:Preferences} {\xe \v Preferences\:verbosity_changed} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool Preferences::verbosity_changed{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALE} {\bkmkend AAAAAAAALE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b preferences.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b preferences.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Protocol Class Reference\par \pard\plain {\tc\tcl2 \v Protocol} {\xe \v Protocol} {\bkmkstart AAAAAAAALF} {\bkmkend AAAAAAAALF} \par { {\f2 #include }}\par Inheritance diagram for Protocol:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classProtocol.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual {\b ~Protocol} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual bool {\b login} ({\b const} char *usr, {\b const} char *pass, {\b const} unsigned int) {\b const} =0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual bool {\b logout} (void) {\b const} =0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b remove_msg} ({\b const} unsigned int num) {\b const} =0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b status} (void) {\b const} =0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid virtual int {\b scan} (void) {\b const} =0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_connection} ({\b Connection} *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_ident} (unsigned int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned int {\b ident} (void) {\b const} \par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Protected Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Connection} * {\b conn}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned int {\b prot_ident}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid unsigned int {\b connect_type}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Constructor & Destructor Documentation\par \pard\plain {\xe \v ~Protocol\:Protocol} {\xe \v Protocol\:~Protocol} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual Protocol::~Protocol (void ){\f2 [inline]}, {\f2 [virtual]}}} \par {\bkmkstart AAAAAAAALG} {\bkmkend AAAAAAAALG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v ident\:Protocol} {\xe \v Protocol\:ident} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned int Protocol::ident (void ) const}} \par {\bkmkstart AAAAAAAALH} {\bkmkend AAAAAAAALH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v login\:Protocol} {\xe \v Protocol\:login} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual bool Protocol::login ({\b const} char * {\i usr}, {\b const} char * {\i pass}, {\b const} unsigned {\i int}) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAHO} {\bkmkend AAAAAAAAHO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b POP3} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAFZ \\*MERGEFORMAT}{\fldrslt pagenum}}}), and {\b APOP} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAFY \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v logout\:Protocol} {\xe \v Protocol\:logout} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual bool Protocol::logout (void ) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAHQ} {\bkmkend AAAAAAAAHQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b POP3} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHP \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v remove_msg\:Protocol} {\xe \v Protocol\:remove_msg} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Protocol::remove_msg ({\b const} unsigned int {\i num}) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAHS} {\bkmkend AAAAAAAAHS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b POP3} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHR \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v scan\:Protocol} {\xe \v Protocol\:scan} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Protocol::scan (void ) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAHU} {\bkmkend AAAAAAAAHU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b POP3} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHT \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v set_connection\:Protocol} {\xe \v Protocol\:set_connection} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Protocol::set_connection ({\b Connection} * {\i currently_established_connection})}} \par {\bkmkstart AAAAAAAALI} {\bkmkend AAAAAAAALI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_ident\:Protocol} {\xe \v Protocol\:set_ident} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Protocol::set_ident (unsigned int {\i i})}} \par {\bkmkstart AAAAAAAALJ} {\bkmkend AAAAAAAALJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v status\:Protocol} {\xe \v Protocol\:status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b virtual int Protocol::status (void ) const{\f2 [pure virtual]}}} \par {\bkmkstart AAAAAAAAHW} {\bkmkend AAAAAAAAHW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implemented in {\b POP3} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAHV \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v conn\:Protocol} {\xe \v Protocol\:conn} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b Connection}* Protocol::conn{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALK} {\bkmkend AAAAAAAALK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v connect_type\:Protocol} {\xe \v Protocol\:connect_type} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned int Protocol::connect_type{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALL} {\bkmkend AAAAAAAALL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v prot_ident\:Protocol} {\xe \v Protocol\:prot_ident} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b unsigned int Protocol::prot_ident{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALM} {\bkmkend AAAAAAAALM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b protocol.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b protocol.cc}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Score Class Reference\par \pard\plain {\tc\tcl2 \v Score} {\xe \v Score} {\bkmkstart AAAAAAAALN} {\bkmkend AAAAAAAALN} \par { {\f2 #include }}\par Inheritance diagram for Score:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classScore.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b score} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b set_score} (int)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Protected Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b scr}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v score\:Score} {\xe \v Score\:score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Score::score (void ) const}} \par {\bkmkstart AAAAAAAALO} {\bkmkend AAAAAAAALO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v set_score\:Score} {\xe \v Score\:set_score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Score::set_score (int )}} \par {\bkmkstart AAAAAAAALP} {\bkmkend AAAAAAAALP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v scr\:Score} {\xe \v Score\:scr} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Score::scr{\f2 [protected]}}} \par {\bkmkstart AAAAAAAALQ} {\bkmkend AAAAAAAALQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following file:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b score.hh}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Size_score Class Reference\par \pard\plain {\tc\tcl2 \v Size_score} {\xe \v Size_score} {\bkmkstart AAAAAAAALR} {\bkmkend AAAAAAAALR} \par { {\f2 #include }}\par \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Attributes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b score}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b size}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Data Documentation\par \pard\plain {\xe \v score\:Size_score} {\xe \v Size_score\:score} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Size_score::score}} \par {\bkmkstart AAAAAAAALS} {\bkmkend AAAAAAAALS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v size\:Size_score} {\xe \v Size_score\:size} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Size_score::size}} \par {\bkmkstart AAAAAAAALT} {\bkmkend AAAAAAAALT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following file:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b score.hh}\par }\par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid Socket Class Reference\par \pard\plain {\tc\tcl2 \v Socket} {\xe \v Socket} {\bkmkstart AAAAAAAALU} {\bkmkend AAAAAAAALU} \par { {\f2 #include }}\par Inheritance diagram for Socket:{ \pard\plain \par\pard \qc {\field\flddirty {\*\fldinst INCLUDEPICTURE "classSocket.png" \\d \\*MERGEFORMAT}{\fldrslt IMAGE}}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Public Member Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b Socket} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b clear} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b c_open} ({\b const} char *host, int port, int time_out, int protocol)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b c_close} (void) {\b const} \par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b c_write} ({\b const} char *command)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b c_read} (bool=false)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid {\b const} string * {\b c_reply} (void) {\b const} \par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Constructor & Destructor Documentation\par \pard\plain {\xe \v Socket\:Socket} {\xe \v Socket\:Socket} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Socket::Socket (void )}} \par {\bkmkstart AAAAAAAALV} {\bkmkend AAAAAAAALV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Member Function Documentation\par \pard\plain {\xe \v c_close\:Socket} {\xe \v Socket\:c_close} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Socket::c_close (void ) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAGD} {\bkmkend AAAAAAAAGD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Connection} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGC \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_open\:Socket} {\xe \v Socket\:c_open} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Socket::c_open ({\b const} char * {\i host}, int {\i port}, int {\i time_out}, int {\i protocol}){\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAGF} {\bkmkend AAAAAAAAGF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Connection} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGE \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_read\:Socket} {\xe \v Socket\:c_read} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Socket::c_read (bool {\i read_header} = {\f2 false}){\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAGH} {\bkmkend AAAAAAAAGH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Connection} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGG \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_reply\:Socket} {\xe \v Socket\:c_reply} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b {\b const} string * Socket::c_reply (void ) const{\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAGJ} {\bkmkend AAAAAAAAGJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Connection} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGI \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v c_write\:Socket} {\xe \v Socket\:c_write} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int Socket::c_write ({\b const} char * {\i command}){\f2 [virtual]}}} \par {\bkmkstart AAAAAAAAGL} {\bkmkend AAAAAAAAGL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid \par { Implements {\b Connection} ({\i p.{\field\fldedit {\*\fldinst PAGEREF AAAAAAAAGK \\*MERGEFORMAT}{\fldrslt pagenum}}}).}\par } {\xe \v clear\:Socket} {\xe \v Socket\:clear} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void Socket::clear (void )}} \par {\bkmkstart AAAAAAAALW} {\bkmkend AAAAAAAALW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} The documentation for this class was generated from the following files:{\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b socket.hh}\par \pard\plain \s81\fi-360\li720\widctlpar\jclisttab\tx720{\*\pn \pnlvlbody\ilvl0\ls2\pnrnot0\pndec }\ls2\adjustright \fs20\cgrid {\b socket.cc}\par } \pard\plain \sect\sbkpage \s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs36\kerning36\cgrid File Documentation{\tc \v File Documentation} \par \pard\plain \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid account.cc File Reference\par \pard\plain {\tc\tcl2 \v account.cc} {\xe \v account.cc} {\bkmkstart AAAAAAAAAA} {\bkmkend AAAAAAAAAA} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "account.hh"}\par {\f2 #include "pop3.hh"}\par {\f2 #include "apop.hh"}\par {\f2 #include "preferences.hh"}\par {\f2 #include "feedback.hh"}\par {\f2 #include "mailfilter.hh"}\par {\f2 #include "connection.hh"}\par {\f2 #include "socket.hh"}\par {\f2 #include "defines.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b int_to_string} (int)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variables\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b mailbox_status}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v int_to_string\:account.cc} {\xe \v account.cc\:int_to_string} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string int_to_string (int )}} \par {\bkmkstart AAAAAAAAAB} {\bkmkend AAAAAAAAAB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variable Documentation\par \pard\plain {\xe \v mailbox_status\:account.cc} {\xe \v account.cc\:mailbox_status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int mailbox_status}} \par {\bkmkstart AAAAAAAAAC} {\bkmkend AAAAAAAAAC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid account.hh File Reference\par \pard\plain {\tc\tcl2 \v account.hh} {\xe \v account.hh} {\bkmkstart AAAAAAAAAD} {\bkmkend AAAAAAAAAD} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include "defines.hh"}\par {\f2 #include "protocol.hh"}\par {\f2 #include "pop3.hh"}\par {\f2 #include "apop.hh"}\par {\f2 #include "connection.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Account}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid apop.cc File Reference\par \pard\plain {\tc\tcl2 \v apop.cc} {\xe \v apop.cc} {\bkmkstart AAAAAAAAAE} {\bkmkend AAAAAAAAAE} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include "apop.hh"}\par {\f2 #include "feedback.hh"}\par {\f2 #include "defines.hh"}\par {\f2 #include "mailfilter.hh"}\par {\f2 #include }\par {\f2 #include "md5.h"}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid apop.hh File Reference\par \pard\plain {\tc\tcl2 \v apop.hh} {\xe \v apop.hh} {\bkmkstart AAAAAAAAAF} {\bkmkend AAAAAAAAAF} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "pop3.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b APOP}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid connection.hh File Reference\par \pard\plain {\tc\tcl2 \v connection.hh} {\xe \v connection.hh} {\bkmkstart AAAAAAAAAG} {\bkmkend AAAAAAAAAG} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Connection}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid feedback.cc File Reference\par \pard\plain {\tc\tcl2 \v feedback.cc} {\xe \v feedback.cc} {\bkmkstart AAAAAAAAAH} {\bkmkend AAAAAAAAAH} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "feedback.hh"}\par {\f2 #include "preferences.hh"}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid feedback.hh File Reference\par \pard\plain {\tc\tcl2 \v feedback.hh} {\xe \v feedback.hh} {\bkmkstart AAAAAAAAAI} {\bkmkend AAAAAAAAAI} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Feedback}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid filter.cc File Reference\par \pard\plain {\tc\tcl2 \v filter.cc} {\xe \v filter.cc} {\bkmkstart AAAAAAAAAJ} {\bkmkend AAAAAAAAAJ} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "filter.hh"}\par {\f2 #include "mailfilter.hh"}\par {\f2 #include "preferences.hh"}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid filter.hh File Reference\par \pard\plain {\tc\tcl2 \v filter.hh} {\xe \v filter.hh} {\bkmkstart AAAAAAAAAK} {\bkmkend AAAAAAAAAK} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Filter}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b CASE_DEFAULT}\~ REG_ICASE\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b CASE_SENSITIVE}\~ 0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b CASE_INSENSITIVE}\~ REG_ICASE\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v CASE_DEFAULT\:filter.hh} {\xe \v filter.hh\:CASE_DEFAULT} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define CASE_DEFAULT\~ REG_ICASE}} \par {\bkmkstart AAAAAAAAAL} {\bkmkend AAAAAAAAAL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v CASE_INSENSITIVE\:filter.hh} {\xe \v filter.hh\:CASE_INSENSITIVE} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define CASE_INSENSITIVE\~ REG_ICASE}} \par {\bkmkstart AAAAAAAAAM} {\bkmkend AAAAAAAAAM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v CASE_SENSITIVE\:filter.hh} {\xe \v filter.hh\:CASE_SENSITIVE} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define CASE_SENSITIVE\~ 0}} \par {\bkmkstart AAAAAAAAAN} {\bkmkend AAAAAAAAAN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid getopt.c File Reference\par \pard\plain {\tc\tcl2 \v getopt.c} {\xe \v getopt.c} {\bkmkstart AAAAAAAAAO} {\bkmkend AAAAAAAAAO} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include "getopt.h"}\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b _NO_PROTO}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b const}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b GETOPT_INTERFACE_VERSION}\~ 2\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b _}(msgid)\~ (msgid)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b SWAP_FLAGS}(ch1, ch2)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b NONOPTION_P}\~ (argv[{\b optind}][0] != '-' || argv[{\b optind}][1] == '\\0')\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Enumerations\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid enum \{ {\b REQUIRE_ORDER}, {\b PERMUTE}, {\b RETURN_IN_ORDER} \}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid char * {\b getenv} ()\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b _getopt_internal} (int argc, char *{\b const} *argv, {\b const} char *optstring, {\b const} struct {\b option} *longopts, int *longind, int long_only)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b getopt} (int argc, char *{\b const} *argv, {\b const} char *optstring)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variables\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid char * {\b optarg}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b optind} = 1\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b __getopt_initialized}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b opterr} = 1\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b optopt} = '?'\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v _\:getopt.c} {\xe \v getopt.c\:_} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define _( msgid)\~ (msgid)}} \par {\bkmkstart AAAAAAAAAP} {\bkmkend AAAAAAAAAP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v _NO_PROTO\:getopt.c} {\xe \v getopt.c\:_NO_PROTO} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define _NO_PROTO}} \par {\bkmkstart AAAAAAAAAQ} {\bkmkend AAAAAAAAAQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v const\:getopt.c} {\xe \v getopt.c\:const} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define const}} \par {\bkmkstart AAAAAAAAAR} {\bkmkend AAAAAAAAAR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v GETOPT_INTERFACE_VERSION\:getopt.c} {\xe \v getopt.c\:GETOPT_INTERFACE_VERSION} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define GETOPT_INTERFACE_VERSION\~ 2}} \par {\bkmkstart AAAAAAAAAS} {\bkmkend AAAAAAAAAS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v NONOPTION_P\:getopt.c} {\xe \v getopt.c\:NONOPTION_P} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define NONOPTION_P\~ (argv[{\b optind}][0] != '-' || argv[{\b optind}][1] == '\\0')}} \par {\bkmkstart AAAAAAAAAT} {\bkmkend AAAAAAAAAT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v SWAP_FLAGS\:getopt.c} {\xe \v getopt.c\:SWAP_FLAGS} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define SWAP_FLAGS( ch1, ch2)}} \par {\bkmkstart AAAAAAAAAU} {\bkmkend AAAAAAAAAU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Enumeration Type Documentation\par \pard\plain \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b anonymous enum}} \par {\bkmkstart AAAAAAAAAV} {\bkmkend AAAAAAAAAV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {{{\b \par Enumerator}}\par \pard\plain \s62\li720\widctlpar\ql\adjustright \fs20\cgrid {\xe \v REQUIRE_ORDER\:getopt.c} {\xe \v getopt.c\:REQUIRE_ORDER} {\b {\i REQUIRE_ORDER{\bkmkstart AAAAAAAAAW} {\bkmkend AAAAAAAAAW} }} \par {\xe \v PERMUTE\:getopt.c} {\xe \v getopt.c\:PERMUTE} {\b {\i PERMUTE{\bkmkstart AAAAAAAAAX} {\bkmkend AAAAAAAAAX} }} \par {\xe \v RETURN_IN_ORDER\:getopt.c} {\xe \v getopt.c\:RETURN_IN_ORDER} {\b {\i RETURN_IN_ORDER{\bkmkstart AAAAAAAAAY} {\bkmkend AAAAAAAAAY} }} \par }} {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v _getopt_internal\:getopt.c} {\xe \v getopt.c\:_getopt_internal} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int _getopt_internal (int {\i argc}, char *{\b const} * {\i argv}, {\b const} char * {\i optstring}, {\b const} struct {\b option} * {\i longopts}, int * {\i longind}, int {\i long_only})}} \par {\bkmkstart AAAAAAAAAZ} {\bkmkend AAAAAAAAAZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v getenv\:getopt.c} {\xe \v getopt.c\:getenv} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b char* getenv ()}} \par {\bkmkstart AAAAAAAABA} {\bkmkend AAAAAAAABA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v getopt\:getopt.c} {\xe \v getopt.c\:getopt} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int getopt (int {\i argc}, char *{\b const} * {\i argv}, {\b const} char * {\i optstring})}} \par {\bkmkstart AAAAAAAABB} {\bkmkend AAAAAAAABB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variable Documentation\par \pard\plain {\xe \v __getopt_initialized\:getopt.c} {\xe \v getopt.c\:__getopt_initialized} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int __getopt_initialized}} \par {\bkmkstart AAAAAAAABC} {\bkmkend AAAAAAAABC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v optarg\:getopt.c} {\xe \v getopt.c\:optarg} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b char* optarg}} \par {\bkmkstart AAAAAAAABD} {\bkmkend AAAAAAAABD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v opterr\:getopt.c} {\xe \v getopt.c\:opterr} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int opterr = 1}} \par {\bkmkstart AAAAAAAABE} {\bkmkend AAAAAAAABE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v optind\:getopt.c} {\xe \v getopt.c\:optind} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int optind = 1}} \par {\bkmkstart AAAAAAAABF} {\bkmkend AAAAAAAABF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v optopt\:getopt.c} {\xe \v getopt.c\:optopt} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int optopt = '?'}} \par {\bkmkstart AAAAAAAABG} {\bkmkend AAAAAAAABG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid getopt.h File Reference\par \pard\plain {\tc\tcl2 \v getopt.h} {\xe \v getopt.h} {\bkmkstart AAAAAAAABH} {\bkmkend AAAAAAAABH} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid struct {\b option}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b _GETOPT_H}\~ 1\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b no_argument}\~ 0\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b required_argument}\~ 1\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b optional_argument}\~ 2\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b getopt} ()\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b getopt_long} ()\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b getopt_long_only} ()\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b _getopt_internal} ()\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variables\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid char * {\b optarg}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b optind}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b opterr}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b optopt}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v _GETOPT_H\:getopt.h} {\xe \v getopt.h\:_GETOPT_H} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define _GETOPT_H\~ 1}} \par {\bkmkstart AAAAAAAABI} {\bkmkend AAAAAAAABI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v no_argument\:getopt.h} {\xe \v getopt.h\:no_argument} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define no_argument\~ 0}} \par {\bkmkstart AAAAAAAABJ} {\bkmkend AAAAAAAABJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v optional_argument\:getopt.h} {\xe \v getopt.h\:optional_argument} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define optional_argument\~ 2}} \par {\bkmkstart AAAAAAAABK} {\bkmkend AAAAAAAABK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v required_argument\:getopt.h} {\xe \v getopt.h\:required_argument} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define required_argument\~ 1}} \par {\bkmkstart AAAAAAAABL} {\bkmkend AAAAAAAABL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v _getopt_internal\:getopt.h} {\xe \v getopt.h\:_getopt_internal} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int _getopt_internal ()}} \par {\bkmkstart AAAAAAAABM} {\bkmkend AAAAAAAABM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v getopt\:getopt.h} {\xe \v getopt.h\:getopt} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int getopt ()}} \par {\bkmkstart AAAAAAAABN} {\bkmkend AAAAAAAABN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v getopt_long\:getopt.h} {\xe \v getopt.h\:getopt_long} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int getopt_long ()}} \par {\bkmkstart AAAAAAAABO} {\bkmkend AAAAAAAABO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v getopt_long_only\:getopt.h} {\xe \v getopt.h\:getopt_long_only} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int getopt_long_only ()}} \par {\bkmkstart AAAAAAAABP} {\bkmkend AAAAAAAABP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variable Documentation\par \pard\plain {\xe \v optarg\:getopt.h} {\xe \v getopt.h\:optarg} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b char* optarg}} \par {\bkmkstart AAAAAAAABQ} {\bkmkend AAAAAAAABQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v opterr\:getopt.h} {\xe \v getopt.h\:opterr} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int opterr}} \par {\bkmkstart AAAAAAAABR} {\bkmkend AAAAAAAABR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v optind\:getopt.h} {\xe \v getopt.h\:optind} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int optind}} \par {\bkmkstart AAAAAAAABS} {\bkmkend AAAAAAAABS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v optopt\:getopt.h} {\xe \v getopt.h\:optopt} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int optopt}} \par {\bkmkstart AAAAAAAABT} {\bkmkend AAAAAAAABT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid getopt1.c File Reference\par \pard\plain {\tc\tcl2 \v getopt1.c} {\xe \v getopt1.c} {\bkmkstart AAAAAAAABU} {\bkmkend AAAAAAAABU} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "getopt.h"}\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b const}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b GETOPT_INTERFACE_VERSION}\~ 2\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b NULL}\~ 0\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b getopt_long} (int argc, char *{\b const} *argv, {\b const} char *options, {\b const} struct {\b option} *long_options, int *opt_index)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b getopt_long_only} (int argc, char *{\b const} *argv, {\b const} char *options, {\b const} struct {\b option} *long_options, int *opt_index)\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v const\:getopt1.c} {\xe \v getopt1.c\:const} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define const}} \par {\bkmkstart AAAAAAAABV} {\bkmkend AAAAAAAABV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v GETOPT_INTERFACE_VERSION\:getopt1.c} {\xe \v getopt1.c\:GETOPT_INTERFACE_VERSION} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define GETOPT_INTERFACE_VERSION\~ 2}} \par {\bkmkstart AAAAAAAABW} {\bkmkend AAAAAAAABW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v NULL\:getopt1.c} {\xe \v getopt1.c\:NULL} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define NULL\~ 0}} \par {\bkmkstart AAAAAAAABX} {\bkmkend AAAAAAAABX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v getopt_long\:getopt1.c} {\xe \v getopt1.c\:getopt_long} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int getopt_long (int {\i argc}, char *{\b const} * {\i argv}, {\b const} char * {\i options}, {\b const} struct {\b option} * {\i long_options}, int * {\i opt_index})}} \par {\bkmkstart AAAAAAAABY} {\bkmkend AAAAAAAABY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v getopt_long_only\:getopt1.c} {\xe \v getopt1.c\:getopt_long_only} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int getopt_long_only (int {\i argc}, char *{\b const} * {\i argv}, {\b const} char * {\i options}, {\b const} struct {\b option} * {\i long_options}, int * {\i opt_index})}} \par {\bkmkstart AAAAAAAABZ} {\bkmkend AAAAAAAABZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid mailfilter.cc File Reference\par \pard\plain {\tc\tcl2 \v mailfilter.cc} {\xe \v mailfilter.cc} {\bkmkstart AAAAAAAACA} {\bkmkend AAAAAAAACA} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "mailfilter.hh"}\par {\f2 #include "preferences.hh"}\par {\f2 #include "feedback.hh"}\par {\f2 #include "weeder.hh"}\par {\f2 #include "time.h"}\par {\f2 #include }\par {\f2 #include "getopt.h"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b init_app} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid bool {\b open_prefs} (string)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b get_opts} (int argc, char *argv[])\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b override_prefs} (string)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b cmp_no_case} ({\b const} string &, {\b const} string &)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b precompile_expressions} (void)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b connect_sigint} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b int_to_string} (int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b main} (int argc, char *argv[])\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid string {\b exec_shell} ({\b const} char *command)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variables\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid struct sigaction {\b sigact}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid Weeder {\b weeder}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b mailbox_status}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v cmp_no_case\:mailfilter.cc} {\xe \v mailfilter.cc\:cmp_no_case} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int cmp_no_case ({\b const} string & {\i s}, {\b const} string & {\i s2})}} \par {\bkmkstart AAAAAAAACB} {\bkmkend AAAAAAAACB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v connect_sigint\:mailfilter.cc} {\xe \v mailfilter.cc\:connect_sigint} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void connect_sigint (int {\i signo})}} \par {\bkmkstart AAAAAAAACC} {\bkmkend AAAAAAAACC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v exec_shell\:mailfilter.cc} {\xe \v mailfilter.cc\:exec_shell} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string exec_shell ({\b const} char * {\i command})}} \par {\bkmkstart AAAAAAAACD} {\bkmkend AAAAAAAACD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v get_opts\:mailfilter.cc} {\xe \v mailfilter.cc\:get_opts} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void get_opts (int {\i argc}, char * {\i argv}[])}} \par {\bkmkstart AAAAAAAACE} {\bkmkend AAAAAAAACE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v init_app\:mailfilter.cc} {\xe \v mailfilter.cc\:init_app} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void init_app (void )}} \par {\bkmkstart AAAAAAAACF} {\bkmkend AAAAAAAACF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v int_to_string\:mailfilter.cc} {\xe \v mailfilter.cc\:int_to_string} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b string int_to_string (int {\i val})}} \par {\bkmkstart AAAAAAAACG} {\bkmkend AAAAAAAACG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v main\:mailfilter.cc} {\xe \v mailfilter.cc\:main} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int main (int {\i argc}, char * {\i argv}[])}} \par {\bkmkstart AAAAAAAACH} {\bkmkend AAAAAAAACH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v open_prefs\:mailfilter.cc} {\xe \v mailfilter.cc\:open_prefs} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b bool open_prefs (string )}} \par {\bkmkstart AAAAAAAACI} {\bkmkend AAAAAAAACI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v override_prefs\:mailfilter.cc} {\xe \v mailfilter.cc\:override_prefs} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void override_prefs (string )}} \par {\bkmkstart AAAAAAAACJ} {\bkmkend AAAAAAAACJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v precompile_expressions\:mailfilter.cc} {\xe \v mailfilter.cc\:precompile_expressions} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int precompile_expressions (void )}} \par {\bkmkstart AAAAAAAACK} {\bkmkend AAAAAAAACK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variable Documentation\par \pard\plain {\xe \v mailbox_status\:mailfilter.cc} {\xe \v mailfilter.cc\:mailbox_status} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int mailbox_status}} \par {\bkmkstart AAAAAAAACL} {\bkmkend AAAAAAAACL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v sigact\:mailfilter.cc} {\xe \v mailfilter.cc\:sigact} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b struct sigaction sigact}} \par {\bkmkstart AAAAAAAACM} {\bkmkend AAAAAAAACM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v weeder\:mailfilter.cc} {\xe \v mailfilter.cc\:weeder} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Weeder weeder}} \par {\bkmkstart AAAAAAAACN} {\bkmkend AAAAAAAACN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid mailfilter.hh File Reference\par \pard\plain {\tc\tcl2 \v mailfilter.hh} {\xe \v mailfilter.hh} {\bkmkstart AAAAAAAACO} {\bkmkend AAAAAAAACO} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_HELP}\~ 1\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_VERBOSE}\~ 2\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_MAILFILTERRC}\~ 3\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_LOGFILE}\~ 4\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_VERSION}\~ 5\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_TEST}\~ 6\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_RETURN}\~ 7\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b VALUE_TIMESTAMP}\~ 8\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b ERROR_MSG}(msg)\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v ERROR_MSG\:mailfilter.hh} {\xe \v mailfilter.hh\:ERROR_MSG} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define ERROR_MSG( msg)}} \par {\bkmkstart AAAAAAAACP} {\bkmkend AAAAAAAACP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid cerr << PACKAGE_NAME \\\par << ": Error: " \\\par << msg \\\par << endl\par } } {\xe \v VALUE_HELP\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_HELP} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_HELP\~ 1}} \par {\bkmkstart AAAAAAAACQ} {\bkmkend AAAAAAAACQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_LOGFILE\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_LOGFILE} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_LOGFILE\~ 4}} \par {\bkmkstart AAAAAAAACR} {\bkmkend AAAAAAAACR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_MAILFILTERRC\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_MAILFILTERRC} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_MAILFILTERRC\~ 3}} \par {\bkmkstart AAAAAAAACS} {\bkmkend AAAAAAAACS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_RETURN\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_RETURN} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_RETURN\~ 7}} \par {\bkmkstart AAAAAAAACT} {\bkmkend AAAAAAAACT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_TEST\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_TEST} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_TEST\~ 6}} \par {\bkmkstart AAAAAAAACU} {\bkmkend AAAAAAAACU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_TIMESTAMP\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_TIMESTAMP} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_TIMESTAMP\~ 8}} \par {\bkmkstart AAAAAAAACV} {\bkmkend AAAAAAAACV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_VERBOSE\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_VERBOSE} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_VERBOSE\~ 2}} \par {\bkmkstart AAAAAAAACW} {\bkmkend AAAAAAAACW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v VALUE_VERSION\:mailfilter.hh} {\xe \v mailfilter.hh\:VALUE_VERSION} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define VALUE_VERSION\~ 5}} \par {\bkmkstart AAAAAAAACX} {\bkmkend AAAAAAAACX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid md5.h File Reference\par \pard\plain {\tc\tcl2 \v md5.h} {\xe \v md5.h} {\bkmkstart AAAAAAAACY} {\bkmkend AAAAAAAACY} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid struct {\b MD5_CTX}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Typedefs\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid typedef unsigned char * {\b POINTER}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b MD5Init} ({\b MD5_CTX} *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b MD5Update} ({\b MD5_CTX} *, unsigned char *, unsigned int)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b MD5Final} (unsigned char[16], {\b MD5_CTX} *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b gethash} (char[33], char *, char *)\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Typedef Documentation\par \pard\plain {\xe \v POINTER\:md5.h} {\xe \v md5.h\:POINTER} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b typedef unsigned char* {\b POINTER}}} \par {\bkmkstart AAAAAAAACZ} {\bkmkend AAAAAAAACZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v gethash\:md5.h} {\xe \v md5.h\:gethash} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void gethash (char [33], char * , char * )}} \par {\bkmkstart AAAAAAAADA} {\bkmkend AAAAAAAADA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v MD5Final\:md5.h} {\xe \v md5.h\:MD5Final} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void MD5Final (unsigned {\i char}[16], {\b MD5_CTX} * )}} \par {\bkmkstart AAAAAAAADB} {\bkmkend AAAAAAAADB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v MD5Init\:md5.h} {\xe \v md5.h\:MD5Init} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void MD5Init ({\b MD5_CTX} * )}} \par {\bkmkstart AAAAAAAADC} {\bkmkend AAAAAAAADC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v MD5Update\:md5.h} {\xe \v md5.h\:MD5Update} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void MD5Update ({\b MD5_CTX} * , unsigned char * , unsigned {\i int})}} \par {\bkmkstart AAAAAAAADD} {\bkmkend AAAAAAAADD} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid md5c.c File Reference\par \pard\plain {\tc\tcl2 \v md5c.c} {\xe \v md5c.c} {\bkmkstart AAAAAAAADE} {\bkmkend AAAAAAAADE} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "md5.h"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S11}\~ 7\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S12}\~ 12\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S13}\~ 17\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S14}\~ 22\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S21}\~ 5\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S22}\~ 9\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S23}\~ 14\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S24}\~ 20\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S31}\~ 4\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S32}\~ 11\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S33}\~ 16\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S34}\~ 23\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S41}\~ 6\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S42}\~ 10\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S43}\~ 15\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b S44}\~ 21\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b F}(x, y, z)\~ (((x) & (y)) | ((~x) & (z)))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b G}(x, y, z)\~ (((x) & (z)) | ((y) & (~z)))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b H}(x, y, z)\~ ((x) ^ (y) ^ (z))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b I}(x, y, z)\~ ((y) ^ ((x) | (~z)))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b ROTATE_LEFT}(x, n)\~ (((x) << (n)) | ((x) >> (32-(n))))\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b FF}(a, b, c, d, x, s, ac)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b GG}(a, b, c, d, x, s, ac)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b HH}(a, b, c, d, x, s, ac)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b II}(a, b, c, d, x, s, ac)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b MD5Init} ({\b MD5_CTX} *context)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b MD5Update} ({\b MD5_CTX} *context, unsigned char *input, unsigned int inputLen)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid void {\b MD5Final} (digest, {\b MD5_CTX} *context)\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v F\:md5c.c} {\xe \v md5c.c\:F} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define F( x, y, z)\~ (((x) & (y)) | ((~x) & (z)))}} \par {\bkmkstart AAAAAAAADF} {\bkmkend AAAAAAAADF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v FF\:md5c.c} {\xe \v md5c.c\:FF} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define FF( a, b, c, d, x, s, ac)}} \par {\bkmkstart AAAAAAAADG} {\bkmkend AAAAAAAADG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \{ \\\par (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \\\par (a) = ROTATE_LEFT ((a), (s)); \\\par (a) += (b); \\\par \}\par } } {\xe \v G\:md5c.c} {\xe \v md5c.c\:G} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define G( x, y, z)\~ (((x) & (z)) | ((y) & (~z)))}} \par {\bkmkstart AAAAAAAADH} {\bkmkend AAAAAAAADH} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v GG\:md5c.c} {\xe \v md5c.c\:GG} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define GG( a, b, c, d, x, s, ac)}} \par {\bkmkstart AAAAAAAADI} {\bkmkend AAAAAAAADI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \{ \\\par (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \\\par (a) = ROTATE_LEFT ((a), (s)); \\\par (a) += (b); \\\par \}\par } } {\xe \v H\:md5c.c} {\xe \v md5c.c\:H} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define H( x, y, z)\~ ((x) ^ (y) ^ (z))}} \par {\bkmkstart AAAAAAAADJ} {\bkmkend AAAAAAAADJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v HH\:md5c.c} {\xe \v md5c.c\:HH} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define HH( a, b, c, d, x, s, ac)}} \par {\bkmkstart AAAAAAAADK} {\bkmkend AAAAAAAADK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \{ \\\par (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \\\par (a) = ROTATE_LEFT ((a), (s)); \\\par (a) += (b); \\\par \}\par } } {\xe \v I\:md5c.c} {\xe \v md5c.c\:I} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define I( x, y, z)\~ ((y) ^ ((x) | (~z)))}} \par {\bkmkstart AAAAAAAADL} {\bkmkend AAAAAAAADL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v II\:md5c.c} {\xe \v md5c.c\:II} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define II( a, b, c, d, x, s, ac)}} \par {\bkmkstart AAAAAAAADM} {\bkmkend AAAAAAAADM} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid \{ \\\par (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \\\par (a) = ROTATE_LEFT ((a), (s)); \\\par (a) += (b); \\\par \}\par } } {\xe \v ROTATE_LEFT\:md5c.c} {\xe \v md5c.c\:ROTATE_LEFT} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define ROTATE_LEFT( x, n)\~ (((x) << (n)) | ((x) >> (32-(n))))}} \par {\bkmkstart AAAAAAAADN} {\bkmkend AAAAAAAADN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S11\:md5c.c} {\xe \v md5c.c\:S11} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S11\~ 7}} \par {\bkmkstart AAAAAAAADO} {\bkmkend AAAAAAAADO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S12\:md5c.c} {\xe \v md5c.c\:S12} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S12\~ 12}} \par {\bkmkstart AAAAAAAADP} {\bkmkend AAAAAAAADP} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S13\:md5c.c} {\xe \v md5c.c\:S13} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S13\~ 17}} \par {\bkmkstart AAAAAAAADQ} {\bkmkend AAAAAAAADQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S14\:md5c.c} {\xe \v md5c.c\:S14} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S14\~ 22}} \par {\bkmkstart AAAAAAAADR} {\bkmkend AAAAAAAADR} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S21\:md5c.c} {\xe \v md5c.c\:S21} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S21\~ 5}} \par {\bkmkstart AAAAAAAADS} {\bkmkend AAAAAAAADS} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S22\:md5c.c} {\xe \v md5c.c\:S22} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S22\~ 9}} \par {\bkmkstart AAAAAAAADT} {\bkmkend AAAAAAAADT} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S23\:md5c.c} {\xe \v md5c.c\:S23} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S23\~ 14}} \par {\bkmkstart AAAAAAAADU} {\bkmkend AAAAAAAADU} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S24\:md5c.c} {\xe \v md5c.c\:S24} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S24\~ 20}} \par {\bkmkstart AAAAAAAADV} {\bkmkend AAAAAAAADV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S31\:md5c.c} {\xe \v md5c.c\:S31} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S31\~ 4}} \par {\bkmkstart AAAAAAAADW} {\bkmkend AAAAAAAADW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S32\:md5c.c} {\xe \v md5c.c\:S32} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S32\~ 11}} \par {\bkmkstart AAAAAAAADX} {\bkmkend AAAAAAAADX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S33\:md5c.c} {\xe \v md5c.c\:S33} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S33\~ 16}} \par {\bkmkstart AAAAAAAADY} {\bkmkend AAAAAAAADY} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S34\:md5c.c} {\xe \v md5c.c\:S34} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S34\~ 23}} \par {\bkmkstart AAAAAAAADZ} {\bkmkend AAAAAAAADZ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S41\:md5c.c} {\xe \v md5c.c\:S41} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S41\~ 6}} \par {\bkmkstart AAAAAAAAEA} {\bkmkend AAAAAAAAEA} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S42\:md5c.c} {\xe \v md5c.c\:S42} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S42\~ 10}} \par {\bkmkstart AAAAAAAAEB} {\bkmkend AAAAAAAAEB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S43\:md5c.c} {\xe \v md5c.c\:S43} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S43\~ 15}} \par {\bkmkstart AAAAAAAAEC} {\bkmkend AAAAAAAAEC} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v S44\:md5c.c} {\xe \v md5c.c\:S44} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define S44\~ 21}} \par {\bkmkstart AAAAAAAAED} {\bkmkend AAAAAAAAED} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v MD5Final\:md5c.c} {\xe \v md5c.c\:MD5Final} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void MD5Final (digest , {\b MD5_CTX} * {\i context})}} \par {\bkmkstart AAAAAAAAEE} {\bkmkend AAAAAAAAEE} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v MD5Init\:md5c.c} {\xe \v md5c.c\:MD5Init} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void MD5Init ({\b MD5_CTX} * {\i context})}} \par {\bkmkstart AAAAAAAAEF} {\bkmkend AAAAAAAAEF} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v MD5Update\:md5c.c} {\xe \v md5c.c\:MD5Update} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b void MD5Update ({\b MD5_CTX} * {\i context}, unsigned char * {\i input}, unsigned int {\i inputLen})}} \par {\bkmkstart AAAAAAAAEG} {\bkmkend AAAAAAAAEG} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid pop3.cc File Reference\par \pard\plain {\tc\tcl2 \v pop3.cc} {\xe \v pop3.cc} {\bkmkstart AAAAAAAAEH} {\bkmkend AAAAAAAAEH} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "socket.hh"}\par {\f2 #include "pop3.hh"}\par {\f2 #include "feedback.hh"}\par {\f2 #include "preferences.hh"}\par {\f2 #include "mailfilter.hh"}\par {\f2 #include "header.hh"}\par {\f2 #include "weeder.hh"}\par {\f2 #include "defines.hh"}\par {\f2 #include "protocol.hh"}\par {\f2 #include "rfc822parser.hh"}\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b yyFlexLexer}\~ rfcFlexLexer\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b rfcparse} (void *)\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variables\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid FlexLexer * {\b rfclexer}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid Weeder {\b weeder}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v yyFlexLexer\:pop3.cc} {\xe \v pop3.cc\:yyFlexLexer} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define yyFlexLexer\~ rfcFlexLexer}} \par {\bkmkstart AAAAAAAAEI} {\bkmkend AAAAAAAAEI} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v rfcparse\:pop3.cc} {\xe \v pop3.cc\:rfcparse} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int rfcparse (void * )}} \par {\bkmkstart AAAAAAAAEJ} {\bkmkend AAAAAAAAEJ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Variable Documentation\par \pard\plain {\xe \v rfclexer\:pop3.cc} {\xe \v pop3.cc\:rfclexer} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b FlexLexer* rfclexer}} \par {\bkmkstart AAAAAAAAEK} {\bkmkend AAAAAAAAEK} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v weeder\:pop3.cc} {\xe \v pop3.cc\:weeder} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b Weeder weeder}} \par {\bkmkstart AAAAAAAAEL} {\bkmkend AAAAAAAAEL} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid pop3.hh File Reference\par \pard\plain {\tc\tcl2 \v pop3.hh} {\xe \v pop3.hh} {\bkmkstart AAAAAAAAEM} {\bkmkend AAAAAAAAEM} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "header.hh"}\par {\f2 #include "protocol.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b POP3}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b REPLY_OK}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b HEADER_OK}\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v HEADER_OK\:pop3.hh} {\xe \v pop3.hh\:HEADER_OK} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define HEADER_OK}} \par {\bkmkstart AAAAAAAAEN} {\bkmkend AAAAAAAAEN} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid ((conn->c_read (true) > 0 && conn->c_reply ())? \\\par (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \\\par : false)\par } } {\xe \v REPLY_OK\:pop3.hh} {\xe \v pop3.hh\:REPLY_OK} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define REPLY_OK}} \par {\bkmkstart AAAAAAAAEO} {\bkmkend AAAAAAAAEO} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid {\b Value:}{ \pard\plain \s41\li360\widctlpar\adjustright \shading1000\cbpat8 \f2\fs16\cgrid ((conn->c_read () > 0 && conn->c_reply ()) ? \\\par (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \\\par : false)\par } } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid preferences.cc File Reference\par \pard\plain {\tc\tcl2 \v preferences.cc} {\xe \v preferences.cc} {\bkmkstart AAAAAAAAEP} {\bkmkend AAAAAAAAEP} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "preferences.hh"}\par {\f2 #include "filter.hh"}\par {\f2 #include "mailfilter.hh"}\par {\f2 #include "account.hh"}\par {\f2 #include "protocol.hh"}\par {\f2 #include "score.hh"}\par {\f2 #include "rcfile.hh"}\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Functions\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b rcparse} (void *)\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid int {\b cmp_no_case} ({\b const} string &, {\b const} string &)\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Function Documentation\par \pard\plain {\xe \v cmp_no_case\:preferences.cc} {\xe \v preferences.cc\:cmp_no_case} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int cmp_no_case ({\b const} string & , {\b const} string & )}} \par {\bkmkstart AAAAAAAAEQ} {\bkmkend AAAAAAAAEQ} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v rcparse\:preferences.cc} {\xe \v preferences.cc\:rcparse} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b int rcparse (void * )}} \par {\bkmkstart AAAAAAAAER} {\bkmkend AAAAAAAAER} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid preferences.hh File Reference\par \pard\plain {\tc\tcl2 \v preferences.hh} {\xe \v preferences.hh} {\bkmkstart AAAAAAAAES} {\bkmkend AAAAAAAAES} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "defines.hh"}\par {\f2 #include "socket.hh"}\par {\f2 #include "filter.hh"}\par {\f2 #include "score.hh"}\par {\f2 #include "account.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Preferences}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid protocol.cc File Reference\par \pard\plain {\tc\tcl2 \v protocol.cc} {\xe \v protocol.cc} {\bkmkstart AAAAAAAAET} {\bkmkend AAAAAAAAET} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "connection.hh"}\par {\f2 #include "protocol.hh"}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid protocol.hh File Reference\par \pard\plain {\tc\tcl2 \v protocol.hh} {\xe \v protocol.hh} {\bkmkstart AAAAAAAAEU} {\bkmkend AAAAAAAAEU} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "connection.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Protocol}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b PROTOCOL_POP3}\~ 2\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b PROTOCOL_APOP}\~ 4\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b SSL_C}\~ 4096\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v PROTOCOL_APOP\:protocol.hh} {\xe \v protocol.hh\:PROTOCOL_APOP} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define PROTOCOL_APOP\~ 4}} \par {\bkmkstart AAAAAAAAEV} {\bkmkend AAAAAAAAEV} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v PROTOCOL_POP3\:protocol.hh} {\xe \v protocol.hh\:PROTOCOL_POP3} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define PROTOCOL_POP3\~ 2}} \par {\bkmkstart AAAAAAAAEW} {\bkmkend AAAAAAAAEW} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } {\xe \v SSL_C\:protocol.hh} {\xe \v protocol.hh\:SSL_C} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define SSL_C\~ 4096}} \par {\bkmkstart AAAAAAAAEX} {\bkmkend AAAAAAAAEX} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid score.hh File Reference\par \pard\plain {\tc\tcl2 \v score.hh} {\xe \v score.hh} {\bkmkstart AAAAAAAAEY} {\bkmkend AAAAAAAAEY} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include "filter.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Size_score}\par \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Score}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid socket.cc File Reference\par \pard\plain {\tc\tcl2 \v socket.cc} {\xe \v socket.cc} {\bkmkstart AAAAAAAAEZ} {\bkmkend AAAAAAAAEZ} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include }\par {\f2 #include "defines.hh"}\par {\f2 #include "mailfilter.hh"}\par {\f2 #include "feedback.hh"}\par {\f2 #include "socket.hh"}\par {\f2 #include "protocol.hh"}\par } \par \pard\plain \pard\plain \sect\sbkpage \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid \pard\plain \s2\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\kerning28\cgrid socket.hh File Reference\par \pard\plain {\tc\tcl2 \v socket.hh} {\xe \v socket.hh} {\bkmkstart AAAAAAAAFA} {\bkmkend AAAAAAAAFA} { \pard\plain \s18\widctlpar\fs22\cgrid {\f2 #include }\par {\f2 #include }\par {\f2 #include "connection.hh"}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Classes\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid class {\b Socket}\par } \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macros\par \pard\plain { \pard\plain \s80\fi-360\li360\widctlpar\jclisttab\tx360{\*\pn \pnlvlbody\ilvl0\ls1\pnrnot0\pndec }\ls1\adjustright \fs20\cgrid #define {\b MAX_BYTES}\~ 512\par } {\pard\widctlpar\brdrb\brdrs\brdrw5\brsp20 \adjustright \par} \pard\plain \s3\sb240\sa60\keepn\widctlpar\adjustright \b\f1\cgrid Macro Definition Documentation\par \pard\plain {\xe \v MAX_BYTES\:socket.hh} {\xe \v socket.hh\:MAX_BYTES} \pard\plain \s4\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs20\cgrid { {\b #define MAX_BYTES\~ 512}} \par {\bkmkstart AAAAAAAAFB} {\bkmkend AAAAAAAAFB} { \pard\plain \s51\li360\sa60\sb30\qj\widctlpar\qj\adjustright \fs20\cgrid } \pard\plain \sect\sbkpage \s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs36\kerning36\cgrid \s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs36\kerning36\cgrid Index\par \pard\plain {\tc \v Index} {\field\fldedit {\*\fldinst INDEX \\c2 \\*MERGEFORMAT}{\fldrslt INDEX}} }mailfilter-0.8.4/doc/FAQ0000644000175000017500000010761212333712134011701 00000000000000Mailfilter Frequently Asked Questions and Answers General Questions: * What is Mailfilter? * Who needs Mailfilter? * How does Mailfilter interact with my current e-mail environment? * Where do I find out more about Mailfilter? * I think, I found a bug in Mailfilter. Will you fix it? * I have good ideas for new features. Will you implement them? * Mailfilter is wonderful. How can I support this project? Installation: * What are the system's requirements to install and run Mailfilter? * What should I know to make Mailfilter run on Windows 9x/2000/NT/XP? * How do I install Mailfilter? * Running 'configure' doesn't work. * Running 'make' doesn't work. * Running 'make' was easy, but running 'make install' doesn't work. * Why doesn't the compiler like my flex output, or complains about wrong declarations? * Is there any way to decrease the size of the mailfilter binary? Configuration: * Mailfilter complains that its rcfile ($HOME/.mailfilterrc) is missing. * Mailfilter complains that its logfile can't be accessed. * Mailfilter complains about the syntax of my rcfile. * How do these filters work? What are Regular Expressions anyway? * Is it possible to define what should be delivered, rather than vice versa? * Can I override some filters? (How to define 'friends'/trusted lists) * Is it possible to split the rcfile into several smaller files? * How do I get rid of messages sent in exotic (e.g. Asian) languages (unknown to me)? * How do I fine tune other programs to work with Mailfilter? * I'm using multidrop mail collection with fetchmail and can't get Mailfilter to work. * Are there any sample rcfiles ($HOME/.mailfilterrc) ? * I am scared to try out Mailfilter, cause I might accidently delete everything! Run-time Errors: * Because of some missing libraries, Mailfilter won't start. * Mailfilter complains that a specific file couldn't be accessed. * I get DNS lookup errors. * Mailfilter says it sent a specific command to the server, but it responded with an error. * Mailfilter says that some keyword is deprecated. * The compilation of Regular Expressions failed. * I frequently get an error message saying that my mail server is not responding. * Help, Mailfilter hangs! Special Features: * Can Mailfilter check more than one account? * Does Mailfilter support any other protocols besides POP3? * Is there a way to send encrypted password information to the server? * Mailfilter logs are so plain; I'd like to have better spam-statistics! * How can I get Mailfilter to auto-reply to spam? Miscellaneous: * I think I accidently deleted an important e-mail with Mailfilter. Can I get it back somehow? * If I make changes to rcfile, does it affect immediately? * Sometimes a few (spam-) messages slip through. How come? * What's this cron business? * My question is not covered by this FAQ. Help!! _________________________________________________________________ General Questions: What is Mailfilter? Mailfilter is a flexible utility for UNIX (-like) operating systems to get rid of unwanted spam mails, before having to go through the trouble of downloading them into the local computer. It offers support for one or many POP accounts and is especially useful for dialup connections via modem, ISDN, etc. Mailfilter connects to any POP mail box and compares part of its content to a set of user defined filter rules. That way the spam gets deleted directly on the mail server. With Mailfilter you can define your own filters (rules) to determine which e-mails should be delivered and which are considered waste. Rules are Regular Expressions, so you can make use of familiar options from other mail delivery programs such as e.g. procmail. Mailfilter is released under the terms of the GNU General Public License. For more information, see the README and COPYING documents provided with the Mailfilter program. Who needs Mailfilter? If you do not pick up your e-mail from a POP server, then there is no need to install Mailfilter. But if you do get your e-mail from one or many POP accounts and if you are sick and tired of downloading megabytes of worthless spam (usually those are anonymous advertisements, chain mails, etc.), then you should give Mailfilter a try. It will help save you band width and time by deleting spam directly on your server, before you have to download and read those messages. By defining your own personal filter rules, you can tell Mailfilter which e-mails should be deleted. How does Mailfilter interact with my current e-mail environment? It doesn't matter which programs you use to fetch your mail with, because Mailfilter is an independent application. It will not interfere with your favourite e-mail client. You may just want to start Mailfilter every time you are about to download new e-mail from a POP server, or maybe just once a day. That's entirely up to you. However, if you are using highly configurable mail programs such as fetchmail, then there are some clever ways to get Mailfilter cooperate with them directly. Section "How do I fine tune other programs to work with Mailfilter?" describes this in more detail. Where do I find out more about Mailfilter? All relevant documentation for Mailfilter (including this FAQ) is provided with the Mailfilter distribution. Online versions of some of these documents are available on the official Mailfilter homepage: http://mailfilter.sourceforge.net/ On this homepage you may also find additional information on Regular Expressions and related links to other programs that work well with Mailfilter. If you have already installed the program, be sure to read the man pages mailfilter(1), mailfilterrc(5) and mailfilterex(5). I think, I found a bug in Mailfilter. Will you fix it? If it's really a bug that you found (and not a feature), then I will of course try to do something about it. Generally it's a good idea to report bugs to the mailing list mailfilter-dev@lists.sourceforge.net, but you can also directly contact the author of Mailfilter. When you report bugs, please provide as much additional information as possible on what may have caused the problems and what consequences you suffered. Such information always includes the name of your operating system and hardware platform, description of your network connection and excerpts from the Mailfilter log files. When creating a log file, please use the highest level of verbosity available. mailfilter --verbose=6 Older versions of Mailfilter do not hide your passwords in the logs. Remove these entries before posting anything to the mailing list! I have good ideas for new features. Will you implement them? Of course that depends on the feature you are asking for. There are some frequently requested features ('autoreply' ranks very high) that will most likely never make it into the source code, but at this point I am sure Mailfilter could be expanded with dozens of useful additions and I'm glad to hear about them (if they are not too far 'off the track'). I'm even more glad if you're able to help implement them. Mailfilter is wonderful. How can I support this project? There are many ways to express your appreciation: you could join forces and submit code, but even if you are not a programmer, you could still contribute by sending bug reports, suggestions or useful add-on scripts to our mailing list(s). Every contribution is welcome! Albeit, there is also a web page to donate money to the project. The money would help immensely in keeping the web pages up to date (i.e. cover ISP costs), in answering user feedback and questions via e-mail or mailing lists and in affording additional hardware for testing purposes (i.e. extra hard disks with alternative operating systems). Mailfilter is free software, which means it also depends on the support it gets from the community. _________________________________________________________________ Installation: What are the system's requirements to install and run Mailfilter? Here is an excerpt from the INSTALL file that is part of the source archive of Mailfilter: "To run Mailfilter it's best to have a UNIX (-like) operating system, but it also compiles fine with Windows 9x/NT/2000 if additional libraries and tools are installed (e.g. Cygwin or DJGPP). So far Mailfilter has been successfully compiled and tested with * Solaris 8 / SunOS 5.8 * Irix 6.5 * FreeBSD 4.1.1-RELEASE, 4.5-RELEASE * Mac OS X 10.0 * NetBSD 1.5 * Linux: Mandrake 7.0 - 8.2, Debian 2.1 - 3.0, RedHat 6.2 - 7.1, Slackware 3.9 (See doc/README.Slackware for further details), SuSE 6.2, LinuxPPC * Windows NT, 2000, XP (using Cygwin) but it may well work on other platforms, too. (Please report success if you have managed to compile it on any other system - thanks.) To compile/install Mailfilter you also need to have a fairly recent version of a (GNU) C++ compiler (e. g. GCC >= 2.95.2) and your system must support BSD-type sockets (in general all UNIX systems do meet this criterion). For compilation you will also need some of the GNU autotools (gettext, m4) and the programs flex (http://lex.sf.net/) and yacc (or the GNU substitute bison (http://www.gnu.org/software/bison/)). Attention: GNU flex is unlikely to work with recent compiler releases. So, if you experience compile problems, please use flex from http://lex.sf.net/. GNU flex is broken! What should I know to make Mailfilter run on Windows 9x/2000/NT/XP? Mailfilter was originally designed to only support UNIX (-like) operating systems. But if you have additional libraries such as the Cygwin environment, DJGPP or MinGW installed, then you should also be able to translate the program on your Windows 9x/2000/NT/XP platform. How do I install Mailfilter? If you have downloaded the compressed Mailfilter source code archive, then please refer to the INSTALL file provided by that archive. Binary packages (if available for a particular program version) should be installed as any other package of that kind. For example you could use the command 'rpm -U packagename.rpm' for the RedHat packages. Note: even if you did not encounter any problems installing the program, I strongly recommend reading the INSTALL file anyway in order to find out about the set-up of Mailfilter. The program does not work without spending a little bit of time on configuration first. Running 'configure' doesn't work. If your system lacks some of the requested features/libraries/compilers, then try installing them and run 'configure' again. But don't forget to remove the file config.cache first, or the new components can not be found. If it's a more serious problem that can't be fixed that way, consider reporting it as bug. Running 'make' doesn't work. On Linux systems the command 'make' typically refers to GNU's gmake. Various BSD- and Unix-systems ship with different (non-GNU) versions of make though. In that case you need to be sure that the right version of make is invoked by typing 'gmake', instead of just 'make' (and later 'gmake install' instead of 'make install'). Another common reason why 'make' might fail could be related to your system's C++ compiler and its libraries. It's easiest to use GNU CC (gcc), even though other C++ and C compilers should work as well. But keep in mind that GNU CC releases prior 2.95.x don't know C++ namespaces and therefore choke on Mailfilter's source code. So, be up to date. A not so obvious reason why compilation abords could be related to broken versions of the program flex. Please read section 2.7 of this document for further information on this issue. Running 'make' was easy, but running 'make install' doesn't work. The most common cause for this behaviour is that you are trying to install Mailfilter into a directory where you do not have the necessary permissions to write in. Either reconfigure your Makefile with these options make clean ./configure --prefix=/newdir where 'newdir' points to the new location for Mailfilter, or simply become 'root' and then run 'make install' again. By default this will install the software in /usr/local/bin. Why doesn't the compiler like my flex output, or complains about wrong declarations? Because most likely you are using a broken version of GNU flex. Basically, you have two choices to resolve the problem: a) you can stick with GNU flex and try using an outdated release of GCC, or b) you try replacing the (broken) GNU flex with a more compatible version available from http://lex.sf.net/. Is there any way to decrease the size of the Mailfilter binary? For users of UNIX-like systems, yes. When installing the program, running 'make install-strip' instead of 'make install' will strip the binary as it installs it, drastically decreasing its size. If you've already installed mailfilter, but still wish to strip the binary, become root, and use the strip command. See the manual page of strip(1) for more information. _________________________________________________________________ Configuration: Mailfilter complains that its rcfile ($HOME/.mailfilterrc) is missing. Read the INSTALL file provided with Mailfilter, in which you will find an example rcfile set-up. Copy and paste this example, modify it to suit your own needs and restart Mailfilter. (Alternatively you can also look up the official homepage to find a basic set-up that gets you started very conveniently.) If the program still complains, then try to start it with the '--mailfilterrc' switch, pointing directly to the new location of your rcfile. Note: you must have a rcfile file installed somewhere. Mailfilter complains that its logfile can't be accessed. Every rcfile must set the LOGFILE option. Check the given path of your logfile in the rcfile, or simply start Mailfilter with the '--logfile' switch pointing directly to the desired location. If that doesn't help, then check the permissions of the directory where you want Mailfilter to store its logs in. It has to be writable. Mailfilter complains about the syntax of my rcfile. Not to worry, you probably misspelled a word or two in the rcfile, or you have a couple of blanks hidden at the end of your command's parameters. Read through your settings carefully and check for redundant white space characters. Typically an entry in $HOME/.mailfilterrc looks like this COMMAND_NAME = MyParameter The command (not necessarily written in capitals) is followed by the '=' and there are no white space symbols (blanks, tabs, etc.) hidden after the parameter. Each command has to be in a separate line of the config file. How do these filters work? What are Regular Expressions anyway? With Mailfilter you can define your own filter rules to determine which e-mails are considered waste and what should be downloaded into your local computer. Such rules are defined by using Regular Expressions. It is very common for these kinds of programs to employ this technique because of its great flexibility. Consider this simple example: if you are not interested to get the 200th advertisement containing information about Viagra, you might want to add this to the end of your rcfile DENY = "^Subject:.*Viagra" Now every e-mail that contains anything about Viagra in the subject line gets deleted right away. You can create similar rules for all of the other header fields (cc, To, From, etc.), but be aware of the fact that Mailfilter does not allow more than one line per rule. So each new filter must be placed in its own line starting with 'DENY'. If you don't want the filter rules to be case-sensitive then you also have to add this line to your rcfile: REG_CASE = "no" A comprehensive list of all supported keywords can be found in the mailfilterrc(5) man page. More examples and real-life use cases can be looked up in the mailfilterex(5) man page. Study these documents carefully! If you're eager to know how Regular Expressions work in general, use your favourite UNIX book or have a look at the official Mailfilter homepage. There you will find some enlightening links on this subject. Is it possible to define what should be delivered, rather than vice versa? Yes, by creating a negative filter. Negative Filters are quite restrictive, so you should make sure that you have fully understood how these are set up and how they work. DENY<>"^(To|Cc):.*my-email@address\.com" Having a simple rule like this added to your rcfile, Mailfilter will delete every message which is not directly sent to your e-mail account. That is, if there is a message that can't be matched to the above, then it automatically qualifies as spam. Can I override some filters? (How to define 'friends'/trusted lists) Yes, using the keyword ALLOW you can define which messages should be delivered, regardless of any spam filters that might match. This way you can not only define 'friends' lists, but also create a very restrictive rule set. Consider this example: DENY = "^From:.*@spam_isp.org" ALLOW = "^From:.*my_friend@spam_isp.org" Adding these two lines to your rcfile will filter all messages coming from the domain 'spam_isp.org', except for those from your friend 'my_friend' (who should obviously change his ISP). A comprehensive list of all supported keywords can be found in the mailfilterrc(5) and mailfilterex(5) man pages. Study them carefully! Is it possible to split the rcfile into several smaller files? This is a feature, officially supported since version 0.3.3 of Mailfilter. Use the keyword INCLUDE in your main rcfile to load additional program configuration. However, the nesting may only be one level deep, i.e. the files included must not include further files. Consider this example: # From within $HOME/.mailfilterrc we load three # additional config files INCLUDE = "/home/myusername/.mailfilter/servers" INCLUDE = "/home/myusername/.mailfilter/filters" INCLUDE = "/home/myusername/.mailfilter/friends" How do I get rid of messages sent in exotic (e.g. Asian) languages (unknown to me)? Spam is not only a European or American illness. In fact a lot of it comes from Asia and a lot of that reaches people who can not read nor understand what arrives in their mail boxes. The following filters will help you to get rid of e-mails that contain 'unusual' subject tags. Consider some excerpts from a typical logfile: Subject: ·ADSL/CABLE/ISDN/PSTN/SWITCH Subject: ǿƼ(www.I_am_a_Spammer.com) Subject: 70ҵϢ All these subjects have one thing in common: They use characters which do not fit into the ordinary range of displayable ASCII symbols. A hexdump of the last subject line will help to illustrate this: 0000 53 75 62 6a 65 63 74 3a 20 37 30 cd f2 c6 f3 d2 0010 b5 d0 c5 cf a2 .. .. .. .. .. .. .. .. .. .. .. Even though it is possible to create filters matching these strings, it takes a bit of work, since most Regular Expression libraries that today's operating systems provide do not support octal or hex escapes (something like [\x80-\xfc]). In fact, the negative (and case sensitive) message filters are our weapon of choice here: DENY_CASE<>"^Subject: [][A-Za-z0-9 ^ ^^ ^^^^^^^ 1 23 4 :;.,!"$%&/()=?{}_<>#~'` |@*+^\-]+$" ^^ ^^^^ 5 6278 There are some important issues in this expression, numbered from 1 - 8: 1. See 8. 2. These brackets '[]' enclose a character class. 3. We want to allow these brackets, too. The only position where to put the closing bracket into a character class is the first one. 4. For those who want to allow German subjects. (Modify this to fit your own needs for Scandinavian languages, etc.) 5. Attention: There are two different single quotes from the upper right to the lower left. 6. Inside a character class the hyphen '-' is a meta symbol to set a range of characters (take a look at the beginning). In order to get the actual literal '-', it must be positioned at the end of the class. 7. Indicates that the preceding character or character class has to be present at least once. 8. In order to force the mail's originator to only use these characters in the subject line, there must not exist any preceding or following characters. That is the preceding character has to be the start of the line, the following character has to be the end of the line. On a UNIX-like system you usually need to switch off the locale first ('handling of different country characteristics'), so the internal Regular Expression compile-process does not get confused. If you are calling a script for filtering and getting messages, you could use something similar to this: #!/bin/sh # Remove locale L=$LANG unset LANG # Get mails /usr/local/bin/fetchmail $* # Restore locale LANG=$L Alternatively it is also possible to create a straight forward filter that matches non-ISO-8859-1 messages (or at least almost). The standard ISO-8859-1 is an extension to the ASCII character set (i.e. the first 128 characters are the same, greater numbers encode symbols, accents, etc.) and supports the following languages: Afrikaans, Basque, Catalan, Danish, Dutch, English, Faeroese, Finnish, French, Galician, German, Icelandic, Irish, Italian, Norwegian, Portuguese, Spanish and Swedish. There is a draw back though: the filter we're presenting here accepts only special German characters (umlauts) as extension and is therefore not fully ISO-8859-1 compliant. However, you might consider it useful anyway. Read the filter as one single line: # A filter that only accepts ASCII characters and also # German umlauts as extension DENY_NOCASE = "^Subject:.*=\?ISO-8859-1\?Q\?.*= ([0189][[:xdigit:]]|[7F]F|A[0189A-F]| B[1235-9A-F]|[CE][0-35-9A-F]|[DF][0-5789ABDE])" Needless to say, you need to have extended Regular Expressions enabled (Mailfilter's default are basic expressions) in order to create such complex rules. (This truly frequently asked question was patiently worked out and answered by Til Schubbe.) How do I fine tune other programs to work with Mailfilter? As always, there are various ways to achieve this. I have chosen the commonly used application fetchmail to explain how this works. (Similar options are available in other mail programs, such as KMail.) Fetchmail is a nifty program that downloads e-mail from POP accounts (it also supports other protocols). Therefore it's a very tempting idea to use the clean up services of Mailfilter before we're starting to receive huge amounts of junk in between our normal e-mail messages. Adding one single line to the fetchmail set-up file does the trick: poll my.mailserver.de via "my.mailserver.de" with proto POP3 localdomains mailserver.de user "username" there with password "pass" is tuxuser here options forcecr warnings 3600 preconnect "mailfilter" poll my2.mailserver.de via "my2.mailserver.de" with proto POP3 localdomains mailserver.de user "anotherusername" there with password "other_pass" is tuxuser here options forcecr warnings 3600 The line 'preconnect "mailfilter"' tells fetchmail to invoke Mailfilter each time the user requests the download of new e-mail messages. If Mailfilter is set up to check both of the given accounts then calling it merely once is sufficient. Another very good (and popular) way of using Mailfilter is to call it via cron, or just once upon login. That way you won't see much of it either and can work with your favourite e-mail program just as you are used to - except you won't be disturbed by spam anymore. I'm using multidrop mail collection with fetchmail and can't get Mailfilter to work. Peter T. Garner contributed this one: consider an environment in which six users collect mail via fetchmail's multidrop mechanism, but want their messages checked for spam first. That's no problem if you mind the right syntax and add something like this to your fetchmail set-up: set postmaster "root" set properties "" set bouncemail set syslog poll pop.something.net with proto POP3 envelope Envelope-to aka something.rather.co.uk user anything.anyone.co.uk there with password TOP_SECRET to peterg = peterg annie = annie gemma = gemma lizzy = lizzy bob = bob here options preconnect "mailfilter --mailfilterrc=/etc/mailfilter.rc" Are there any sample rcfiles ($HOME/.mailfilterrc) ? Yes, there are. You can find one in the INSTALL guide provided with Mailfilter, or check the rest of the documentation for additional 'rcfile.example' files. A comprehensive list of all supported keywords can be found in the mailfilterrc(5) and mailfilterex(5) man pages. Study them carefully! I am scared to try out Mailfilter, cause I might accidently delete everything! No, you won't. If you are new to Mailfilter, place this line in your rcfile before running the program for the very first time: TEST = "yes" This makes sure you are not losing any mail at all, including spam. When Mailfilter is in test mode it only simulates the deletion of e-mail and you can see how good your filters would work - in theory. Once you have come to a point where you are happy about their behaviour you can remove this command from your rcfile again and start to seriously kill the spam. _________________________________________________________________ Run-time Errors: Because of some missing libraries, Mailfilter won't start. So far I have only witnessed this behaviour on a poorly administered Solaris machine. If you get an error message similar to this ld.so.1: ./mailfilter: fatal: libstdc++.so.2.10.0: open failed: No such file or directory then your library path is not set properly. To fix the problem, simply type something like this in your shell (if it's bash - otherwise you may have to use 'set' instead of 'export') depending on the path of your libraries (sometimes they're also in /opt/lib) export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH Mailfilter complains that a specific file couldn't be accessed. Most likely you need to fix up your Mailfilter configuration. Please refer to the "Configuration" section in this FAQ. I get DNS lookup errors. Such errors occur when the Domain Name Server failed to resolve the name of your mail server. This either happens when you have misspelled the server name in your rcfile, or when you are trying to start Mailfilter even though you have not established a network connection first. Mailfilter says it sent a specific command to the server, but it responded with an error. Usually these errors occur when you are trying to get your mail from a server that does not fully support the POP3/APOP transfer protocol. But you can also get this behaviour if your network connection (or only the connection to the POP3 server) drops during a mail box examination. In this case, simply try to invoke Mailfilter again. If that doesn't fix it, consider reporting a bug. Mailfilter says that some keyword is deprecated. This may happen occasionally when updating from an old version of Mailfilter to a new one. Usually the program suggests a new keyword in its error message though. But you can also look up the proper definition in the documentation files that come with the Mailfilter distribution, or consult the mailfilterrc(5) man page. It contains a comprehensive list of all supported and deprecated keywords. The compilation of Regular Expressions failed. Extended Regular Expressions are not 100% compatible to the basic kind of expressions. Check if you have set Mailfilter to support extended expressions (keyword REG_TYPE) and adjust your filters if necessary. I frequently get an error message saying that my mail server is not responding. You have to use the keyword TIMEOUT in order to increase the response time out value. The default is set to 30 seconds, but in some occasions a higher value might be necessary, because some mail servers take longer to send a response, than others. This behaviour can also be experienced on slow or extremely busy network connections. Help, Mailfilter hangs! Depending on your machine's operating system and configuration you might run into trouble with the deployed Regular Expression library. Mailfilter depends on that component to match the user defined spam filters. It has been reported that certain library implementations do not like (very) large strings and therefore stop Mailfilter when it tries to process e-mails with big headers. The Internet standard RFC 822 explicitly forbids any header description to exceed the 998 byte limit. So, you should use MAXLENGTH in your rcfile to make sure no strings larger than 998 characters are being processed by Mailfilter. All the different Regular Expression libraries should be able to happily handle that size, too. Please note that MAXLENGTH also overrides your friendly ALLOW rules. So it's probably a good idea to deploy this feature only if you have experienced this peculiar program behaviour yourself! _________________________________________________________________ Special Features: Can Mailfilter check more than one account? Of course it can. Personally, I despise all e-mail programs that have such stupid limitations. How many users nowadays have only one account anyway? Does Mailfilter support any other protocols besides POP3? Yes, it does: POP3 and APOP (= encrypted POP3) are implemented. Support for the IMAP protocol is also planned. Is there a way to send encrypted password information to the server? It is possible to tunnel Mailfilter through ssh (Secure-Shell). Brian Hall has provided a shell script and some comments on this issue. This solution requires a password-less login to your server/shell account though. #!/bin/sh # Script to restart the ssh tunnel if tunneled ports are failed /usr/local/bin/mailfilter -M /home/hallb/.mailfilterrc | \ grep "timed out" > /dev/null 2>&1 || exit # Find pid of sleeping ssh tunnel process /bin/kill `/bin/ps wx | /bin/grep -v grep| /bin/grep \ "ssh -i /root/.ssh/script_id -g shell.pcisys.net -f" | \ /bin/awk '{print $1}'` > /dev/null 2>&1 # Start ssh tunnel process /usr/bin/ssh -i /root/.ssh/script_id -g shell.pcisys.net -f \ /bin/sleep 999999999 < /dev/null > /dev/null 2>&1 Mailfilter logs are so plain; I'd like to have better spam-statistics! Roland Smith has come up with a simple, yet efficient way to create nice monthly spam-statistics. This shell script summarises the main log file: #!/bin/sh # -*- shell-script -*- # Id: spamsort,v 1.3 2002/03/14 18:47:39 rsmith Exp rsmith # # 2003/10/03 12:46:28 extension from Simon Brandmair: now shows MAXSIZE_DENY hits LOG = "/var/log/mailfilter" cat $LOG |awk '/Deleted/ {print $NF}'|sed 's/]//g'| \ sed -e 's/^.*[/][0-9]*$/MAXSIZE_DENY exceeded/' | \ sort|uniq -c|sort -r The output of this script looks something like this: 384 '^Content-Type:.*text/html.*' 261 '<>^(To|Cc):.*rsmith@xs4all.nl' 189 '^(From|Received):.*hotmail.com.*' 110 '^(From|Received|Reply-To):.*yahoo.com.*' 51 '^(From|Received|Reply-To):.*hotmail.com.*' 40 '^Subject:.*adult.*' 36 '^(From|Received|Reply-To):.*yahoo.*' 26 '^(From|Received):.*aol.com.*' 21 duplicate 18 '^(From|Received):.*listmanpro.com.*' 17 '^From:.*e.*direct.com.*' 14 '^Mailing-List:.*double-optin.*' 12 '^(From|Received):.*investorsalley.com.*' 11 '.*hardcore.*sex.*' 10 '^From:.*optmailing.com.*' 10 '^From:.*freeoptinfo.com.*' 7 '^From:.*horny18.net.*' 5 '^Subject:.*rsmith@xs4all.nl.*' 5 '^Received:.*listbuilder.com.*' 5 '^From:.*msn.com.*' 2 '^From:.*thenewpornsite.com.*' 1 material.*' 1 '^From:.*insync-palm.com.*' 1 '^(From|Received):.*sexrave.com.*' 1 '<>^From:.*@.*' How can I get Mailfilter to auto-reply to spam? You can't and this is a feature that will never be implemented either. I started the Mailfilter project to prevent e-mail abuse in general not to give people a weapon to fight fire with fire. Apart from that it would be considered a criminal offense in most countries (including the one I'm living in) to answer a mail bomb with your own mail bomb. _________________________________________________________________ Miscellaneous: I think I accidently deleted an important e-mail with Mailfilter. Can I get it back somehow? Tough. Once Mailfilter deleted an e-mail, all you get to see of it is where it came from, what it was about and when it was sent. Have a look in your logfile and ask the author to send it again. If that's not an option for you, you may want to ask your ISP to recover this message for you, though I doubt this would be a very successful undertaking. If I make changes to the rcfile, does it affect immediately? If you are changing Mailfilter's settings while it's active, nothing special will happen. All changes you make in the rcfile will be considered next time you run the application. Sometimes a few (spam-) messages slip through. How come? This is not a bug in Mailfilter. Consider this a feature of every POP e-mail server. Once you start checking for spam or downloading messages, the server locks your mail box. If new messages arrive during the locked state, they will be queued and provided for further processing after the lock has been removed. So Mailfilter does not see incoming messages while it checks for spam and sometimes it happens that a message or two arrive just in time to be too late for filtering, but in time for download. That's life. What's this cron business? Cron. It's the way to run tasks on a schedule in Unix. Say, for example, I wanted to run mailfilter once every minute of every day. Well, we think of it this way: minute hour day month day_of_week command_here A quick explanation what it all means: * The first field specifies the minute (0 to 59). * The second field specifies the hour (0 to 23). * The third field specifies the day of the month (1 to 31). * The fourth field specifies the month of the year (1 to 12). * The fifth field specifies the day of the week (0 to 6 for Sunday to Saturday). * The sixth field specifies the command to be executed. So, for a quick example, if I wanted something to run every night at 3 AM, I would use the following (an asterisk is the same as saying "anything"). 0 3 * * * mailfilter Or, lets say I wanted every weekday (days 1-5) every hour at half past the hour: 30 * * * 1-5 mailfilter Or, every 10 minutes (which is what I use) 10,20,30,40,50 * * * * mailfilter (Thanks to Matt Cowger for answering this FAQ.) My question is not covered by this FAQ. Help!! This FAQ can never be a 100% complete guide, covering all possible aspects of the Mailfilter program. That is the reason why we have created a mailing list where we discuss the various aspects of spam killing and how to use Mailfilter. Feel free to subscribe and ask your questions. In urgent or very special cases, however, you can also contact me directly, the author of Mailfilter. Maybe the question will be just another candidate for the FAQ. mailfilter-0.8.4/NEWS0000644000175000017500000003403412675277434011320 00000000000000Mailfilter NEWS (Summary) -=-=-=-=-=-=-=-=-=-=-=-=- mailfilter 0.8.4 (Fri Mar 25 18:44:55 CET 2016) - Fix compilation issues stemming from flex >= 2.6.0, which no longer uses pointers for yyin, but references it seems. - Minor other code fixes that relate to the above. mailfilter 0.8.3 (Sat May 17 19:37:27 CEST 2014) - (Hopefully) fixed Debian Bug #716522: mailfilter crashes with invalid file name in rc file that cannot be expanded properly. - Fix build problems due to bison not supporting YYPARSE_PARAM any longer. - Minor fixes to allow compilation with recent GCC versions. - Due to popular demand: Added option -i to ignore invalid Message-ID time stamps. (Using this option is a potential security risk, so do not use unless you know better!) mailfilter 0.8.2 (Sat Aug 15 16:12:22 EST 2009) - Provide fix for APOP vulnerability (e.g., described in ticket #2846 on mutt mailing list) - Fix build problems such that mailfilter compiles with recent gcc and autotools (mainly for developers) mailfilter 0.8.1 (Sat Sep 15 17:14:49 EST 2007) [stable version] - Detection of getopt should now work when compiling the program from source (Thanks to Mike Clarke for helping me debug this) - Fixed logging error; no log files were created occasionally - Mailfilter now returns -1 if one or more accounts failed to be checked; 0 is only returned if the *entire* mailfilter session was successful (Thanks to Mike Clarke for pointing this out) mailfilter 0.8 (Mon Jan 1 16:09:52 CET 2007) [stable version] - Code overhaul to introduce a more object oriented design - Temporarily disabled gettext and the outdated translations - (Hopefully) fixed bugs #238273 and #238273 in Debian bug database mailfilter 0.7.2 (Sun Oct 1 10:17:41 CEST 2006) [development version] - Fixed a number of small build and dependency problems - Makefile clean-up: should now compile with old GNU flex 2.5.4 again (?) - New user contributed scripts in contrib/ mailfilter 0.7.1 (Sat Nov 27 14:24:08 CET 2004) [development version] - RUDIMENTARY IMAP support (not usable yet) - Preliminary support for SSL has been added (if OpenSSL is installed, it can be enabled by specifying protocol "pop3/ssl", or "apop/ssl" and by using port 995 in case of POP, instead of 110) - APOP support has been ported over to the 0.7.x development branch - MAXLENGTH keyword default is no longer ignored, or misinterpreted mailfilter 0.7 (Sat Feb 14 17:59:26 CET 2004) [development version] - Revised and faster networking code - New rcfile parsing and setup capabilities Note, the rcfile format has changed! Parameter strings have to be in quotes now, e.g. SERVER = "my.server" This also hits all your created rules. It is not necessary if your parameter is a number e.g. the port number. - New keyword MAXSCORE_SCORE (see man pages) - Keyword SHOW_HEADERS expects a path name now, indicating where to store the headers - Verbosity levels have been adjusted slightly mailfilter 0.6.2 (Sun Aug 8 14:17:18 CEST 2004) [stable version] - Fixed a crash which would occur if the Date field contains no ":" separator mailfilter 0.6.1 (Sat Feb 14 17:59:26 CET 2004) [stable version] - New keyword MAXSIZE_SCORE (see man pages) - New scripts in contrib/ - Mails which do not contain a valid Message-ID are no longer treated as being duplicates - Additional Polish rcfile example configurations in the doc/ directory mailfilter 0.6 (Sun Oct 26 17:20:59 CET 2003) [stable version] - Polish translation added mailfilter 0.5.2 (Sat Oct 11 12:00:05 CEST 2003) [development version] - (Buggy) Windows support has been removed - (Hopefully) resolved compile problems: since mailfilter does not compile with GNU-flex anymore, the code has been adjusted to depend on a flex version which is available from http://lex.sf.net/ - New user-contributions and scripts in contrib/ - Minor documentation changes in the FAQ mailfilter 0.5.1 (Sat Apr 12 08:46:25 CEST 2003) [development version] - Added '-r'/'--return-value' in order to make mailfilter return a positive integer if it scanned any messages in any POP account (see mailfilter (1) man page for details) - Added contrib directory with extra scripts and programs which can be used in combination with mailfilter (read its README file for further details) - Added a scoring mechanism (see man pages for further details) to allow more efficient filtering on mailing lists, for example - Fixed configuraton and compilation woes with various versions of gcc, flex, bison and the autotools (mainly relevant for developers) - Added `--test' as command-line switch to merely simulate deletes mailfilter 0.5.0 (Sun Aug 25 14:52:54 EST 2002) [development version] - Updated documentation and man pages - APOP support (courtesy Greg Louis) - Greek language translation (courtesy Dimitrios Kamenopoulos) - Fixed Makefile bug that caused recompilation upon make install (courtesy Joerg Jaspert) - Updated Windows-related configuration and installation files - Windows users can now use "_mailfilterrc" instead of ".mailfilterrc" mailfilter 0.4.0 (Wed May 29 10:10:18 CEST 2002) [stable version] - Updated documentation - Updated language translations (German, Spanish) mailfilter 0.3.3 (Mon Apr 22 17:38:10 CEST 2002) [development version] - Mailfilter now supports POP3 servers that make use of several streams/ connections/whatever to send back acknowledgements during the login period - Added Russian translation, courtesy Ilgiz Kalmetev - Fixed a bug that caused mailfilter to crash under certain conditions, upon syntax errors in the rcfile - The -L and -v command line switches override any rcfile directives (again), as it should be - Syntax errors in configuration files are reported correctly now - Headers are not logged twice anymore, if SHOW_HEADERS=yes and VERBOSE=6 - Nested rcfiles possible now (use INCLUDE as keyword) - Exotic POP3 servers that do not use "TOP %n 0" to show the message headers, can now be used by defining an alternative command in the config.h file (recompilation is necessary, however) mailfilter 0.3.2 (Wed Feb 20 09:38:41 CET 2002) [development version] - Improved rcfile parsing, trailing white space characters are possible now - Improved logging and verbosity capabilities (see mailfilterrc(5) for details) - Usernames and passwords may consist exclusively of digits now - Fixed a type conversion problem in signal handling code, such that compilation works again with FreeBSD 4.4-RELEASE - Minor documentation updates (faq, man pages, etc.) - Fixed a minor incompatibility with Windows configuration files, such that bison gets invoked correctly mailfilter 0.3.1 (Sun Dec 2 11:11:52 GMT 2001) [development version] - Improved rcfile parsing and added support for multi-case keywords and the like (If you run into problems compiling the program, please look into doc/FAQ, as a couple of Linux distributors use(d) a broken version of flex!) - Spanish translation (courtesy Carlos Valdivia Yage) - Updated and corrected the program's FAQ (e. g. thanks to Brian Hall we have now an example shell script that shows how Mailfilter can be tunneled via ssh) - Bug fix: Mailfilter now displays the correct filter and subject string of a mail if a (normalised) filter matched - Bug fix: mails that contain subject strings with only a white space character, are now handled correctly - Added time out signal handler for network connection code - Added signal handler to catch SIGINT, i.e. ctrl-c mailfilter 0.3.0 (Wed Nov 7 14:17:44 GMT 2001) [development version] - Program compiles and runs (again) under MS-Windows with Cygwin and the like (see doc/README.Windows) - rcfile must be in $HOME now and is not expected to be in /home/ anymore - Upon popular demand the default setting of MAXLENGTH is '0' now, i.e. the feature is disabled by default - Restructured the verbosity levels; see mailfilterrc(5) man page for details, please - Removed internal string handling bugs that confused the Regular Expression compilation mailfilter 0.2.4 (Thu Oct 11 18:32:48 GMT 2001) [stable version] - Added option to define a time span in seconds that Mailfilter waits for a server response, after a command was issued, keyword TIMEOUT - Added option to define maximum line lengths of header fields, keyword MAXLENGTH - Changed header parsing slightly, such that program output does not contain unwanted control characters anymore - Added Russian translation of an example rcfile (courtesy of Alex A. Puchow) mailfilter 0.2.3 (Wed Aug 15 17:13:17 CEST 2001) [stable version] - Updated and extended the FAQ and man pages - Bug fix: No more endless loops in the normalisation process if subject line ends with a whole bunch of white-space characters, ie more than the usual two - Bug fix: Normalisation handles multiple spaces/blanks correctly now - Bug fix: field-names may now start in lower case letters, ie parsing should be fully RFC822 compliant - Bug fix: the closing tags for e-mail headers are not parsed and processed anymore - Translations are now part of the RPM packages - Message size of deleted messages (MAXSIZE) appears in logs mailfilter 0.2.2 (Wed Jul 18 11:51:59 CEST 2001) [stable version] - Changed source code, so Mailfilter compiles with the new GCC 3.0.x (mainly a matter of missing namespace declarations) - Line numbers of the rcfile show up in case of a configuration error (courtesy Johannes Bauer) mailfilter 0.2.1 (Mon Jul 9 18:56:21 CEST 2001) [stable version] - Fixed a bug that caused normalisation to fail when message tags consisted of only capital letters - The different verbose levels are more consistent and useful now - Portuguese translations (courtesy Frederic Meunier) - New example rcfiles to make installation easier mailfilter 0.2.0 (Thu May 31 18:16:41 CEST 2001) [stable version] - Updated man pages - Added new keyword to delete duplicates of messages: DEL_DUPLICATES - New Italian translations (courtesy Matteo Merli) - Passwords don't show up in log files anymore if verbosity level is set sufficiently high mailfilter 0.1.3 (Sun May 6 10:59:36 CEST 2001) [development version] - Multi-line header fields like "To:", "Cc:", etc. are now handled correctly (especially in regard of the negative spam filters). That is, new lines are transformed into white-spaces. - Minor documentation updates mailfilter 0.1.2 (Wed Apr 25 17:24:11 CEST 2001) [development version] - Added internationalisation (so far for 'de', 'fr') - Added 'negative' DENY filters, e.g. DENY<>^To:.*my@address.com mailfilter 0.1.1 (Sat Jan 27 09:26:47 GMT+1 2001) [stable version] - New man pages: mailfilter(1), mailfilterrc(5), mailfilterex(5) - A 'normalised' subject string is now only checked if the message has passed all ordinary filters first (That's much more efficient.) - Replaced keyword ICASE with REG_CASE - less confusing that way (A list of deprecated keywords can be found in the mailfilterrc(5) man page.) - New keywords: TEST, SHOW_HEADER. See mailfilterrc(5) and mailfilterex(5) for details. - Small bug fixes that do not directly affect functionality mailfilter 0.1.0 (Sat Jan 20 10:01:44 GMT+1 2001) - Added support for extended Regular Expressions - Added 'normalisation' of subject strings for more effective filtering - Improved memory management: e-mails are being filtered on the fly now - All Regular Expressions of Mailfilter are only compiled once now, on program startup; much faster! - New keywords for more efficient filtering: DENY_CASE, DENY_NOCASE, ALLOW, MAXSIZE_DENY, MAXSIZE_ALLOW (Consult the README.mailfilterrc file for further information!) - Added multi-level verbose mode (and replaced keyword MODE with VERBOSE) - Added check for malformed keywords in .mailfilterrc - Changes to the documentation; added platform specific installation instructions (Windows and Slackware Linux) - Moved some of the READMEs and the FAQ to the doc/ directory - Small bug fixes that do not directly affect the functionality mailfilter 0.0.4 (Tue Dec 19 17:11:33 GMT+1 2000) A small but nasty bug made Mailfilter crash on certain versions of glibc. That's fixed now and also the reason why 0.0.4 was out so quickly after 0.0.3 has been shipped. Mailfilter now allows ',' in the passwords and reports if the password that was sent to the server was incorrect. mailfilter 0.0.3 (Thu Dec 14 16:31:46 GMT+1 2000): It doesn't hurt anymore having e-mails that match two or more filters at once. Added support for anal mail servers such as IMail. Various little bug fixes, mainly dealing with internal memory management, but also exception and error handling. Added a manual page. Added the ability to have case insensitive regular expression matching in the .mailfilterrc file (courtesy Ivan Vitjuk) Added api documentation in various formats mailfilter 0.0.2 (Fri Nov 24 22:38:11 GMT+1 2000): Mailfilter doesn't break anymore when the bandwidth gets low. Nonblocking I/O seems to work as well and provides a better performance when checking for e-mail headers on the server. Various other little bug fixes have found its way in this release: The --mailfilterrc switch works now, MAXSIZE can be set to zero and the parsing of the e-mail headers got fixed. This version also offers better support for other platforms due to automake and provides a better help and version info (thanks to Matthew R. MacIntyre for implementing this). Also changed from a shallow to a deep package structure. mailfilter 0.0.1 (Fri Nov 17 16:10:51 GMT+1 2000): Mailfilter's initial version has been released. See TODO for more information on this (yet) experimental release. mailfilter-0.8.4/Makefile.in0000644000175000017500000006567512675277603012703 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Makefile.am: help build sources on mulitiple architectures # $Id: Makefile.am,v 1.20.2.3.2.8 2007/01/01 13:38:40 baueran Exp $ # Copyright (c) 2000 - 2009 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = mailfilter.spec CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/mailfilter.spec.in AUTHORS COPYING ChangeLog INSTALL \ NEWS README THANKS compile depcomp install-sh missing ylwrap DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz $(distdir).zip GZIP_ENV = --best DIST_TARGETS = dist-gzip dist-zip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_COPYRIGHT = @PACKAGE_COPYRIGHT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # AUTOMAKE_OPTIONS = dist-shar dist-zip dist-tarZ AUTOMAKE_OPTIONS = dist-zip SUBDIRS = doc man src contrib EXTRA_DIST = ylwrap # EXTRA_DIST = config.rpath mkinstalldirs ABOUT-NLS ylwrap ACLOCAL_AMFLAGS = -I all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mailfilter.spec: $(top_builddir)/config.status $(srcdir)/mailfilter.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am .PRECIOUS: Makefile # build a distribution snapshot # TODO: # add a snap documentation target # check to see if there is already a previous snapshot there, # and don't overwrite it! @MAINT@snapshot: README-snapshot maintainer-clean @MAINT@ @a=`date -R` ;\ @MAINT@ echo "Last built on $$a" >> README-snapshot @MAINT@ @d=`pwd` ;\ @MAINT@ d=`basename $$d` ;\ @MAINT@ echo $$d ;\ @MAINT@ cd .. ;\ @MAINT@ tar -cvzf $$d-`date +%m%d%y`.tar.gz $$d ;\ @MAINT@ mv $$d-`date +%m%d%y`.tar.gz $$d/ ;\ @MAINT@ cd $$d @MAINT@doxygen: @MAINT@ cd $(top_srcdir)/doc ;\ @MAINT@ ${MAKE} doxygen @MAINT@alldist: man doxygen @MAINT@ ${MAKE} distcheck @MAINT@ ${MAKE} dist-shar @MAINT@ ${MAKE} dist-zip @MAINT@ ${MAKE} dist-tarZ @MAINT@cvsclean: maintainer-clean @MAINT@ @-rm -f `find . -name Makefile.in` @MAINT@ @-rm -f configure aclocal.m4 config.h.in stamp-h.in depcomp ylwrap @MAINT@ @-rm -f config.guess config.sub config.cache config.log config.status @MAINT@ @-rm -f mkinstalldirs missing install-sh COPYING @MAINT@ @-rm -fr @PACKAGE@-@VERSION@* *~ */*~ @MAINT@ @-rm -fr $(top_srcdir)/doc/api @MAINT@ @-rm -fr $(top_srcdir)/intl @MAINT@ @-rm -fr $(top_srcdir)/src/y.* @MAINT@ @-rm -fr $(top_srcdir)/src/rcfile.c* @MAINT@ @-rm -fr $(top_srcdir)/src/lex.* @MAINT@ @-rm -fr $(top_srcdir)/src/rfc822.cc @MAINT@ @-rm -fr $(top_srcdir)/src/rfc822scanner.* @MAINT@ @-rm -fr $(top_srcdir)/src/rfc822parser.* @MAINT@ @-rm -fr $(top_srcdir)/src/rcparser.* @MAINT@ @-rm -fr $(top_srcdir)/src/yy.tab.* @MAINT@ @-rm -fr $(top_srcdir)/src/lex.* @MAINT@ @echo "=================================================" @MAINT@ @echo "Don't forget your ChangeLog and NEWS entries ...." @MAINT@ @echo "=================================================" # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mailfilter-0.8.4/AUTHORS0000644000175000017500000000175212333712134011650 00000000000000Mailfilter AUTHORS -=-=-=-=-=-=-=-=-= Andreas Bauer (Project Leader, Developer, German translation) Ron Day (Maintainer of Mailfilter package for Slackware Linux) Etienne Herlent (French translation, Maintainer of Mailfilter package for Mac OS X) Joerg Jaspert (Maintainer of Mailfilter package for Debian Linux) Ilgiz Kalmetev (Russian translation) Dimitris Kamenopoulos (Greek Translation) Frederic L. W. Meunier <0@pervalidus.net> (Portuguese translation) Matteo Merli (Italian translation) Bob Paddock (Maintainer of Mailfilter package for MS-Windows) Mike Polniak (Maintainer of Mailfilter package for Gentoo Linux) Carlos Valdivia Yage (Spanish translation) mailfilter-0.8.4/ylwrap0000755000175000017500000001531212665064002012043 00000000000000#! /bin/sh # ylwrap - wrapper for lex/yacc invocations. scriptversion=2013-01-12.17; # UTC # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # Written by Tom Tromey . # # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . get_dirname () { case $1 in */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';; # Otherwise, we want the empty string (not "."). esac } # guard FILE # ---------- # The CPP macro used to guard inclusion of FILE. guard () { printf '%s\n' "$1" \ | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \ -e 's/__*/_/g' } # quote_for_sed [STRING] # ---------------------- # Return STRING (or stdin) quoted to be used as a sed pattern. quote_for_sed () { case $# in 0) cat;; 1) printf '%s\n' "$1";; esac \ | sed -e 's|[][\\.*]|\\&|g' } case "$1" in '') echo "$0: No files given. Try '$0 --help' for more information." 1>&2 exit 1 ;; --basedir) basedir=$2 shift 2 ;; -h|--h*) cat <<\EOF Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]... Wrapper for lex/yacc invocations, renaming files as desired. INPUT is the input file OUTPUT is one file PROG generates DESIRED is the file we actually want instead of OUTPUT PROGRAM is program to run ARGS are passed to PROG Any number of OUTPUT,DESIRED pairs may be used. Report bugs to . EOF exit $? ;; -v|--v*) echo "ylwrap $scriptversion" exit $? ;; esac # The input. input=$1 shift # We'll later need for a correct munging of "#line" directives. input_sub_rx=`get_dirname "$input" | quote_for_sed` case $input in [\\/]* | ?:[\\/]*) # Absolute path; do nothing. ;; *) # Relative path. Make it absolute. input=`pwd`/$input ;; esac input_rx=`get_dirname "$input" | quote_for_sed` # Since DOS filename conventions don't allow two dots, # the DOS version of Bison writes out y_tab.c instead of y.tab.c # and y_tab.h instead of y.tab.h. Test to see if this is the case. y_tab_nodot=false if test -f y_tab.c || test -f y_tab.h; then y_tab_nodot=true fi # The parser itself, the first file, is the destination of the .y.c # rule in the Makefile. parser=$1 # A sed program to s/FROM/TO/g for all the FROM/TO so that, for # instance, we rename #include "y.tab.h" into #include "parse.h" # during the conversion from y.tab.c to parse.c. sed_fix_filenames= # Also rename header guards, as Bison 2.7 for instance uses its header # guard in its implementation file. sed_fix_header_guards= while test $# -ne 0; do if test x"$1" = x"--"; then shift break fi from=$1 # Handle y_tab.c and y_tab.h output by DOS if $y_tab_nodot; then case $from in "y.tab.c") from=y_tab.c;; "y.tab.h") from=y_tab.h;; esac fi shift to=$1 shift sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;" sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;" done # The program to run. prog=$1 shift # Make any relative path in $prog absolute. case $prog in [\\/]* | ?:[\\/]*) ;; *[\\/]*) prog=`pwd`/$prog ;; esac dirname=ylwrap$$ do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 mkdir $dirname || exit 1 cd $dirname case $# in 0) "$prog" "$input" ;; *) "$prog" "$@" "$input" ;; esac ret=$? if test $ret -eq 0; then for from in * do to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"` if test -f "$from"; then # If $2 is an absolute path name, then just use that, # otherwise prepend '../'. case $to in [\\/]* | ?:[\\/]*) target=$to;; *) target=../$to;; esac # Do not overwrite unchanged header files to avoid useless # recompilations. Always update the parser itself: it is the # destination of the .y.c rule in the Makefile. Divert the # output of all other files to a temporary file so we can # compare them to existing versions. if test $from != $parser; then realtarget=$target target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'` fi # Munge "#line" or "#" directives. Don't let the resulting # debug information point at an absolute srcdir. Use the real # output file name, not yy.lex.c for instance. Adjust the # include guards too. sed -e "/^#/!b" \ -e "s|$input_rx|$input_sub_rx|" \ -e "$sed_fix_filenames" \ -e "$sed_fix_header_guards" \ "$from" >"$target" || ret=$? # Check whether files must be updated. if test "$from" != "$parser"; then if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then echo "$to is unchanged" rm -f "$target" else echo "updating $to" mv -f "$target" "$realtarget" fi fi else # A missing file is only an error for the parser. This is a # blatant hack to let us support using "yacc -d". If -d is not # specified, don't fail when the header file is "missing". if test "$from" = "$parser"; then ret=1 fi fi done fi # Remove the directory. cd .. rm -rf $dirname exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mailfilter-0.8.4/README0000644000175000017500000000247512333712134011463 00000000000000Mailfilter README -=-=-=-=-=-=-=-=- Mailfilter is a flexible utility for Unix-like operating systems to get rid of unwanted spam mails, before having to go through the trouble of downloading them into the local computer. It offers support for one or many POP accounts and is especially useful for dialup connections via modem, ISDN, etc. Mailfilter connects to any POP mail box and compares part of its content to a set of user defined filter rules. That way the spam gets deleted directly on the mail server. With Mailfilter you can define your own filters (rules) to determine which e-mails should be delivered and which are considered waste. Rules are regular expressions, so you can make use of familiar options from other mail delivery programs such as e.g. procmail. Mailfilter is released under the GPL with the additional exemption that compiling, linking, and/or using OpenSSL is allowed. For more information, see the COPYING file provided with the Mailfilter program. The latest version of Mailfilter can be obtained from this web page: http://mailfilter.sourceforge.net/ For installation instructions please refer to the INSTALL document and read the platform specific information and the FAQ in the doc/ directory. Further information can be found in the mailfilter(1) man page. Enjoy Mailfilter! mailfilter-0.8.4/configure.ac0000644000175000017500000001004612675277472013106 00000000000000# configure.in: Autoconfigure input file for mailfilter # $Id: configure.ac,v 1.1.2.4.2.12 2007/01/01 15:32:29 baueran Exp $ # # Copyright (c) 2000 - 2009 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a configuration # script generated by Autoconf, you may include it under the same # distribution terms that you use for the rest of that program. # # Process this file with autoconf to produce a configure script. AC_PREREQ(2.54) AC_INIT(mailfilter, 0.8.4, [baueran@gmail.com]) AC_REVISION($Revision: 1.1.2.4.2.12 $) AC_SUBST(PACKAGE_COPYRIGHT) AC_DEFINE(PACKAGE_COPYRIGHT, "Copyright (c) 2000 - 2016 Andreas Bauer ", [Copyright information.]) AC_COPYRIGHT(Copyright (c) 2000 - 2016 Andreas Bauer ) AC_CONFIG_SRCDIR([src/mailfilter.cc]) AC_CONFIG_HEADERS(config.h) AM_INIT_AUTOMAKE AM_MAINTAINER_MODE # Checks for programs. AC_PROG_AWK AC_PROG_CXX AC_PROG_CC AC_ISC_POSIX AC_PROG_MAKE_SET AC_PROG_YACC AC_PROG_LEX # More specifically, check for installed SSL library. AC_ARG_WITH(openssl, [ --with-openssl use OpenSSL (default="yes")]) if test "$with_openssl" != "no" ; then AC_CHECK_LIB(crypto,BIO_new) AC_CHECK_LIB(ssl,SSL_new) AC_DEFINE([USE_SSL],[1], [Is set if SSL encryption via OpenSSL is desired.]) fi # Static or dynamic linking? Look inside m4/ for further information. # PETI_ENABLED_DYNAMIC_LINKING # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h \ wordexp.h \ fcntl.h \ inttypes.h \ libintl.h \ locale.h \ netdb.h \ netinet/in.h \ stdlib.h \ string.h \ sys/socket.h \ sys/time.h \ unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME AC_CHECK_FUNC(getopt_long, [AC_DEFINE(HAVE_GETOPT_H,1, [Define this if there is a system getopt.h header]) AM_CONDITIONAL([GETOPT], true)], [AC_MSG_RESULT(Using included getopt header) AM_CONDITIONAL([GETOPT], false)]) # Checks for (library) functions. AC_FUNC_ERROR_AT_LINE AC_TYPE_SIGNAL AC_CHECK_LIB(socket,connect) AC_CHECK_LIB(nsl,gethostbyname) AC_CHECK_LIB(regex,regcomp) AC_CHECK_FUNCS([alarm \ gethostbyname \ gettimeofday \ memset \ regcomp \ select \ setlocale \ socket \ strcasecmp \ strdup \ snprintf \ strerror]) # Usually this should not be changed. AC_DEFINE(PREVIEW_COMMAND, "TOP %d 0\r\n", [Define different only if you really know what you're doing!]) # File names for mailfilter's preferences AC_DEFINE(RC_FILE_NAME, "/.mailfilterrc", [.mailfilterrc is for Unix users.]) AC_DEFINE(RC_FILE_NAME_WIN, "/_mailfilterrc", [_mailfilterrc is for Windows users.]) AC_DEFINE(HOME_ENV, "HOME", [Most likely your home directory is stored in $HOME.]) AC_CONFIG_FILES([Makefile \ mailfilter.spec \ src/Makefile \ man/Makefile \ doc/Makefile \ contrib/Makefile \ doc/Doxyfile]) AC_OUTPUT cat <. # # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mailfilter-0.8.4/config.h.in0000644000175000017500000001056712675277620012646 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the `alarm' function. */ #undef HAVE_ALARM /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define this if there is a system getopt.h header */ #undef HAVE_GETOPT_H /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `crypto' library (-lcrypto). */ #undef HAVE_LIBCRYPTO /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the `nsl' library (-lnsl). */ #undef HAVE_LIBNSL /* Define to 1 if you have the `regex' library (-lregex). */ #undef HAVE_LIBREGEX /* Define to 1 if you have the `socket' library (-lsocket). */ #undef HAVE_LIBSOCKET /* Define to 1 if you have the `ssl' library (-lssl). */ #undef HAVE_LIBSSL /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the `regcomp' function. */ #undef HAVE_REGCOMP /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_WORDEXP_H /* Most likely your home directory is stored in $HOME. */ #undef HOME_ENV /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Copyright information. */ #undef PACKAGE_COPYRIGHT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define different only if you really know what you're doing! */ #undef PREVIEW_COMMAND /* .mailfilterrc is for Unix users. */ #undef RC_FILE_NAME /* _mailfilterrc is for Windows users. */ #undef RC_FILE_NAME_WIN /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Is set if SSL encryption via OpenSSL is desired. */ #undef USE_SSL /* Version number of package */ #undef VERSION /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #undef YYTEXT_POINTER /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `unsigned int' if does not define. */ #undef size_t mailfilter-0.8.4/install-sh0000755000175000017500000003546312665064002012614 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2014-09-12.12; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) # $RANDOM is not portable (e.g. dash); use it when possible to # lower collision chance tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so # create the $tmpdir first (and fail if unsuccessful) to make sure # that nobody tries to guess the $tmpdir name. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mailfilter-0.8.4/ChangeLog0000644000175000017500000002050412665063644012363 00000000000000Mailfilter ChangeLog -=-=-=-=-=-=-=-=-=-= Mon Feb 29 16:44:08 CET 2016 baueran - src/rcfile.ll: yyin is now a reference. So use different ifstream pointer and pass it on. - src/pop3.cc: FlexLexer::switch_stream no longer has 2nd argument optional, it seems. So pass NULL as second object. Sat May 17 19:21:57 CEST 2014 baueran src/preferences.cc: (Hopefully) fixed Debian Bug #716522: mailfilter crashes with invalid file name in rc file that cannot be expanded properly. Sun May 11 17:11:43 CEST 2014 baueran Fix build problems due to bison not supporting YYPARSE_PARAM anylonger, documented e.g. here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733380 Sat Mar 3 17:40:14 EST 2012 baueran Index: src/socket.cc Index: src/header.cc Ignore time stamps. Index: src/preferences.cc Index: src/preferences.hh Add preferences to ignore time stamps. Index: src/mailfilter.cc Index: src/mailfilter.hh Add Options. Index: configure.ac Change version number. Index: man/mailfilterrc.5 Index: man/mailfilter.1 Index: man/mailfilterex.5 Update man pages. Fri Mar 19 20:03:19 EST 2010 baueran - src/header.cc: fix type incompatibility / compilation problem Sun Jun 7 11:51:11 EST 2009 baueran - src/header.hh: new custom exception, add_entry throws it when pop header is malformed - src/rfc822.yy: pass on exception to main filtering code Sun Jan 18 19:11:38 EST 2009 baueran - src/apop.cc: fix strlen dependency by including cstring - *: update email address and copyright information Sat Sep 15 17:48:33 EST 2007 baueran - src/socket.cc: update licensing to reflect SSL use - README: update licensing to reflect SSL use - TODO: remove 2007-03-12 07:25:35 -0700 (Mon, 12 Mar 2007) baueran - src/Makefile.am: make getopt conditional on GETOPT - configure.ac: add GETOPT conditional to check getopt 2007-03-12 07:31:00 -0700 (Mon, 12 Mar 2007) baueran - man/mailfilter*: reflect recent date 2007-03-03 13:14:15 -0800 (Sat, 03 Mar 2007) baueran - src/mailfilter.cc: add return_val to capture failed attempt to check mailbox for spam - src/socket.cc: syntax change 2007-01-22 14:00:26 -0800 (Mon, 22 Jan 2007) baueran - src/i18n.hh: remove - src/apop.cc, src/preferences.cc, src/rcfile.yy, src/pop3.cc, src/rfc822.yy, src/feedback.cc, src/rcfile.ll, src/header.cc, src/socket.cc, src/account.cc, src/mailfilter.hh, src/weeder.cc, src/Makefile.am, src/mailfilter.cc: remove all references to gettext, replace occurrences of "\n" with endl in the mailfilter output messages Mon Jan 1 14:37:49 CET 2007 Andreas Bauer * configure.ac: remove all m4 and gettext references * Makefile.am: reflect changes Sun Dec 31 21:40:38 CET 2006 Andreas Bauer * configure.ac: update version number and copyright information * src/preferences.*: use singleton design pattern * src/rcfile.yy: reflect changes * src/mailfilter.cc: reflect changes * src/socket.cc: reflect changes * src/feedback.*: use singleton design pattern Fri Jul 8 11:29:20 CEST 2005 Andreas Bauer * src/protocol.hh: add virtual destructor * all file: change date in copyright statement Fri Jul 8 11:29:20 CEST 2005 Alexander Kaganyuk * src/Makefile.am: change $^ to $< Sun Dec 5 10:01:16 CET 2004 Andreas Bauer * src/rcfile.ll, configure.ac: check for presence of wordexp.h Sat Dec 4 22:11:28 MET 2004 Andreas Bauer * src/apop.cc: add include * src/Makefile.am: remove mv long options Sun Nov 21 10:40:39 CET 2004 Kai Hildebrandt Andreas Bauer * src/Makefile.am: fix 'mv-dependencies' in rfc822parser.cc target Sat Nov 20 16:51:58 CET 2004 Andreas Bauer * src/preferences.*: remove prefs namespace and make class static * src/*.cc,*.hh: remove all references to prefs namespace Sun Oct 10 15:11:44 CEST 2004 Andreas Bauer * src/*.cc,*.hh: change const functions to function type const Sat Aug 7 20:21:47 CEST 2004 Andreas Bauer * src/socket.cc: prepare IMAP support * src/apop.cc:login: check for timestamp server message Sat Jun 5 15:22:58 CEST 2004 Hilmar Preusse * NEWS: add information about rcfile changes Sun May 30 16:03:58 CEST 2004 Andreas Bauer * src/apop.cc:login: new * src/socket.cc: added preliminary SSL support using OpenSSL * configure.ac: check for OpenSSL * src/account.cc: fix up error messages * src/preferences.cc: add protocol variant pop3/ssl and apop/ssl Sat Apr 24 19:44:37 CEST 2004 Andreas Bauer * src/weeder.cc:check_maxlength: unignore default value Sat Feb 14 12:13:21 CET 2004 Andreas Bauer * src/weeder.cc:check_duplicates: add check for empty Message-ID Sun Jan 25 13:54:44 CET 2004 Andreas Bauer * src/feedback.cc: print_header: new * man/mailfilterrc.1: reflect changes of SHOW_HEADERS Sat Jan 24 18:20:21 CET 2004 Andreas Bauer * man/Makefile.am: pdf: new target Sun Dec 28 13:20:58 CET 2003 Andreas Bauer * src/mailfilter.cc: fix today_ to store date properly Sat 27 Dec 2003 00:57:26 -0000 Til Schubbe * contrib/selectheader: changed Fri 26 Dec 2003 17:40:29 -0000 Til Schubbe * TODO: changed * contrib/selectheader: new * contrib/FILES: reflect changes Thu Dec 25 15:39:40 CET 2003 Andreas Bauer * src/rcfile.ll: rearranged state precedences * src/preferences.cc: fixed up open() to use its argument Tue Nov 25 21:47:48 CET 2003 Chris Vine * src/rcfile.yy: MAXSIZE_SCORE: new * src/rcfile.ll: MAXSIZE_SCORE: new * src/preferences.cc: set_max_size_score: new * src/preferences.cc: max_size_score: new Mon Nov 24 22:29:25 CET 2003 Andreas Bauer * src/rcfile.yy: RCParser: new class declarations * src/preferences.cc: rcflexer: remove all references * src/rcfile.hh: new file 13 Nov 2003 23:21:40 -0000 Til Schubbe * contrib/chrcformat_05-07: new * contrib/rmcrlf: new * contrib/FILES: updated * contrib/Makefile.am: updated Sun Oct 12 16:43:46 CEST 2003 Andreas Bauer * src/weeder.cc:check_scores: Fixed a bug concerning case sensivity * src/rcfile.ll: Include can handle environment variables now Sat Oct 11 19:36:26 CEST 2003 Andreas Bauer * src/pop3.cc: added delete functionality * src/rcfile.*: extended scanner and parser definitions * src/weeder.cc: added support for normalised subject filtering Thu Oct 9 15:55:34 CEST 2003 Andreas Bauer * src/weeder.cc:check_allow_rules: new * src/weeder.cc:check_deny_rules: new * src/weeder.cc:check_scores: new * src/weeder.cc:check_duplicates: new Mi Okt 8 22:19:22 CEST 2003 Andreas Bauer * src/score.cc: new Tue Oct 7 22:37:34 CEST 2003 Andreas Bauer * src/weeder.cc: is_weed: added support for negative deny rules Sun Oct 5 20:17:18 CEST 2003 Andreas Bauer * src/weeder.cc: is_weed: added support for negative allow rules Sat Oct 4 13:42:14 CEST 2003 Andreas Bauer * src/weeder.hh: new * src/weeder.cc: new * src/Makefile.am: add weeder.* to make targets Mi Aug 13 18:45:02 CEST 2003 Andreas Bauer * src/rcfile.yy: renamed lexer to rclexer * src/rfc822.yy: renamed lexer to rfclexer Sat Jul 26 15:26:22 CEST 2003 Andreas Bauer * src/rfc822.ll: new * src/rfc822.yy: new * src/Makefile.am: rfc_test: new compiler target Wed Jul 23 22:05:28 CEST 2003 Andreas Bauer * src/pop3.cc: status (): new Mon Jul 21 10:16:23 CEST 2003 Andreas Bauer * ChangeLog.1: new * src/account.cc: include header * src/RFC822.cc src/RFC822.hh: remove mailfilter-0.8.4/src/0000755000175000017500000000000012675277621011462 500000000000000mailfilter-0.8.4/src/filter.cc0000644000175000017500000000417012333712134013160 00000000000000// filter.cc - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include extern "C" { #include #include } #include "filter.hh" #include "mailfilter.hh" #include "preferences.hh" using namespace std; Filter :: Filter (void) { compiled = false; } Filter :: ~Filter (void) { if (compiled) regfree (&comp_expr); } string Filter :: expression (void) const { return expr; } void Filter :: set_expression (const char* exp) { expr = exp; } int Filter :: compile (void) { int comp_err; if ((comp_err = regcomp (&comp_expr, expr.c_str (), Preferences :: Instance ().reg_type () | ccase ())) != 0) { try { char* err_buf = new char[regerror (comp_err, &comp_expr, (char*)NULL, (size_t)0) + 1]; regerror (comp_err, &comp_expr, err_buf, sizeof *err_buf); ERROR_MSG(err_buf); delete (err_buf); } catch (...) { throw; } } else compiled = true; return comp_err; } void Filter :: set_negativity (bool t) { negativity = t; } bool Filter :: is_negative (void) const { return negativity; } int Filter :: ccase (void) const { return case_sensitivity; } void Filter :: set_case (int c) { case_sensitivity = c; } const regex_t* Filter :: comp_exp (void) const { return &comp_expr; } mailfilter-0.8.4/src/weeder.cc0000644000175000017500000003321012333712134013143 00000000000000// weeder.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include #include "weeder.hh" #include "header.hh" #include "preferences.hh" #include "mailfilter.hh" #include "feedback.hh" #include "defines.hh" using namespace std; extern string int_to_string (int); // The function takes a pointer to a Header class which contains a // message header. It then determines whether this header is spam, a // duplicate, or "good" mail. It returns 1 if the mail qualifies as // spam, 0 if it should not be deleted, and a negative integer upon // error. int Weeder :: is_weed (Header* the_header) { int status; status = check_duplicates (the_header); if (status == 1) return 1; // Spam. else if (status < 0) return status; // Error. status = check_allow_rules (the_header); if (status == 1) return 1; // Spam. else if (status == 0) return 0; // Friend. else if (status < 0) return status; // Error. status = check_maxlength (the_header); if (status == 1) return 1; // Spam. status = check_deny_rules (the_header); if (status == 1) return 1; // Spam. else if (status < 0) return status; // Error. status = check_scores (the_header); if (status == 1) return 1; // Spam. return 0; // Leave message alone. } // This function returns 1 if the message was considered being a // duplicate, and 0 otherwise. A negative integer is returned upon // error. int Weeder :: check_duplicates (Header* the_header) { Feedback* logger = Feedback :: Instance (); if (!the_header) return GEN_FAILURE_FLAG; // If the mailer didn't attach a valid message-ID, give up scanning // for duplicated messages immediately. if (the_header->ID ()->length() <= 0) return 0; string cur_line; if (Preferences :: Instance ().delete_duplicates ()) { for (vector :: iterator cur_ID = msg_ids.begin (); cur_ID != msg_ids.end (); cur_ID++) if (*(the_header->ID ()) == *cur_ID) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Duplicate].", 2); return 1; } msg_ids.push_back (*(the_header->ID ())); } return 0; } // This function returns 1 if the message was considered being spam, 0 // if it is a friend. A negative integer is returned upon error. int Weeder :: check_allow_rules (Header* the_header) const { Feedback* logger = Feedback :: Instance (); if (!the_header) return GEN_FAILURE_FLAG; string cur_line; for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; for (vector :: iterator cur_allow = Preferences :: Instance ().allow_filters ()->begin (); cur_allow != Preferences :: Instance ().allow_filters ()->end (); cur_allow++) { if (!cur_allow->is_negative () && regexec (cur_allow->comp_exp (), cur_line.c_str (), 0, NULL, 0) == 0) { logger->print_msg ("Allow: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [\"" + cur_allow->expression () + "\" matches \"" + cur_line + "\"].", 4); // OK, friendly message detected. Now check, whether // MAXSIZE_ALLOW applies. if (Preferences :: Instance ().max_size_allow () > 0 && the_header->size () > Preferences :: Instance ().max_size_allow ()) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Maxsize_Allow exceeded].", 2); return 1; } return 0; } } } // Evaluate the negative allow rules which works slightly different // to the above algorithm: instead of going through each line and // each filter, we go through each negative filter and then through // all lines of the header. if (Preferences :: Instance ().neg_allows () > 0) { for (vector :: iterator cur_allow = Preferences :: Instance ().allow_filters ()->begin (); cur_allow != Preferences :: Instance ().allow_filters ()->end (); cur_allow++) { if (cur_allow->is_negative ()) { for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; if (regexec (cur_allow->comp_exp (), cur_line.c_str (), 0, NULL, 0) == 0) break; if (cur_entry + 1 == the_header->entries ()->end ()) { logger->print_msg ("Allow: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Negative allow rule \"" + cur_allow->expression () + "\" did not match].", 4); return 0; } } } } } return 2; } int Weeder :: check_maxlength (Header* the_header) const { Feedback* logger = Feedback :: Instance (); string cur_line; if (Preferences :: Instance ().maxlength () == 0) return 0; for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; if (cur_line.length () > (unsigned int)Preferences :: Instance ().maxlength ()) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [\"" + cur_entry->tag + "\" exceeded maxlength].", 2); return 1; } } return 0; } // This function returns 1 if the message was considered being spam, 0 // otherwise. A negative integer is returned upon error. int Weeder :: check_deny_rules (Header* the_header) const { Feedback* logger = Feedback :: Instance (); if (!the_header) return GEN_FAILURE_FLAG; string cur_line; if (Preferences :: Instance ().max_size_deny () > 0 && the_header->size () > Preferences :: Instance ().max_size_deny ()) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Maxsize_Deny exceeded].", 2); return 1; } for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; for (vector :: iterator cur_deny = Preferences :: Instance ().deny_filters ()->begin (); cur_deny != Preferences :: Instance ().deny_filters ()->end (); cur_deny++) { if (!cur_deny->is_negative () && regexec (cur_deny->comp_exp (), cur_line.c_str (), 0, NULL, 0) == 0) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [\"" + cur_deny->expression () + + "\" matches \"" + cur_line + "\"].", 2); return 1; } // Check normalised subject, if necessary. if (Preferences :: Instance ().normal () && !cur_deny->is_negative () && strcmp (cur_entry->tag.c_str (), "Subject") == 0 && regexec (cur_deny->comp_exp (), (the_header->normal_subject ())->c_str (), 0, NULL, 0) == 0) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [\"" + cur_deny->expression () + + "\" matches \"" + cur_line + "\" (normalised)].", 2); return 1; } } } // Evaluate the negative deny rules in a similar fashion as negative // allow rules (see above, for comments). if (Preferences :: Instance ().neg_denies () > 0) { for (vector :: iterator cur_deny = Preferences :: Instance ().deny_filters ()->begin (); cur_deny != Preferences :: Instance ().deny_filters ()->end (); cur_deny++) { if (cur_deny->is_negative ()) { for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; if (regexec (cur_deny->comp_exp (), cur_line.c_str (), 0, NULL, 0) == 0) break; // Check for normalised subject, if applicable. if (Preferences :: Instance ().normal () && strcmp (cur_entry->tag.c_str (), "Subject") == 0 && regexec (cur_deny->comp_exp (), (the_header->normal_subject ())->c_str (), 0, NULL, 0) == 0) break; if (cur_entry + 1 == the_header->entries ()->end ()) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Negative deny rule \"" + cur_deny->expression () + "\" did not match].", 4); return 1; } } } } } return 0; } // This function returns the score the message achieved. int Weeder :: check_scores (Header* the_header) const { Feedback* logger = Feedback :: Instance (); string cur_line; int msg_score = 0; // First test against the MAXSIZE_SCORE setting if (Preferences :: Instance ().max_size_score().score != 0 && Preferences :: Instance ().max_size_score().size > 0 && the_header->size() > Preferences :: Instance ().max_size_score().size) msg_score = Preferences :: Instance ().max_size_score().score; // Now check ordinary score rules. for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; for (vector :: iterator cur_score = Preferences :: Instance ().score_filters ()->begin (); cur_score != Preferences :: Instance ().score_filters ()->end (); cur_score++) { if (!cur_score->is_negative () // Check ordinary score rules... && ((regexec (cur_score->comp_exp (), cur_line.c_str (), 0, NULL, 0) == 0) || // ...or, if that doesn't match, ... // ...check normalised subject, if applicable. (Preferences :: Instance ().normal () && strcmp (cur_entry->tag.c_str (), "Subject") == 0 && regexec (cur_score->comp_exp (), (the_header->normal_subject ())->c_str (), 0, NULL, 0) == 0))) { msg_score += cur_score->score (); logger->print_msg ("Score: \"" + cur_score->expression () + "\" matches \"" + cur_line + "\" [" + int_to_string (cur_score->score ()) + "].", 5); } } } // Check negative scores now. for (vector :: iterator cur_score = Preferences :: Instance ().score_filters ()->begin (); cur_score != Preferences :: Instance ().score_filters ()->end (); cur_score++) { if (cur_score->is_negative ()) { for (vector :: iterator cur_entry = the_header->entries ()->begin (); cur_entry != the_header->entries ()->end (); cur_entry++) { cur_line = cur_entry->tag + ": " + cur_entry->body; if (regexec (cur_score->comp_exp (), cur_line.c_str (), 0, NULL, 0) == 0) break; // Check normalised subject, if applicable. if (Preferences :: Instance ().normal () && strcmp (cur_entry->tag.c_str (), "Subject") == 0 && regexec (cur_score->comp_exp (), (the_header->normal_subject ())->c_str (), 0, NULL, 0) == 0) break; if (cur_entry + 1 == the_header->entries ()->end ()) { msg_score += cur_score->score (); logger->print_msg ("Score: <> \"" + cur_score->expression () + "\" did not match " + "[" + int_to_string (cur_score->score ()) + "].", 5); } } } } if (msg_score >= Preferences :: Instance ().highscore ()) { logger->print_msg ("Deny: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Score: " + int_to_string (msg_score) + "].", 2); return 1; } logger->print_msg ("Pass: " + *(the_header->from ()) + ": " + *(the_header->subject ()) + ", " + *(the_header->date ()) + " [Score: " + int_to_string (msg_score) + "].", 5); return 0; } mailfilter-0.8.4/src/header.hh0000644000175000017500000000456112333712134013141 00000000000000// header.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef HEADER_HH #define HEADER_HH #include #include #include using namespace std; struct entry { string tag; string body; }; class WrongMessageIDException : public runtime_error { public: WrongMessageIDException () : runtime_error ("POP timestamp in message-ID invalid.") { } }; class Header { private: vector msg_entries; string msg_ID; string msg_from; string msg_to; string msg_subject; string msg_normal_subject; string msg_date; int msg_size; public: vector* entries (void); int rfc822_valid_msgid (const char*); void add_entry (const char*, const char*); const string* ID (void) const; void set_ID (const char*); const string* from (void) const; void set_from (const char*); const string* to (void) const; void set_to (const char*); const string* subject (void) const; void set_subject (const char*); const string* normal_subject (void) const; void set_normal_subject (string); const string* date (void) const; void set_date (const char*); int size (void) const; void set_size (int); }; #endif mailfilter-0.8.4/src/imap.cc0000644000175000017500000000153112333712134012617 00000000000000// imap.cc - source file for the mailfilter program // Copyright (c) 2004 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include "imap.hh" mailfilter-0.8.4/src/rcfile.hh0000644000175000017500000000246012333712201013144 00000000000000// rcfile.hh - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef RCFILE_HH #define RCFILE_HH // This is necessary to use multiple lexer classes. See the flex man // page for further information. #undef yyFlexLexer #define yyFlexLexer rcFlexLexer #include #include using namespace std; // Note: Bodies of the functions are defined inside rcfile.yy. class RCParser { private: istream* isp; ostream* osp; public: RCParser(istream* ip = 0, ostream* = 0); ~RCParser(); void parse(void* = 0); }; #endif mailfilter-0.8.4/src/Makefile.am0000644000175000017500000000736612333712134013432 00000000000000# Makefile.am: help build program sources # $Id: Makefile.am,v 1.9.2.6.2.22 2006/12/31 21:44:18 baueran Exp $ # Copyright (c) 2000 - 2009 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. EXTRA_DIST = rcfile.yy rfc822.yy AM_CXXFLAGS = -Wall YFLAGS = -d -v AM_LFLAGS = -+ -i bin_PROGRAMS = mailfilter # Some dependencies to invoke flex + bison before compilation of # lex output starts: rcfile.cc: rcfile.ll rcparser.hh $(LEX) $(AM_LFLAGS) -Prc -o$@ $< # The final `touch' is necessary to be able to invoke flex/bison more # than once and to not confuse the ../ylwrap script. rcparser.hh: y.tab.c y.tab.c: rcfile.yy $(YACC) -p rc $(YFLAGS) -o$@ $<; \ mv -f y.tab.c rcparser.cc; \ mv -f y.tab.h rcparser.hh; \ $(CXXCOMPILE) -c rcparser.cc; \ touch y.tab.c # Almost the same as above, but this time for the RFC 822 parser: rfc822.cc: rfc822.ll rfc822parser.hh $(LEX) $(AM_LFLAGS) -Prfc -o$@ $< rfc822parser.hh: rfc822parser.cc rfc822parser.cc: rfc822.yy $(YACC) $(YFLAGS) -p rfc -o$@ $<; \ $(CXXCOMPILE) -c rfc822parser.cc; \ touch y.tab.c # This thing is a workaround to avoid compile errors. # We always re-generate the source from the flex/bison input, so it # always matches the installed versions and does not lead to errors. CLEANFILES = rcfile.cc rcparser.hh rcparser.cc y.tab.c ylwrap \ rfc822parser.output rfc822parser.cc rfc822parser.hh \ rfc822.cc y.output nodist_mailfilter_SOURCES = rcfile.cc rcparser.hh y.tab.c rfc822.cc nodist_mailfilter_OBJECTS = y.tab.$(OBJEXT) # Looks like automake still wants to distribute rcfile.cc, even if it # is in nodist_*_sources. dist-hook: rm -f $(distdir)/rcfile.cc \ $(distdir)/rfc822parser.cc \ $(distdir)/rfcparser.cc # If this gets updated, remember to update the doxygen.in config file! mailfilter_SOURCES = md5c.c md5.h \ defines.hh \ rcfile.ll rcfile.hh \ rfc822.ll \ mailfilter.hh mailfilter.cc \ header.hh header.cc \ weeder.hh weeder.cc \ preferences.hh preferences.cc \ feedback.hh feedback.cc \ filter.hh filter.cc \ score.hh score.cc \ account.hh account.cc \ protocol.hh protocol.cc \ connection.hh \ socket.hh socket.cc \ pop3.hh pop3.cc \ apop.hh apop.cc \ imap.hh imap.cc if !GETOPT mailfilter_SOURCES += getopt.c getopt1.c getopt.h endif mailfilter_LDADD = rcparser.o rfc822parser.o INCLUDES = -I$(includedir) \ -I$(srcdir) -I$(top_srcdir)/include -I$(top_srcdir) \ -DLOCALEDIR=\"$(datadir)/locale\" \ -I$(top_srcdir)/intl \ -I$(top_builddir) -I$(top_builddir)/include -I. LIBS = @LEXLIB@ @LIBS@ mailfilter-0.8.4/src/header.cc0000644000175000017500000001233712333712134013127 00000000000000// header.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include #include "header.hh" #include "preferences.hh" #include "mailfilter.hh" #include "defines.hh" #include "feedback.hh" extern "C" { #include } using namespace std; extern int cmp_no_case (const string&, const string&); vector* Header :: entries (void) { return &msg_entries; } // Taken from mutt in response to APOP security vulnerability. /* incomplete. Only used to thwart the APOP MD5 attack (#2846). */ int Header :: rfc822_valid_msgid (const char* msgid) { /* msg-id = "<" addr-spec ">" * addr-spec = local-part "@" domain * local-part = word *("." word) * word = atom / quoted-string * atom = 1* * CHAR = ( 0.-127. ) * specials = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> / "." / "[" / "]" * SPACE = ( 32. ) * CTLS = ( 0.-31., 127.) * quoted-string = <"> *(qtext/quoted-pair) <"> * qtext = , "\" and CR> * CR = ( 13. ) * quoted-pair = "\" CHAR * domain = sub-domain *("." sub-domain) * sub-domain = domain-ref / domain-literal * domain-ref = atom * domain-literal = "[" *(dtext / quoted-pair) "]" */ unsigned int l, i; if (!msgid || !*msgid) return -1; l = strlen (msgid); if (l < 5) /* */ return -1; if (msgid[0] != '<' || msgid[l-1] != '>') return -1; if (!strrchr (msgid, '@')) return -1; /* TODO: complete parser */ for (i = 0; i < l; i++) if (msgid[i] > 127) return -1; return 0; } void Header :: add_entry (const char* tag, const char* body) { struct entry tmp_entry; tmp_entry.tag = tag; tmp_entry.body = body; msg_entries.push_back (tmp_entry); if (cmp_no_case (tag, "Message-Id") == 0) { if (!Preferences :: Instance ().ignore_time_stamp() && rfc822_valid_msgid (body) < 0) { Feedback* logger = Feedback :: Instance (); logger->print_err ("POP timestamp in message-ID invalid."); throw WrongMessageIDException(); } set_ID (body); return; } if (cmp_no_case (tag, "From") == 0) { set_from (body); return; } if (cmp_no_case (tag, "To") == 0) { set_to (body); return; } if (cmp_no_case (tag, "Subject") == 0) { set_subject (body); try { // set_normal_subject may be throwing out of boundary // exceptions. if (Preferences :: Instance ().normal ()) set_normal_subject (body); } catch (const exception& r_err) { ERROR_MSG("Runtime exception occured while parsing rcfile: " + (string)r_err.what ()); exit (-1); } return; } if (cmp_no_case (tag, "Date") == 0) { set_date (body); return; } } const string* Header :: ID (void) const { return &msg_ID; } void Header :: set_ID (const char* tid) { msg_ID = tid; } const string* Header :: from (void) const { return &msg_from; } void Header :: set_from (const char* tfrom) { msg_from = tfrom; } const string* Header :: to (void) const { return &msg_to; } void Header :: set_to (const char* tto) { msg_to = tto; } const string* Header :: subject (void) const { return &msg_subject; } void Header :: set_subject (const char* tsubject) { msg_subject = tsubject; } const string* Header :: normal_subject (void) const { return &msg_normal_subject; } void Header :: set_normal_subject (string ssubject) { try { unsigned int i = 0; while (i < ssubject.length ()) { // Delete multiple spaces. while (isspace (ssubject[i]) && isspace (ssubject[i+1]) && i < ssubject.length ()) ssubject.erase (i, 1); // Delete all non-alphanumeric characters, except spaces and '@'. if (!isalpha (ssubject[i]) && !isspace (ssubject[i]) && ssubject[i] != '@' && !isdigit (ssubject[i])) { ssubject.erase (i, 1); i -= (i > 0 ? 1 : 0); } else i++; } msg_normal_subject = "Subject: " + ssubject; } catch (...) { // Out-of-Range-Exception could be thrown. throw; } } const string* Header :: date (void) const { return &msg_date; } void Header :: set_date (const char* tdate) { msg_date = tdate; } int Header :: size (void) const { return msg_size; } void Header :: set_size (int tsize) { msg_size = tsize; } mailfilter-0.8.4/src/pop3.cc0000644000175000017500000001541312665054566012576 00000000000000// pop3.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include #include "socket.hh" #include "pop3.hh" #include "feedback.hh" #include "preferences.hh" #include "mailfilter.hh" #include "header.hh" #include "weeder.hh" #include "defines.hh" #include "protocol.hh" #include "rfc822parser.hh" // This is necessary to use multiple lexer classes. See the flex man // page for further information. #undef yyFlexLexer #define yyFlexLexer rfcFlexLexer #include extern "C" { int rfcparse (void*); } using namespace std; // Declare lexer globally, so the parser can find it. FlexLexer* rfclexer; extern Weeder weeder; bool POP3 :: login (const char* usr, const char* pass, const unsigned int enc) const { string usr_name = (string)"USER " + usr + (string)"\r\n"; string pass_wd = (string)"PASS " + pass + (string)"\r\n"; if (conn->c_read () == -1) return false; Feedback* logger = Feedback :: Instance (); // Send user name and read server reply. if (conn->c_write (usr_name.c_str ()) == -1 || !REPLY_OK) { logger->print_err("Error occured while sending username to server."); return false; } // Send password and read server reply. if (conn->c_write (pass_wd.c_str ()) == -1 || !REPLY_OK) { logger->print_err("Error occured while sending password to server."); return false; } return true; } int POP3 :: status (void) const { // Send user name and read server reply. if (conn->c_write ("STAT\r\n") == -1) return GEN_FAILURE_FLAG; if (!REPLY_OK) return GEN_FAILURE_FLAG; istringstream response (conn->c_reply ()->c_str ()); string no_msgs; // The second word in the server's output string contains the number // of unread messages in a POP3 mailbox. Hence we shift the reply // string twice. for (int i = 1; i <= 2; i++) response >> no_msgs; return atoi (no_msgs.c_str ()); } // The function scans the headers inside a POP3 account for spam. It // will delete all spam messages in the account and return 0 when all // the hard work is done. A negative integer is returned if an error // occured. int POP3 :: scan (void) const { Feedback* logger = Feedback :: Instance (); Header* msg_header; int num_messages; stringstream msg_no; string cmd; // Determine number of messages waiting to be examined. if ((num_messages = status ()) < 0) { logger->print_err ("Error occured while sending STAT to server."); return GEN_FAILURE_FLAG; } try { for (int i = 1; i <= num_messages; i++) { // Reserve heap for the message to be stored, parsed, and // processed. msg_header = new Header; // Convert current message number to string. msg_no << i; // Determine message size. cmd = "LIST " + msg_no.str () + "\r\n"; if (conn->c_write (cmd.c_str ()) == -1 || !REPLY_OK) { logger->print_err ("Error occured while sending LIST to server."); return GEN_FAILURE_FLAG; } msg_header->set_size (atoi ((conn->c_reply ()-> substr (conn->c_reply ()-> find_last_of (" ") + 1)).c_str ())); // Read the header of the current message. cmd = "TOP " + msg_no.str () + " 0\r\n"; if (conn->c_write (cmd.c_str ()) == -1 || !HEADER_OK) { logger->print_err ("Error occured while sending TOP to server."); return GEN_FAILURE_FLAG; } // Store the header in a separate file, if the user has given // a path definition via SHOW_HEADERS. if (Preferences :: Instance ().headers_file ().length ()) if (!logger->print_header (conn->c_reply ()->c_str ())) logger->print_err ("Could not write headers to separate file."); // Strip topmost status line of server reply, e.g. "+OK Message // follows." The +1 in the end is necessary to skip the actual // first newline itself. string message = conn->c_reply ()->substr (conn->c_reply ()->find_first_of ("\n") + 1); // Now parse the header of the current message and store it in // the msg_header object. if (invoke_msg_parser (&message, msg_header) < 0) { logger->print_err ("Parsing the header of message " + msg_no.str () + " failed."); return GEN_FAILURE_FLAG; } // Now pass msg_header on to the weeder in order to determine // whether it stores a spam mail. if (weeder.is_weed (msg_header) == 1) remove_msg (i); // Delete memory occupied by the current message header. delete msg_header; // Reset stringstream for next int to string conversion. msg_no.clear (); msg_no.str (string ()); } } catch (...) { throw; } return 0; } // This function accepts a string pointer as argument which contains // the entire header of an email message. It is used to parse that // header and store it in a Header-class, msg_header, in order to // determine whether that particular message qualifies as Spam. The // function returns a positive integer upon success, and a negative // one otherwise. Failure is usually related to out-of-memory errors. int POP3 :: invoke_msg_parser (const string* header, const Header* msg_header) const { if (header && msg_header) { try { stringstream cur_header; cur_header << *header; rfclexer = new rfcFlexLexer; rfclexer->switch_streams (&cur_header, NULL); int error = rfcparse ((void*) msg_header); delete rfclexer; return error; } catch (...) { return MEM_FAILURE_FLAG; } } else return GEN_FAILURE_FLAG; } bool POP3 :: logout (void) const { return (conn->c_write ("QUIT\r\n") == -1) ? false : true; } int POP3 :: remove_msg (const unsigned int num) const { if (Preferences :: Instance ().test_mode ()) { Feedback* logger = Feedback :: Instance (); logger->print_msg ("Debugging: Simulating DELE command.", 6); return 0; } ostringstream ostr; ostr << num; string cmd = (string)"DELE " + ostr.str () + (string)"\r\n"; return (conn->c_write (cmd.c_str ()) == -1) ? GEN_FAILURE_FLAG : 0; } mailfilter-0.8.4/src/imap.hh0000644000175000017500000000402212333712134012627 00000000000000// imap.hh - source file for the mailfilter program // Copyright (c) 2004 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef IMAP_HH #define IMAP_HH #include "header.hh" #include "protocol.hh" using namespace std; // True, if the server replied and its status message was anything, // but an error. #define REPLY_OK ((conn->c_read () > 0 && conn->c_reply ()) ? \ (((conn->c_reply ()->find_first_of ("a OK", 0))) ? true : false) \ : false) // This macro is similar to REPLY_OK, except it sets a flag for c_read // in order to tell the function that an entire message header is // about to be received. Further comments inside socket.cc:c_read(). #define HEADER_OK ((conn->c_read (true) > 0 && conn->c_reply ())? \ (((conn->c_reply ()->find_first_of ("a OK", 0))) ? true : false) \ : false) class IMAP : public Protocol { private: int invoke_msg_parser (const string*, const Header*); public: bool login (const char* usr, const char* pass, const unsigned int enc); bool logout (void); int remove_msg (unsigned int num); int status (void); int scan (void); }; #endif mailfilter-0.8.4/src/md5c.c0000644000175000017500000002423412333712134012363 00000000000000/* MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm */ /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing this software or this function. License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work. RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind. These notices must be retained in any copies of any part of this documentation and/or software. */ #include "md5.h" /* Constants for MD5Transform routine. */ #define S11 7 #define S12 12 #define S13 17 #define S14 22 #define S21 5 #define S22 9 #define S23 14 #define S24 20 #define S31 4 #define S32 11 #define S33 16 #define S34 23 #define S41 6 #define S42 10 #define S43 15 #define S44 21 static void MD5Transform (uint32_t [4], unsigned char [64]); static void Encode (unsigned char *, uint32_t *, unsigned int); static void Decode (uint32_t *, unsigned char *, unsigned int); static void MD5_memcpy (POINTER, POINTER, unsigned int); static void MD5_memset (POINTER, int, unsigned int); static unsigned char PADDING[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* F, G, H and I are basic MD5 functions. */ #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) #define H(x, y, z) ((x) ^ (y) ^ (z)) #define I(x, y, z) ((y) ^ ((x) | (~z))) /* ROTATE_LEFT rotates x left n bits. */ #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) /* FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4. Rotation is separate from addition to prevent recomputation. */ #define FF(a, b, c, d, x, s, ac) { \ (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } #define GG(a, b, c, d, x, s, ac) { \ (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } #define HH(a, b, c, d, x, s, ac) { \ (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } #define II(a, b, c, d, x, s, ac) { \ (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } /* MD5 initialization. Begins an MD5 operation, writing a new context. */ void MD5Init (context) MD5_CTX *context; /* context */ { context->count[0] = context->count[1] = 0; /* Load magic initialization constants. */ context->state[0] = 0x67452301; context->state[1] = 0xefcdab89; context->state[2] = 0x98badcfe; context->state[3] = 0x10325476; } /* MD5 block update operation. Continues an MD5 message-digest operation, processing another message block, and updating the context. */ void MD5Update (context, input, inputLen) MD5_CTX *context; /* context */ unsigned char *input; /* input block */ unsigned int inputLen; /* length of input block */ { unsigned int i, index, partLen; /* Compute number of bytes mod 64 */ index = (unsigned int)((context->count[0] >> 3) & 0x3F); /* Update number of bits */ if ((context->count[0] += ((uint32_t)inputLen << 3)) < ((uint32_t)inputLen << 3)) context->count[1]++; context->count[1] += ((uint32_t)inputLen >> 29); partLen = 64 - index; /* Transform as many times as possible. */ if (inputLen >= partLen) { MD5_memcpy ((POINTER)&context->buffer[index], (POINTER)input, partLen); MD5Transform (context->state, context->buffer); for (i = partLen; i + 63 < inputLen; i += 64) MD5Transform (context->state, &input[i]); index = 0; } else i = 0; /* Buffer remaining input */ MD5_memcpy ((POINTER)&context->buffer[index], (POINTER)&input[i], inputLen-i); } /* MD5 finalization. Ends an MD5 message-digest operation, writing the the message digest and zeroizing the context. */ void MD5Final (digest, context) unsigned char digest[16]; /* message digest */ MD5_CTX *context; /* context */ { unsigned char bits[8]; unsigned int index, padLen; /* Save number of bits */ Encode (bits, context->count, 8); /* Pad out to 56 mod 64. */ index = (unsigned int)((context->count[0] >> 3) & 0x3f); padLen = (index < 56) ? (56 - index) : (120 - index); MD5Update (context, PADDING, padLen); /* Append length (before padding) */ MD5Update (context, bits, 8); /* Store state in digest */ Encode (digest, context->state, 16); /* Zeroize sensitive information. */ MD5_memset ((POINTER)context, 0, sizeof (*context)); } /* MD5 basic transformation. Transforms state based on block. */ static void MD5Transform (state, block) uint32_t state[4]; unsigned char block[64]; { uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16]; Decode (x, block, 64); /* Round 1 */ FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */ FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */ FF (c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */ FF (b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */ FF (a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */ FF (d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */ FF (c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */ FF (b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */ FF (a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */ FF (d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */ FF (c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */ FF (b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */ FF (a, b, c, d, x[12], S11, 0x6b901122); /* 13 */ FF (d, a, b, c, x[13], S12, 0xfd987193); /* 14 */ FF (c, d, a, b, x[14], S13, 0xa679438e); /* 15 */ FF (b, c, d, a, x[15], S14, 0x49b40821); /* 16 */ /* Round 2 */ GG (a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */ GG (d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */ GG (c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */ GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */ GG (a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */ GG (d, a, b, c, x[10], S22, 0x2441453); /* 22 */ GG (c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */ GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */ GG (a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */ GG (d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */ GG (c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */ GG (b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */ GG (a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */ GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */ GG (c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */ GG (b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */ /* Round 3 */ HH (a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */ HH (d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */ HH (c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */ HH (b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */ HH (a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */ HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */ HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */ HH (b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */ HH (a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */ HH (d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */ HH (c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */ HH (b, c, d, a, x[ 6], S34, 0x4881d05); /* 44 */ HH (a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */ HH (d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */ HH (c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */ HH (b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */ /* Round 4 */ II (a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */ II (d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */ II (c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */ II (b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */ II (a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */ II (d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */ II (c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */ II (b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */ II (a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */ II (d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */ II (c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */ II (b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */ II (a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */ II (d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */ II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */ II (b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; /* Zeroize sensitive information. */ MD5_memset ((POINTER)x, 0, sizeof (x)); } /* Encodes input (uint32_t) into output (unsigned char). Assumes len is a multiple of 4. */ static void Encode (output, input, len) unsigned char *output; uint32_t *input; unsigned int len; { unsigned int i, j; for (i = 0, j = 0; j < len; i++, j += 4) { output[j] = (unsigned char)(input[i] & 0xff); output[j+1] = (unsigned char)((input[i] >> 8) & 0xff); output[j+2] = (unsigned char)((input[i] >> 16) & 0xff); output[j+3] = (unsigned char)((input[i] >> 24) & 0xff); } } /* Decodes input (unsigned char) into output (uint32_t). Assumes len is a multiple of 4. */ static void Decode (output, input, len) uint32_t *output; unsigned char *input; unsigned int len; { unsigned int i, j; for (i = 0, j = 0; j < len; i++, j += 4) output[i] = ((uint32_t)input[j]) | (((uint32_t)input[j+1]) << 8) | (((uint32_t)input[j+2]) << 16) | (((uint32_t)input[j+3]) << 24); } /* Note: Replace "for loop" with standard memcpy if possible. */ static void MD5_memcpy (output, input, len) POINTER output; POINTER input; unsigned int len; { unsigned int i; for (i = 0; i < len; i++) output[i] = input[i]; } /* Note: Replace "for loop" with standard memset if possible. */ static void MD5_memset (output, value, len) POINTER output; int value; unsigned int len; { unsigned int i; for (i = 0; i < len; i++) ((char *)output)[i] = (char)value; } mailfilter-0.8.4/src/Makefile.in0000644000175000017500000006045712675277603013463 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Makefile.am: help build program sources # $Id: Makefile.am,v 1.9.2.6.2.22 2006/12/31 21:44:18 baueran Exp $ # Copyright (c) 2000 - 2009 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = mailfilter$(EXEEXT) @GETOPT_FALSE@am__append_1 = getopt.c getopt1.c getopt.h subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__mailfilter_SOURCES_DIST = md5c.c md5.h defines.hh rcfile.ll \ rcfile.hh rfc822.ll mailfilter.hh mailfilter.cc header.hh \ header.cc weeder.hh weeder.cc preferences.hh preferences.cc \ feedback.hh feedback.cc filter.hh filter.cc score.hh score.cc \ account.hh account.cc protocol.hh protocol.cc connection.hh \ socket.hh socket.cc pop3.hh pop3.cc apop.hh apop.cc imap.hh \ imap.cc getopt.c getopt1.c getopt.h @GETOPT_FALSE@am__objects_1 = getopt.$(OBJEXT) getopt1.$(OBJEXT) am_mailfilter_OBJECTS = md5c.$(OBJEXT) rcfile.$(OBJEXT) \ rfc822.$(OBJEXT) mailfilter.$(OBJEXT) header.$(OBJEXT) \ weeder.$(OBJEXT) preferences.$(OBJEXT) feedback.$(OBJEXT) \ filter.$(OBJEXT) score.$(OBJEXT) account.$(OBJEXT) \ protocol.$(OBJEXT) socket.$(OBJEXT) pop3.$(OBJEXT) \ apop.$(OBJEXT) imap.$(OBJEXT) $(am__objects_1) mailfilter_OBJECTS = $(am_mailfilter_OBJECTS) \ $(nodist_mailfilter_OBJECTS) mailfilter_DEPENDENCIES = rcparser.o rfc822parser.o AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ || LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) AM_V_LEX = $(am__v_LEX_@AM_V@) am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@) am__v_LEX_0 = @echo " LEX " $@; am__v_LEX_1 = YLWRAP = $(top_srcdir)/ylwrap SOURCES = $(mailfilter_SOURCES) $(nodist_mailfilter_SOURCES) DIST_SOURCES = $(am__mailfilter_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \ $(top_srcdir)/ylwrap rcfile.cc rfc822.cc DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LEXLIB@ @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_COPYRIGHT = @PACKAGE_COPYRIGHT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ YACC = @YACC@ YFLAGS = -d -v abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = rcfile.yy rfc822.yy AM_CXXFLAGS = -Wall AM_LFLAGS = -+ -i # This thing is a workaround to avoid compile errors. # We always re-generate the source from the flex/bison input, so it # always matches the installed versions and does not lead to errors. CLEANFILES = rcfile.cc rcparser.hh rcparser.cc y.tab.c ylwrap \ rfc822parser.output rfc822parser.cc rfc822parser.hh \ rfc822.cc y.output nodist_mailfilter_SOURCES = rcfile.cc rcparser.hh y.tab.c rfc822.cc nodist_mailfilter_OBJECTS = y.tab.$(OBJEXT) # If this gets updated, remember to update the doxygen.in config file! mailfilter_SOURCES = md5c.c md5.h defines.hh rcfile.ll rcfile.hh \ rfc822.ll mailfilter.hh mailfilter.cc header.hh header.cc \ weeder.hh weeder.cc preferences.hh preferences.cc feedback.hh \ feedback.cc filter.hh filter.cc score.hh score.cc account.hh \ account.cc protocol.hh protocol.cc connection.hh socket.hh \ socket.cc pop3.hh pop3.cc apop.hh apop.cc imap.hh imap.cc \ $(am__append_1) mailfilter_LDADD = rcparser.o rfc822parser.o INCLUDES = -I$(includedir) \ -I$(srcdir) -I$(top_srcdir)/include -I$(top_srcdir) \ -DLOCALEDIR=\"$(datadir)/locale\" \ -I$(top_srcdir)/intl \ -I$(top_builddir) -I$(top_builddir)/include -I. all: all-am .SUFFIXES: .SUFFIXES: .c .cc .ll .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) mailfilter$(EXEEXT): $(mailfilter_OBJECTS) $(mailfilter_DEPENDENCIES) $(EXTRA_mailfilter_DEPENDENCIES) @rm -f mailfilter$(EXEEXT) $(AM_V_CXXLD)$(CXXLINK) $(mailfilter_OBJECTS) $(mailfilter_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/account.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/feedback.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/header.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mailfilter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5c.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pop3.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/preferences.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/protocol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rcfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc822.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/score.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/socket.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/weeder.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/y.tab.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .ll.cc: $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -rm -f rcfile.cc -rm -f rfc822.cc clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ dist-hook distclean distclean-compile distclean-generic \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS .PRECIOUS: Makefile # Some dependencies to invoke flex + bison before compilation of # lex output starts: rcfile.cc: rcfile.ll rcparser.hh $(LEX) $(AM_LFLAGS) -Prc -o$@ $< # The final `touch' is necessary to be able to invoke flex/bison more # than once and to not confuse the ../ylwrap script. rcparser.hh: y.tab.c y.tab.c: rcfile.yy $(YACC) -p rc $(YFLAGS) -o$@ $<; \ mv -f y.tab.c rcparser.cc; \ mv -f y.tab.h rcparser.hh; \ $(CXXCOMPILE) -c rcparser.cc; \ touch y.tab.c # Almost the same as above, but this time for the RFC 822 parser: rfc822.cc: rfc822.ll rfc822parser.hh $(LEX) $(AM_LFLAGS) -Prfc -o$@ $< rfc822parser.hh: rfc822parser.cc rfc822parser.cc: rfc822.yy $(YACC) $(YFLAGS) -p rfc -o$@ $<; \ $(CXXCOMPILE) -c rfc822parser.cc; \ touch y.tab.c # Looks like automake still wants to distribute rcfile.cc, even if it # is in nodist_*_sources. dist-hook: rm -f $(distdir)/rcfile.cc \ $(distdir)/rfc822parser.cc \ $(distdir)/rfcparser.cc # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mailfilter-0.8.4/src/feedback.cc0000644000175000017500000000551212335713314013423 00000000000000// feedback.cc - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include #include "feedback.hh" #include "preferences.hh" using namespace std; Feedback* Feedback :: _instance = 0; Feedback* Feedback :: Instance () { if (_instance == 0) _instance = new Feedback; return _instance; } Feedback :: ~Feedback () { log_file.close (); if (header_file.is_open ()) header_file.close (); } // This function tries to open a user specified log file for write // access and returns true upon success, false otherwise. bool Feedback :: open (const char* name) { if (strlen (name)) { log_file.open (name, ios :: app); if (!log_file.is_open ()) return false; return true; } return false; } // The following two functions attempt to append program messages to // the end of the log file and returns false, if the file is not // accessable. True is returned otherwise. // // min_verbose_level is the minimum value of verbosity that is // necessary, in order to display a message. If nothing is // specified, errors are usually always shown (0). bool Feedback :: print_msg (const string msg, int min_verbose_level) { if (Preferences :: Instance ().verbose_level () >= min_verbose_level) { cout << "mailfilter: " << msg << endl; if (log_file.is_open ()) log_file << "mailfilter: " << msg << endl; else return false; } return true; } bool Feedback :: print_err (const string msg, int min_verbose_level) { if (Preferences :: Instance ().verbose_level () >= min_verbose_level) { cerr << "mailfilter: Error: " << msg << endl; if (log_file.is_open ()) log_file << "mailfilter: Error: " << msg << endl; else return false; } return true; } bool Feedback :: print_header (const string msg) { if (!header_file.is_open ()) header_file.open (Preferences :: Instance ().headers_file ().c_str (), ios :: app); if (header_file.is_open ()) { header_file << msg << endl; return true; } return false; } mailfilter-0.8.4/src/filter.hh0000644000175000017500000000344212333712134013173 00000000000000// filter.hh - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef FILTER_HH #define FILTER_HH #include extern "C" { #include #include } // Filter modes #define CASE_DEFAULT REG_ICASE #define CASE_SENSITIVE 0 #define CASE_INSENSITIVE REG_ICASE using namespace std; class Filter { private: string expr; regex_t comp_expr; regex_t comp_normal_expr; // Values can be CASE_SENSITIVE, CASE_INSENSITIVE, or CASE_DEFAULT: int case_sensitivity; bool negativity; bool compiled; public: Filter (void); ~Filter (void); string expression (void) const; void set_expression (const char*); int compile (void); void set_negativity (bool); bool is_negative (void) const; int ccase (void) const; void set_case (int); const regex_t* comp_exp (void) const; }; #endif mailfilter-0.8.4/src/connection.hh0000644000175000017500000000275412333712134014052 00000000000000// connection.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef CONNECTION_HH #define CONNECTION_HH #include // Right now this class is only a dummy, but later it can be useful to // derive, e.g. a Windoze Socks connection class from it. using namespace std; class Connection { public: virtual ~Connection (void) { } virtual int c_open (const char* host_name, int port, int time_out, int protocol) = 0; virtual int c_close (void) const = 0; virtual int c_read (bool = false) = 0; virtual int c_write (const char* msg) = 0; virtual const string* c_reply (void) const = 0; }; #endif mailfilter-0.8.4/src/rcfile.ll0000644000175000017500000002552612675277423013211 00000000000000/* *********************************************************************** */ /* A scanner definition for Mailfilter's config files */ /* Copyright (c) 2000 - 2009 Andreas Bauer */ /* */ /* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, */ /* USA. */ /* *********************************************************************** */ /* The states are numbered from 1...n and are stored in YY_START. */ %s CTRL %x INCL %x PARAM %s PARAM_NUM %s PARAM_BOOL %option noyywrap %{ #include #include #include #include #include #include #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "rcparser.hh" extern "C" { #include } using namespace std; /* Only allow 'recursion depth' of 1 when including files. */ #define MAX_INCLUDE_DEPTH 1 /* Define L_DEBUG_MODE to get extra output from the scanner. */ #ifdef L_DEBUG_MODE #undef L_DEBUG_MSG #define L_DEBUG_MSG(msg) \ cout << "Lexer: " \ << msg \ << endl #else #define L_DEBUG_MSG(msg) \ ; #endif YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH]; int include_stack_ptr; extern string expand_path (const string&); extern string int_to_string (int val); %} ALLOW allow ALLOW_CASE allow_case ALLOW_NOCASE allow_nocase DEL_DUPLICATES del_duplicates DENY_NOCASE deny_nocase DENY_CASE deny_case DENY deny HIGHSCORE highscore INCLUDE include[ \t]*= LOGFILE logfile MAXLENGTH maxlength MAXSIZE_ALLOW maxsize_allow MAXSIZE_DENY maxsize_deny MAXSIZE_SCORE maxsize_score NORMAL normal REG_CASE reg_case REG_TYPE reg_type SERVER server USER user PASS pass PROTOCOL protocol PORT port SHOW_HEADERS show_headers SCORE score SCORE_CASE score_case SCORE_NOCASE score_nocase TEST test TIMEOUT timeout VERBOSE verbose REM ^[[:blank:]]*#.* NOT_EQUAL <> EXP \"([[:graph:]]+)|([[:graph:]]+.*[[:graph:]]+)\" TEXT_ID [[:alnum:]]+ YES_NO_ID (yes|no) SHELL_CMD \`([[:graph:]]|[[:blank:]])+\' ENV_VAR [\$]([[:alnum:]]|_)+ NUM_ID (\+|\-|[0-9])[0-9]* CTRL_CHAR . int num_lines = 0; int temp_num_lines = 0; string sub_file; %% {INCLUDE} { BEGIN(INCL); temp_num_lines = num_lines; num_lines = 0; } [ \t]* {; /* Eat the whitespace. */ } [^ \t\n]+ { /* Include further rcfiles: */ wordexp_t result; if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { cerr << PACKAGE_NAME << ": Error: Files nested too deep." << endl; exit (-1); } include_stack[include_stack_ptr++] = YY_CURRENT_BUFFER; try { if (wordexp (yytext, &result, 0) == 0) { sub_file = result.we_wordv[0]; wordfree (&result); } else { cerr << PACKAGE_NAME << ": Error: Nested rcfile '"; cerr << yytext << "' could not be found." << endl; exit (-1); } // yyin is now a std::istream& it seems. So the following no longer works: // yyin = new ifstream (sub_file.c_str ()); std::ifstream* infile = new ifstream (sub_file.c_str ()); // if (!((std::ifstream*) yyin)->is_open ()) if (!infile->is_open ()) { cerr << PACKAGE_NAME << ": Error: Nested rcfile '"; cerr << sub_file << "' could not be opened." << endl; exit (-1); } yy_switch_to_buffer (yy_create_buffer (infile, YY_BUF_SIZE)); // yy_switch_to_buffer (yy_create_buffer (yyin, YY_BUF_SIZE)); } catch (...) { cerr << PACKAGE_NAME << ": Error: Exception was thrown when " << "trying to read '" << yytext << "'." << endl; exit (-1); } BEGIN(INITIAL); } <> { if (--include_stack_ptr < 0) yyterminate (); else { yy_delete_buffer (YY_CURRENT_BUFFER); yy_switch_to_buffer (include_stack[include_stack_ptr]); } num_lines = temp_num_lines; sub_file = ""; } {REM} {; /* Do nothing with remarks. */ } {ALLOW} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Allow."); return ALLOW; } {ALLOW_CASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Allow_Case."); return ALLOW_CASE; } {ALLOW_NOCASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Allow_Nocase."); return ALLOW_NOCASE; } {DEL_DUPLICATES} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Del_Duplicates."); BEGIN(PARAM_BOOL); return DEL_DUPLICATES; } {DENY} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Deny."); return DENY; } {DENY_CASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Deny_Case."); return DENY_CASE; } {DENY_NOCASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Deny_Nocase."); return DENY_NOCASE; } {HIGHSCORE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Highscore."); BEGIN(PARAM_NUM); return HIGHSCORE; } {LOGFILE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Logfile."); return LOGFILE; } {MAXLENGTH} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Maxlength."); BEGIN(PARAM_NUM); return MAXLENGTH; } {MAXSIZE_ALLOW} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Maxsize_Allow."); BEGIN(PARAM_NUM); return MAXSIZE_ALLOW; } {MAXSIZE_DENY} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Maxsize_Deny."); BEGIN(PARAM_NUM); return MAXSIZE_DENY; } {MAXSIZE_SCORE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Maxsize_Score."); BEGIN(PARAM_NUM); return MAXSIZE_SCORE; } {NORMAL} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Normal."); BEGIN(PARAM_BOOL); return NORMAL; } {SERVER} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Server."); return SERVER; } {USER} { rclval.sval = strdup (yytext); L_DEBUG_MSG("User."); return USER; } {PASS} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Pass."); return PASS; } {PROTOCOL} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Protocol."); return PROTOCOL; } {PORT} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Port."); BEGIN(PARAM_NUM); return PORT; } {REG_CASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Reg_Case."); BEGIN(PARAM_BOOL); return REG_CASE; } {REG_TYPE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Reg_Type."); return REG_TYPE; } {SHOW_HEADERS} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Show_Headers."); return SHOW_HEADERS; } {SCORE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Score."); BEGIN(PARAM_NUM); return SCORE; } {SCORE_CASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Score_Case."); BEGIN(PARAM_NUM); return SCORE_CASE; } {SCORE_NOCASE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Score_Nocase."); BEGIN(PARAM_NUM); return SCORE_NOCASE; } {TEST} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Test."); BEGIN(PARAM_BOOL); return TEST; } {TIMEOUT} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Timeout."); BEGIN(PARAM_NUM); return TIMEOUT; } {VERBOSE} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Verbose."); BEGIN(PARAM_NUM); return VERBOSE; } "=" { rclval.sval = strdup (yytext); L_DEBUG_MSG((string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return '='; } "<>" { rclval.sval = strdup (yytext); L_DEBUG_MSG((string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return NOT_EQUAL; } "\"" { /* Beginning of an argument: */ rclval.sval = strdup (yytext); if (YY_START != PARAM_BOOL) BEGIN(PARAM); L_DEBUG_MSG((string)"Opening \"" + " (" + int_to_string (YY_START) + ")"); return '"'; } {NUM_ID} { rclval.ival = atoi (yytext); L_DEBUG_MSG("Num_Id: " + (string)yytext + " (" + int_to_string (YY_START) + ")"); return NUM_ID; } {SHELL_CMD} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Shell_Cmd: " + (string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return SHELL_CMD; } {ENV_VAR} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Env_Var: " + (string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return ENV_VAR; } {YES_NO_ID} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Yes_No_Id: " + (string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return YES_NO_ID; } {TEXT_ID} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Text_Id: " + (string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return TEXT_ID; } \"[[:blank:]]*$ { /* Ending of an argument: */ rclval.sval = strdup (yytext); L_DEBUG_MSG((string)"Closing \"" + " (" + int_to_string (YY_START) + ")"); return '"'; } {CTRL_CHAR} { rclval.sval = strdup (yytext); L_DEBUG_MSG("Ctrl_Char: " + (string)rclval.sval + " (" + int_to_string (YY_START) + ")"); return CTRL_CHAR; } <*>[ \t] {; /* Do nothing with tabs and spaces. */ } <*>"\n" { ++num_lines; BEGIN(0); } <*>. { if (sub_file != "") { cerr << PACKAGE_NAME << ": Error: Lexicographical error in line "; cerr << (num_lines + 1) << " of your rcfile '" << sub_file; cerr << "'." << endl; } else { cerr << PACKAGE_NAME << ": Error: Lexicographical error in line "; cerr << (num_lines + 1) << " of your main rcfile." << endl; } cerr << PACKAGE_NAME << ": The term '" << yytext; cerr << "' could not be interpreted." << endl; exit (-1); } %% mailfilter-0.8.4/src/md5.h0000644000175000017500000000326712333712134012230 00000000000000/* MD5.H - header file for MD5C.C */ /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing this software or this function. License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work. RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind. These notices must be retained in any copies of any part of this documentation and/or software. */ #ifndef MD5_H #define MD5_H 1 #include #include /* POINTER defines a generic pointer type */ typedef unsigned char *POINTER; #ifndef HAVE_UINT32_T # if SIZEOF_INT == 4 typedef unsigned int uint32_t; # elif SIZEOF_LONG == 4 typedef unsigned long int uint32_t; # endif #endif /* MD5 context. */ typedef struct { uint32_t state[4]; /* state (ABCD) */ uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ unsigned char buffer[64]; /* input buffer */ } MD5_CTX; void MD5Init (MD5_CTX *); void MD5Update (MD5_CTX *, unsigned char *, unsigned int); void MD5Final (unsigned char [16], MD5_CTX *); /* added to define the conversion wrapper */ void gethash (char [33], char *, char *); #endif mailfilter-0.8.4/src/score.hh0000644000175000017500000000210612333712134013015 00000000000000// score.hh - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef SCORE_HH #define SCORE_HH #include "filter.hh" class Score; class Size_score { public: int score; int size; }; class Score : public Filter { protected: int scr; public: int score (void) const; void set_score (int); }; #endif mailfilter-0.8.4/src/rfc822.yy0000644000175000017500000000672412333712201012757 00000000000000/* *********************************************************************** */ /* A parser definition for Mailfilter's RFC 822 parser */ /* Copyright (c) 2000 - 2009 Andreas Bauer */ /* */ /* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, */ /* USA. */ /* *********************************************************************** */ %{ #include #include #include #include #include #include "header.hh" // This is necessary to use multiple lexer classes. See the flex man // page for further information. #undef yyFlexLexer #define yyFlexLexer rfcFlexLexer #include #ifdef HAVE_CONFIG_H #include "config.h" #endif // We want to give the Preferences object as parameter for yyparse // #define YYPARSE_PARAM param using namespace std; extern FlexLexer* rfclexer; inline int yylex () { return rfclexer->rfclex (); } extern "C" { #include "header.hh" // int rfcparse (void*); int rfcparse (const char*); void rfcerror (const char* str, const char* tmp) { cerr << PACKAGE_NAME << ": Error: Parser reported " << str; cerr << "." << endl; exit (-1); } } %} %union { char* sval; }; %token HEADER_END %token TOPLINE %token TAG %token BODY %token BODY_MULTI_LINE %type bodies %right BODY // %lex-param {Header* param} %parse-param {const char* param} // %define parse.error verbose %% header: /* empty */ | header entry ; entry: the_end | TAG bodies { try { ((Header*)param)->add_entry ($1, $2); free ($1); free ($2); } catch (const std::exception &e) { throw e; } } ; bodies: BODY { $$ = $1; } | bodies BODY { char* tmp = (char*)malloc ((strlen ($1) + strlen ($2) + 2) * sizeof (char)); if (tmp) { strcpy (tmp, $1); $$ = strcat (tmp, $2); free ($1); free ($2); } else { std::cerr << "Out of memory error in rfcparser." << std::endl; exit (-1); } } ; the_end: HEADER_END { ; } ; %% mailfilter-0.8.4/src/account.hh0000644000175000017500000000357312333712134013347 00000000000000// account.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef ACCOUNT_HH #define ACCOUNT_HH #include #include #include "defines.hh" #include "protocol.hh" #include "pop3.hh" #include "apop.hh" #include "connection.hh" using namespace std; class Account { protected: string serv; string user; string pass; int the_port; vector msg_ids; Protocol* proto; Connection* conn; public: void clear (void); string server (void); void set_server (const char*); string usr (void); void set_usr (const char*); string passwd (void); void set_passwd (const char*); unsigned int port (void); void set_port (unsigned int); void set_protocol (unsigned int); unsigned int protocol (void); void set_connection (unsigned int = POSIX_SOCKETS) __attribute__ ((unused)); int check (void); }; #endif mailfilter-0.8.4/src/rcfile.yy0000644000175000017500000003071712333712201013214 00000000000000/* *********************************************************************** */ /* A parser definition for Mailfilter's config files */ /* Copyright (c) 2000 - 2009 Andreas Bauer */ /* */ /* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, */ /* USA. */ /* *********************************************************************** */ %{ #include #include #include #include #include #include #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "mailfilter.hh" #include "preferences.hh" #include "rcfile.hh" // We want to give the Preferences object as parameter for yyparse. // #undef YYPARSE_PARAM // #define YYPARSE_PARAM param // Define P_DEBUG_MODE to get extra output from the parser. #ifdef P_DEBUG_MODE #undef P_DEBUG_MSG #define P_DEBUG_MSG(msg) \ cout << "Parser: " \ << msg \ << endl \ << endl #else #define P_DEBUG_MSG(msg) \ ; #endif using namespace std; FlexLexer* rclexer; extern int num_lines; extern string sub_file; extern string int_to_string (int); extern string exec_shell (const char*); void strip_shell (char[]); inline int yylex() { return rclexer->rclex(); } extern "C" { int rcparse(void*); // int rcparse(const char*); int rcwrap(void) { return 1; } void rcerror (const void* str, const void* NOT_USED) { cerr << PACKAGE_NAME << ": Error: " << str; if (sub_file.length ()) cerr << " in file " << sub_file; else cerr << " in main rcfile"; cerr << " in line " << (num_lines + 1); cerr << "." << endl; exit (-1); } } %} %union { int ival; char* sval; } %parse-param {void* param} %token ALLOW %token ALLOW_CASE %token ALLOW_NOCASE %token DEL_DUPLICATES %token DENY_NOCASE %token DENY_CASE %token DENY %token HIGHSCORE %token LOGFILE %token MAXLENGTH %token MAXSIZE_ALLOW %token MAXSIZE_DENY %token MAXSIZE_SCORE %token NORMAL %token SERVER %token USER %token PASS %token PROTOCOL %token PORT %token REG_CASE %token REG_TYPE %token SHOW_HEADERS %token SCORE %token SCORE_CASE %token SCORE_NOCASE %token TIMEOUT %token TEST %token VERBOSE %token EXP %token YES_NO_ID %token TEXT_ID %token NUM_ID %token SHELL_CMD %token ENV_VAR %token CTRL_CHAR %type exp %type exps %type str_arg %type yes_no_arg %type num_arg %left NOT_EQUAL %left '=' %% commands: /* empty */ | commands command ; command: allow_rule | del_duplicates | deny_rule | highscore | logfile | maxlength | maxsize_allow | maxsize_deny | maxsize_score | normal | server | user | pass | protocol | port | reg_case | reg_type | show_headers | score | test | timeout | verbose ; exps: exp { $$ = $1; } | exps exp { char* tmp = (char*)malloc ((strlen ($1) + strlen ($2) + 2) * sizeof (char)); if (tmp) { strcpy (tmp, $1); $$ = strcat (tmp, $2); free ($1); free ($2); } else { cerr << "Out of memory error in rcparser." << endl; exit (-1); } } ; exp: SHELL_CMD { strip_shell ($1); $$ = strdup (exec_shell ($1).c_str ()); free ($1); } | ENV_VAR { $$ = $1; } | TEXT_ID { $$ = $1; } | CTRL_CHAR { $$ = $1; } ; str_arg: '"' exps '"' { $$ = $2; } ; yes_no_arg: '"' YES_NO_ID '"' { $$ = $2; } ; num_arg: NUM_ID { $$ = $1; } ; allow_rule: ALLOW '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_allow_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | ALLOW NOT_EQUAL str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_allow_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | ALLOW_CASE '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_allow_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | ALLOW_CASE NOT_EQUAL str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_allow_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | ALLOW_NOCASE '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_allow_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | ALLOW_NOCASE NOT_EQUAL str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_allow_rule ($1, $2, $3); free ($1); free ($2); free ($3); } ; del_duplicates: DEL_DUPLICATES '=' yes_no_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_del_duplicates ($3); free ($1); free ($2); free ($3); } ; deny_rule: DENY '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_deny_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | DENY NOT_EQUAL str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_deny_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | DENY_CASE '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_deny_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | DENY_CASE NOT_EQUAL str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_deny_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | DENY_NOCASE '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_deny_rule ($1, $2, $3); free ($1); free ($2); free ($3); } | DENY_NOCASE NOT_EQUAL str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().add_deny_rule ($1, $2, $3); free ($1); free ($2); free ($3); } ; highscore: HIGHSCORE '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_highscore ($3); free ($1); free ($2); } ; logfile: LOGFILE '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_log_file ($3); free ($1); free ($2); free ($3); } ; maxlength: MAXLENGTH '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_maxlength ($3); free ($1); free ($2); } ; maxsize_allow: MAXSIZE_ALLOW '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_max_size_allow ($3); free ($1); free ($2); } ; maxsize_deny: MAXSIZE_DENY '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_max_size_deny ($3); free ($1); free ($2); } ; maxsize_score: MAXSIZE_SCORE num_arg '=' num_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + int_to_string (rclval.ival)); Preferences :: Instance ().set_max_size_score ($2, $4); free ($1); free ($3); } ; normal: NORMAL '=' yes_no_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_normal ($3); free ($1); free ($2); free ($3); } ; server: SERVER '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_server ($3); free ($1); free ($2); free ($3); } ; user: USER '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_usr ($3); free ($1); free ($2); free ($3); } ; pass: PASS '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_passwd ($3); free ($1); free ($2); free ($3); } ; protocol: PROTOCOL '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_protocol ($3); /* See account.cc for further information about the following (rather misplaced) call: */ Preferences :: Instance ().set_connection (); free ($1); free ($2); free ($3); } ; port: PORT '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_port ((unsigned int)$3); free ($1); free ($2); } ; reg_case: REG_CASE '=' yes_no_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_default_case ($3); free ($1); free ($2); free ($3); } ; reg_type: REG_TYPE '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_reg_type ($3); free ($1); free ($2); free ($3); } ; show_headers: SHOW_HEADERS '=' str_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_headers_file ($3); free ($1); free ($2); free ($3); } ; score: SCORE num_arg '=' str_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + $4); Preferences :: Instance ().add_score ($1, $2, $3, $4); free ($1); free ($3); free ($4); } | SCORE num_arg NOT_EQUAL str_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + $4); Preferences :: Instance ().add_score ($1, $2, $3, $4); free ($1); free ($3); free ($4); } | SCORE_CASE num_arg '=' str_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + $4); Preferences :: Instance ().add_score ($1, $2, $3, $4); free ($1); free ($3); free ($4); } | SCORE_CASE num_arg NOT_EQUAL str_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + $4); Preferences :: Instance ().add_score ($1, $2, $3, $4); free ($1); free ($3); free ($4); } | SCORE_NOCASE num_arg '=' str_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + $4); Preferences :: Instance ().add_score ($1, $2, $3, $4); free ($1); free ($3); free ($4); } | SCORE_NOCASE num_arg NOT_EQUAL str_arg { P_DEBUG_MSG($1 + int_to_string (rclval.ival) + (string)$3 + $4); Preferences :: Instance ().add_score ($1, $2, $3, $4); free ($1); free ($3); free ($4); } ; test: TEST '=' yes_no_arg { P_DEBUG_MSG($1 + (string)$2 + $3); Preferences :: Instance ().set_test_mode ($3); free ($1); free ($2); free ($3); } ; timeout: TIMEOUT '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_time_out ((unsigned int)$3); free ($1); free ($2); } ; verbose: VERBOSE '=' num_arg { P_DEBUG_MSG($1 + (string)$2 + int_to_string (rclval.ival)); Preferences :: Instance ().set_verbose_level ($3); free ($1); free ($2); } ; %% /* This function strips the leading, and trailing quotation marks around a shell `command' to be executed by the POSIX shell. */ void strip_shell(char s[]) { string buf = s; for (unsigned int i = 1; i < buf.length () - 1; i++) { s[i-1] = buf[i]; s[i] = '\0'; } } /* The class declarations can be found in rcfile.hh. */ RCParser :: RCParser(istream* ip, ostream* op) : isp(ip), osp(op) { try { rclexer = new rcFlexLexer(isp, osp); } catch (...) { throw; } } RCParser :: ~RCParser() { delete rclexer; } void RCParser :: parse(void* val) { rclexer->yyrestart(isp); rcparse(val); } mailfilter-0.8.4/src/preferences.hh0000644000175000017500000001174612333712134014215 00000000000000// preferences.hh - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef PREFERENCES_HH #define PREFERENCES_HH #include #include #include #include "defines.hh" #include "socket.hh" #include "filter.hh" #include "score.hh" #include "account.hh" using namespace std; class Preferences { protected: ifstream prefs_stream; vector allows; vector denies; vector scores; vector accnts; Account cur_account; string prefs_file_name; string log_file_name; string headers_file_name; int icase; bool norm; bool test; bool show_headers; bool del_duplicates; bool ret_status; bool _ignore_time_stamp; int high_score; unsigned time_out_val; int max_size; Size_score size_score; int max_size_friends; int max_line_length; int rreg_type; int verbosity; int conn_type; int negative_allows; int negative_denies; int negative_scores; // These flags indicate whether a value was already set, or // whether it's still set to the default values defined by the // constructor. bool verbosity_changed; bool test_changed; public: Preferences (); static Preferences& Instance (); void init (void); void kill (void); bool open (const char*); bool load (void); void add_deny_rule (const char*, const char*, const char*); void add_allow_rule (const char*, const char*, const char*); void add_score (const char*, int, const char*, const char*); int neg_allows (void); int neg_denies (void); void set_rc_file (const char*); string rc_file (void); void set_log_file (const char*); string log_file (void); void set_verbose_level (int); int verbose_level (void); void set_headers_file (const char*); string headers_file (void); void set_default_case (const char*); int default_case (void); void set_reg_type (const char*); int reg_type (void); void set_server (const char*); void set_usr (const char*); void set_passwd (const char*); void set_protocol (const char*); void set_connection (unsigned int = POSIX_SOCKETS) __attribute__ ((unused)); void set_port (unsigned int); unsigned int time_out (void); void set_time_out (unsigned int); bool delete_duplicates (void); void set_del_duplicates(const char*); int max_size_allow (void); void set_max_size_allow(int); int max_size_deny (void); void set_max_size_deny (int); Size_score max_size_score (void); void set_max_size_score(int, int); int highscore (void); void set_highscore (int); bool normal (void); void set_normal (const char*); bool test_mode (void); void set_test_mode (const char*); int maxlength (void); void set_maxlength (int); bool ignore_time_stamp (); void set_ignore_time_stamp (bool = true); bool return_status (void); void set_return_status (bool); vector* accounts (void); vector* allow_filters (void); vector* deny_filters (void); vector* score_filters (void); }; #endif mailfilter-0.8.4/src/protocol.hh0000644000175000017500000000361512333712134013551 00000000000000// protocol.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef PROTOCOL_HH #define PROTOCOL_HH #include "connection.hh" // This is useful to specify a combination of protocol and encryption, // e.g. PROTOCOL_POP3 | SSL. #define PROTOCOL_POP3 2 #define PROTOCOL_APOP 4 #define SSL_C 4096 using namespace std; class Protocol { protected: Connection* conn; unsigned int prot_ident; unsigned int connect_type; public: virtual ~Protocol (void) { }; virtual bool login (const char* usr, const char* pass, const unsigned int) const = 0; virtual bool logout (void) const = 0; virtual int remove_msg (const unsigned int num) const = 0; virtual int status (void) const = 0; virtual int scan (void) const = 0; void set_connection (Connection*); void set_ident (unsigned int); unsigned int ident (void) const; }; #endif mailfilter-0.8.4/src/protocol.cc0000644000175000017500000000222312333712134013531 00000000000000// protocol.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include "connection.hh" #include "protocol.hh" using namespace std; void Protocol :: set_ident (unsigned int i) { prot_ident = i; } unsigned int Protocol :: ident (void) const { return prot_ident; } void Protocol :: set_connection (Connection* currently_established_connection) { conn = currently_established_connection; } mailfilter-0.8.4/src/pop3.hh0000644000175000017500000000407012333712134012565 00000000000000// pop3.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef POP3_HH #define POP3_HH #include "header.hh" #include "protocol.hh" using namespace std; // True, if the server replied and its status message was anything, // but an error. #define REPLY_OK ((conn->c_read () > 0 && conn->c_reply ()) ? \ (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \ : false) // This macro is similar to REPLY_OK, except it sets a flag for c_read // in order to tell the function that an entire message header is // about to be received. Further comments inside socket.cc:c_read(). #define HEADER_OK ((conn->c_read (true) > 0 && conn->c_reply ())? \ (((conn->c_reply ()->c_str ())[0] == '+') ? true : false) \ : false) class POP3 : public Protocol { private: int invoke_msg_parser (const string*, const Header*) const; public: bool login (const char*, const char*, const unsigned int) const; bool logout (void) const; int remove_msg (const unsigned int) const; int status (void) const; int scan (void) const; }; #endif mailfilter-0.8.4/src/account.cc0000644000175000017500000001133112333712134013324 00000000000000// account.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include "account.hh" #include "pop3.hh" #include "apop.hh" #include "preferences.hh" #include "feedback.hh" #include "mailfilter.hh" #include "connection.hh" #include "socket.hh" #include "defines.hh" using namespace std; extern int mailbox_status; extern string int_to_string (int); void Account :: clear (void) { if (proto) delete proto; if (conn) { if (typeid (*conn) == typeid (Socket)) ((Socket*)conn)->clear (); delete conn; } } string Account :: server (void) { return serv; } void Account :: set_server (const char* s) { serv = s; } string Account :: usr (void) { return user; } void Account :: set_usr (const char* s) { user = s; } string Account :: passwd (void) { return pass; } void Account :: set_passwd (const char* s) { pass = s; } void Account :: set_protocol (unsigned int prot) { try { switch (prot) { case PROTOCOL_APOP: proto = new APOP (); proto->set_ident (PROTOCOL_APOP); break; case (PROTOCOL_APOP | SSL_C): proto = new APOP (); proto->set_ident (PROTOCOL_APOP | SSL_C); break; case (PROTOCOL_POP3 | SSL_C): proto = new POP3 (); proto->set_ident (PROTOCOL_POP3 | SSL_C); break; default: proto = new POP3 (); proto->set_ident (PROTOCOL_POP3); break; } } catch (...) { throw; } } // TODO: // This function sets the connection type, but currently only // POSIX Sockets are available. Therefore, the_connection_type // gets ignored and a new Socket object is being instantiated // per default. Right now, the rcfile parser invokes it together // with set_protocol (), but once other connection types are // implemented, it should be handled via a separate keyword and // action of the parser; not implicitly as it happens now. void Account :: set_connection (unsigned int the_connection_type) { try { // Pass a reference to the connection object to the protocol // implementing class, so that it can communicate directly with // the server e.g. via Unix Sockets. conn = new Socket (); proto->set_connection (conn); } catch (...) { throw; } } unsigned int Account :: protocol (void) { return proto->ident (); } void Account :: set_port (unsigned int p) { the_port = p; } unsigned int Account :: port (void) { return the_port; } int Account :: check (void) { Feedback* logger = Feedback :: Instance (); int messages = 0; try { // Open connection to host. if (conn->c_open (server ().c_str (), port (), Preferences :: Instance ().time_out (), proto->ident ()) != 0) { logger->print_err ("Could not establish network connection.", 1); return GEN_FAILURE_FLAG; } // Login. if (!proto->login (usr ().c_str (), passwd ().c_str (), proto->ident ())) { logger->print_err ("Server login failure.", 1); conn->c_close (); return GEN_FAILURE_FLAG; } if ((messages = proto->status ()) < 0) { logger->print_err ("Could not determine mailbox status.", 1); proto->logout (); conn->c_close (); return GEN_FAILURE_FLAG; } logger->print_msg ("Examining " + int_to_string (messages) + " message(s).", 3); // Scan mailbox for spam and unwanted bulk. if (proto->scan () < 0) { logger->print_err ("Scanning of mail account failed.", 1); proto->logout (); conn->c_close (); return GEN_FAILURE_FLAG; } // Determine number of messages in the mailbox for program // return value. if (Preferences :: Instance ().return_status () && (messages = proto->status ()) < 0) { logger->print_err ("Could not determine mailbox status.", 1); proto->logout (); conn->c_close (); return GEN_FAILURE_FLAG; } else mailbox_status += messages; } catch (...) { throw; } // Logout and close the connection. return ((proto->logout () && conn->c_close() == 0) ? 0 : GEN_FAILURE_FLAG); } mailfilter-0.8.4/src/score.cc0000644000175000017500000000171112333712134013004 00000000000000// score.cc - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include "score.hh" int Score :: score (void) const { return scr; } void Score :: set_score (int new_score) { scr = new_score; } mailfilter-0.8.4/src/defines.hh0000644000175000017500000000210712333712134013320 00000000000000// defines.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef DEFINES_HH #define DEFINES_HH #define GEN_FAILURE_FLAG -1 #define MEM_FAILURE_FLAG -2 #define POSIX_SOCKETS 1 #define WIN_SOCKS 2 // TODO: Currently not supported. #endif mailfilter-0.8.4/src/rfc822.ll0000644000175000017500000001033312333712134012721 00000000000000/* *********************************************************************** */ /* An oversimplified scanner definition for Mailfilter's RFC822 scanner */ /* Copyright (c) 2000 - 2009 Andreas Bauer */ /* */ /* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, */ /* USA. */ /* *********************************************************************** */ %x BODY_READY %s TAG_READY %option noyywrap %{ #include #include #include #include #include "rfc822parser.hh" using namespace std; /* Define L_DEBUG_MODE to get extra output from the scanner and to avoid returning too early. Early return is useless if there is no parser which keeps calling the scanners. */ #undef L_DEBUG_MODE /* Return should be defined to a nop-operation, if the programmer really only debugs a single message offline. */ #define RETURN(x) return(x) #ifdef L_DEBUG_MODE #undef L_DEBUG_MSG #define L_DEBUG_MSG(msg) \ cout << "Lexer: " \ << msg #else #undef L_DEBUG_MSG #define L_DEBUG_MSG(msg) \ ; #endif %} NL (\r\n) TOPLINE ^From[[:space:]].* TAG ^[[:alpha:]]+([[:alnum:]]|\-)*\: BODY (.*|[[:space:]]) HEADER_END \. %% {TOPLINE}{NL} { rfclval.sval = strdup (yytext); L_DEBUG_MSG("Topline: " + (string)yytext); RETURN(TOPLINE); } {TAG}[[:space:]]* { string the_tag = yytext; the_tag = the_tag.substr (0, the_tag.find_last_of (":")); rfclval.sval = strdup (the_tag.c_str ()); L_DEBUG_MSG(" Tag: " + the_tag + "\n"); BEGIN(BODY_READY); RETURN(TAG); } {BODY}{NL} { /* Remove trailing newline if it exists. */ if (yytext[strlen(yytext) - 1] == '\n') { char* the_tag = (char*)malloc (sizeof (char) * strlen (yytext)); snprintf (the_tag, strlen (yytext) - 1, "%s", yytext); rfclval.sval = the_tag; } else rfclval.sval = strdup (yytext); L_DEBUG_MSG(" Body: " + (string)yytext); BEGIN(0); RETURN(BODY); } ^[[:space:]].* { /* This is to scan multiple lines of a header body field, e.g. the Received fields are usually spread over multiple lines. In order to handle the leading white spaces, we need to replace them with ordinary blanks. */ char* the_tag = yytext; for (unsigned int i = 0; i <= strlen (the_tag); i++) if (isspace (the_tag[i])) the_tag[i] = ' '; rfclval.sval = strdup (the_tag); L_DEBUG_MSG("M-Body: " + (string)the_tag); BEGIN(TAG_READY); RETURN(BODY); } {NL}{HEADER_END}{NL} { rfclval.sval = strdup (yytext); L_DEBUG_MSG("EOF.\n"); RETURN(HEADER_END); } <*>[ \t] {; /* Do nothing with tabs and spaces. */ } <*>"\n" { BEGIN(0); } %% /* In order to test the following code and to create a standalone scanner, read the comments inside Makefile.am and compile only the Makefile target `rfc_test'. */ int rfcwrap (); #ifdef SCANNER_STANDALONE #include int main (int argc, char** argv) { FlexLexer* lexer = new rfcFlexLexer; ++argv, --argc; /* Skip over program name. */ lexer->switch_streams (new ifstream (argv[0])); lexer->rfclex (); delete lexer; return 0; } #endif int rfcwrap () { return 1; } mailfilter-0.8.4/src/getopt.c0000644000175000017500000010245212333712134013034 00000000000000/* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* This tells Alpha OSF/1 not to define a getopt prototype in . Ditto for AIX 3.2 and . */ #ifndef _NO_PROTO # define _NO_PROTO #endif #ifdef HAVE_CONFIG_H # include #endif #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ # ifndef const # define const # endif #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 # include # if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION # define ELIDE_CODE # endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ # include # include #endif /* GNU C library. */ #ifdef VMS # include # if HAVE_STRING_H - 0 # include # endif #endif #ifndef _ /* This is for other GNU distributions with internationalized messages. */ # if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC # include # ifndef _ # define _(msgid) gettext (msgid) # endif # else # define _(msgid) (msgid) # endif # if defined _LIBC && defined USE_IN_LIBIO # include # endif #endif /* This version of `getopt' appears to the caller like standard Unix `getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. As `getopt' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. Setting the environment variable POSIXLY_CORRECT disables permutation. Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ #include "getopt.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Formerly, initialization of getopt depended on optind==0, which causes problems with re-calling getopt as programs generally don't know that. */ int __getopt_initialized; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ static char *nextchar; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Describe how to deal with options that follow non-option ARGV-elements. If the caller did not specify anything, the default is REQUIRE_ORDER if the environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment variable POSIXLY_CORRECT, or using `+' as the first character of the list of option characters. PERMUTE is the default. We permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. Using `-' as the first character of the list of option characters selects this mode of operation. The special argument `--' forces an end of option-scanning regardless of the value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause `getopt' to return -1 with `optind' != ARGC. */ static enum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } ordering; /* Value of POSIXLY_CORRECT environment variable. */ static char *posixly_correct; #ifdef __GNU_LIBRARY__ /* We want to avoid inclusion of string.h with non-GNU libraries because there are many ways it can cause trouble. On some systems, it contains special magic macros that don't work in GCC. */ # include # define my_index strchr #else # if HAVE_STRING_H # include # else # include # endif /* Avoid depending on library functions or files whose names are inconsistent. */ #ifndef getenv extern char *getenv (); #endif static char * my_index (str, chr) const char *str; int chr; { while (*str) { if (*str == chr) return (char *) str; str++; } return 0; } /* If using GCC, we can safely declare strlen this way. If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. That was relevant to code that was here before. */ # if (!defined __STDC__ || !__STDC__) && !defined strlen /* gcc with -traditional declares the built-in strlen to return int, and has done so at least since version 2.4.5. -- rms. */ extern int strlen (const char *); # endif /* not __STDC__ */ #endif /* __GNUC__ */ #endif /* not __GNU_LIBRARY__ */ /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. `first_nonopt' is the index in ARGV of the first of them; `last_nonopt' is the index after the last of them. */ static int first_nonopt; static int last_nonopt; #ifdef _LIBC /* Stored original parameters. XXX This is no good solution. We should rather copy the args so that we can compare them later. But we must not use malloc(3). */ extern int __libc_argc; extern char **__libc_argv; /* Bash 2.0 gives us an environment variable containing flags indicating ARGV elements that should not be considered arguments. */ # ifdef USE_NONOPTION_FLAGS /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; static int nonoption_flags_max_len; static int nonoption_flags_len; # endif # ifdef USE_NONOPTION_FLAGS # define SWAP_FLAGS(ch1, ch2) \ if (nonoption_flags_len > 0) \ { \ char __tmp = __getopt_nonoption_flags[ch1]; \ __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ __getopt_nonoption_flags[ch2] = __tmp; \ } # else # define SWAP_FLAGS(ch1, ch2) # endif #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ #if defined __STDC__ && __STDC__ static void exchange (char **); #endif static void exchange (argv) char **argv; { int bottom = first_nonopt; int middle = last_nonopt; int top = optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS /* First make sure the handling of the `__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (nonoption_flags_len > 0 && top >= nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) nonoption_flags_len = nonoption_flags_max_len = 0; else { memset (__mempcpy (new_str, __getopt_nonoption_flags, nonoption_flags_max_len), '\0', top + 1 - nonoption_flags_max_len); nonoption_flags_max_len = top + 1; __getopt_nonoption_flags = new_str; } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; register int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; register int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; SWAP_FLAGS (bottom + i, middle + i); } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ first_nonopt += (optind - last_nonopt); last_nonopt = optind; } /* Initialize the internal data when the first call is made. */ #if defined __STDC__ && __STDC__ static const char *_getopt_initialize (int, char *const *, const char *); #endif static const char * _getopt_initialize (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ first_nonopt = last_nonopt = optind; nextchar = NULL; posixly_correct = getenv ("POSIXLY_CORRECT"); /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { ordering = REQUIRE_ORDER; ++optstring; } else if (posixly_correct != NULL) ordering = REQUIRE_ORDER; else ordering = PERMUTE; #if defined _LIBC && defined USE_NONOPTION_FLAGS if (posixly_correct == NULL && argc == __libc_argc && argv == __libc_argv) { if (nonoption_flags_max_len == 0) { if (__getopt_nonoption_flags == NULL || __getopt_nonoption_flags[0] == '\0') nonoption_flags_max_len = -1; else { const char *orig_str = __getopt_nonoption_flags; int len = nonoption_flags_max_len = strlen (orig_str); if (nonoption_flags_max_len < argc) nonoption_flags_max_len = argc; __getopt_nonoption_flags = (char *) malloc (nonoption_flags_max_len); if (__getopt_nonoption_flags == NULL) nonoption_flags_max_len = -1; else memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), '\0', nonoption_flags_max_len - len); } } nonoption_flags_len = nonoption_flags_max_len; } else nonoption_flags_len = 0; #endif return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If `getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If `getopt' finds another option character, it returns that character, updating `optind' and `nextchar' so that the next call to `getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, `getopt' returns -1. Then `optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set `opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in `optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in `optarg', otherwise `optarg' is set to zero. If OPTSTRING starts with `-' or `+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with `--' instead of `-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a `=', or else the in next ARGV-element. When `getopt' finds a long-named option, it returns 0 if that option's `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ int _getopt_internal (argc, argv, optstring, longopts, longind, long_only) int argc; char *const *argv; const char *optstring; const struct option *longopts; int *longind; int long_only; { int print_errors = opterr; if (optstring[0] == ':') print_errors = 0; if (argc < 1) return -1; optarg = NULL; if (optind == 0 || !__getopt_initialized) { if (optind == 0) optind = 1; /* Don't scan ARGV[0], the program name. */ optstring = _getopt_initialize (argc, argv, optstring); __getopt_initialized = 1; } /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag from the shell indicating it is not an option. The later information is only used when the used in the GNU libc. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ || (optind < nonoption_flags_len \ && __getopt_nonoption_flags[optind] == '1')) #else # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') #endif if (nextchar == NULL || *nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (last_nonopt > optind) last_nonopt = optind; if (first_nonopt > optind) first_nonopt = optind; if (ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (last_nonopt != optind) first_nonopt = optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (optind < argc && NONOPTION_P) optind++; last_nonopt = optind; } /* The special ARGV-element `--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (optind != argc && !strcmp (argv[optind], "--")) { optind++; if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (first_nonopt == last_nonopt) first_nonopt = optind; last_nonopt = argc; optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (first_nonopt != last_nonopt) optind = first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (ordering == REQUIRE_ORDER) return -1; optarg = argv[optind++]; return 1; } /* We have found another option-ARGV-element. Skip the initial punctuation. */ nextchar = (argv[optind] + 1 + (longopts != NULL && argv[optind][1] == '-')); } /* Decode the current option-ARGV-element. */ /* Check whether the ARGV-element is a long option. If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (longopts != NULL && (argv[optind][1] == '-' || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = -1; int option_index; for (nameend = nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == (unsigned int) strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("%s: option `%s' is ambiguous\n"), argv[0], argv[optind]); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("%s: option `%s' is ambiguous\n"), argv[0], argv[optind]); #endif } nextchar += strlen (nextchar); optind++; optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; optind++; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; #endif if (argv[optind - 1][1] == '-') { /* --option */ #if defined _LIBC && defined USE_IN_LIBIO __asprintf (&buf, _("\ %s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); #else fprintf (stderr, _("\ %s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); #endif } else { /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO __asprintf (&buf, _("\ %s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); #else fprintf (stderr, _("\ %s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #endif } nextchar += strlen (nextchar); optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); #endif } nextchar += strlen (nextchar); optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. Otherwise interpret it as a short option. */ if (!long_only || argv[optind][1] == '-' || my_index (optstring, *nextchar) == NULL) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; #endif if (argv[optind][1] == '-') { /* --option */ #if defined _LIBC && defined USE_IN_LIBIO __asprintf (&buf, _("%s: unrecognized option `--%s'\n"), argv[0], nextchar); #else fprintf (stderr, _("%s: unrecognized option `--%s'\n"), argv[0], nextchar); #endif } else { /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[optind][0], nextchar); #else fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[optind][0], nextchar); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #endif } nextchar = (char *) ""; optind++; optopt = 0; return '?'; } } /* Look at and handle the next short option-character. */ { char c = *nextchar++; char *temp = my_index (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*nextchar == '\0') ++optind; if (temp == NULL || c == ':') { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; #endif if (posixly_correct) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO __asprintf (&buf, _("%s: illegal option -- %c\n"), argv[0], c); #else fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); #endif } else { #if defined _LIBC && defined USE_IN_LIBIO __asprintf (&buf, _("%s: invalid option -- %c\n"), argv[0], c); #else fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #endif } optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("%s: option requires an argument -- %c\n"), argv[0], c); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); #endif } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; /* optarg is now the argument, see if it's in the table of longopts. */ for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[optind]); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[optind]); #endif } nextchar += strlen (nextchar); optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); #endif } nextchar += strlen (nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("\ %s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); #endif } nextchar += strlen (nextchar); return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } nextchar = NULL; return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*nextchar != '\0') { optarg = nextchar; optind++; } else optarg = NULL; nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO char *buf; __asprintf (&buf, _("%s: option requires an argument -- %c\n"), argv[0], c); if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s", buf); else fputs (buf, stderr); free (buf); #else fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); #endif } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; nextchar = NULL; } } return c; } } int getopt (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { return _getopt_internal (argc, argv, optstring, (const struct option *) 0, (int *) 0, 0); } #endif /* Not ELIDE_CODE. */ #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of `getopt'. */ int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ mailfilter-0.8.4/src/preferences.cc0000644000175000017500000002667512335715055014221 00000000000000// preferences.cc - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include #include #include #include #include #include "preferences.hh" #include "filter.hh" #include "mailfilter.hh" #include "account.hh" #include "protocol.hh" #include "score.hh" #include "rcfile.hh" extern "C" { #include #include #include } #ifdef HAVE_CONFIG_H #include "config.h" #endif using namespace std; extern "C" { int rcparse (void*); } extern int cmp_no_case (const string&, const string&); Preferences :: Preferences () { icase = CASE_DEFAULT; norm = false; test = false; show_headers = false; del_duplicates = false; ret_status = false; _ignore_time_stamp= false; high_score = 100; time_out_val = 30; negative_allows = 0; negative_denies = 0; negative_scores = 0; max_size = 0; max_size_friends = 0; max_line_length = 0; rreg_type = 0; verbosity = 3; // Flags indicate whether a value was touched before. See comments // inside preferences.hh for further details. verbosity_changed = false; test_changed = false; } Preferences& Preferences :: Instance () { static Preferences* instance = new Preferences; return *instance; } void Preferences :: init (void) { size_score.score = 0; size_score.size = 0; } void Preferences :: kill (void) { vector :: iterator die_account = (Preferences :: accnts).begin (); while (die_account != (Preferences :: accnts).end ()) { die_account->clear (); die_account++; } } void Preferences :: set_ignore_time_stamp(bool new_ts) { _ignore_time_stamp = new_ts; } bool Preferences :: ignore_time_stamp() { return _ignore_time_stamp; } // This function tries to locate a preferences file and, upon success, // stores the file path in prefs_file. However, no data is loaded by // the open() function. bool Preferences :: open (const char* name) { prefs_file_name = name; if (!prefs_file_name.length ()) { char* home_env; if ((home_env = getenv ("HOME"))) { string home_dir = home_env; prefs_file_name = home_dir + (string)RC_FILE_NAME; prefs_stream.open (prefs_file_name.c_str ()); // Windoze people have trouble with the leading dot so // here's an extra check, in case .mailfilterrc can't be // located in the user's home directory. if (!prefs_stream.is_open ()) prefs_file_name = home_dir + (string)RC_FILE_NAME_WIN; } else return false; } else prefs_stream.open (prefs_file_name.c_str ()); if (!prefs_stream.is_open ()) return false; return true; } // This function loads the user's preferences file which is specified // in prefs_file. This string, containing the path, must not be empty // at this point. bool Preferences :: load (void) { if (!prefs_stream.is_open ()) return false; try { RCParser rcparser(&prefs_stream); rcparser.parse(); } catch (...) { throw; } return true; } void Preferences :: add_deny_rule (const char* keyword, const char* operat, const char* id) { Filter cur_filter; if (strcmp (operat, "=") == 0) cur_filter.set_negativity (false); else { negative_denies++; cur_filter.set_negativity (true); } cur_filter.set_expression (id); if (cmp_no_case (keyword, "deny_case") == 0) cur_filter.set_case (CASE_SENSITIVE); else if (cmp_no_case (keyword, "deny_nocase") == 0) cur_filter.set_case (CASE_INSENSITIVE); else cur_filter.set_case (default_case ()); denies.push_back (cur_filter); } void Preferences :: add_allow_rule (const char* keyword, const char* operat, const char* id) { Filter cur_filter; if (strcmp (operat, "=") == 0) cur_filter.set_negativity (false); else { negative_allows++; cur_filter.set_negativity (true); } cur_filter.set_expression (id); if (cmp_no_case (keyword, "allow_case") == 0) cur_filter.set_case (CASE_SENSITIVE); else if (cmp_no_case (keyword, "allow_nocase") == 0) cur_filter.set_case (CASE_INSENSITIVE); else cur_filter.set_case (default_case ()); allows.push_back (cur_filter); } void Preferences :: add_score (const char* keyword, int given_score, const char* operat, const char* id) { Score cur_score; if (strcmp (operat, "=") == 0) cur_score.set_negativity (false); else { negative_scores++; cur_score.set_negativity (true); } cur_score.set_expression (id); cur_score.set_score (given_score); if (cmp_no_case (keyword, "score_case") == 0) cur_score.set_case (CASE_SENSITIVE); else if (cmp_no_case (keyword, "score_nocase") == 0) cur_score.set_case (CASE_INSENSITIVE); else cur_score.set_case (default_case ()); scores.push_back (cur_score); } void Preferences :: set_headers_file (const char* name) { // Expand the given file name. wordexp_t result; if (wordexp (name, &result, 0) == 0 && result.we_wordc > 0) { headers_file_name = result.we_wordv[0]; } else { ERROR_MSG("Invalid headers store-file name: `" + (string)name + "'."); exit(-1); } wordfree (&result); } string Preferences :: headers_file (void) { return headers_file_name; } void Preferences :: set_rc_file (const char* name) { prefs_file_name = name; } string Preferences :: rc_file (void) { return prefs_file_name; } void Preferences :: set_log_file (const char* name) { // Only expand logfile name if none was already specified, eg on the // command line. if (log_file_name.length() == 0) { wordexp_t result; if (wordexp(name, &result, 0) == 0 && result.we_wordc > 0) { log_file_name = result.we_wordv[0]; } else { ERROR_MSG("Invalid logfile name: `" + (string)name + "'."); exit(-1); } wordfree (&result); } } string Preferences :: log_file (void) { return log_file_name; } void Preferences :: set_verbose_level (int level) { if (!verbosity_changed) { verbosity = level; verbosity_changed = true; } } int Preferences :: verbose_level (void) { return verbosity; } void Preferences :: set_default_case (const char* new_case) { icase = ((cmp_no_case (new_case, "yes") == 0) ? 0 : REG_ICASE); } int Preferences :: default_case (void) { return icase; } void Preferences :: set_reg_type (const char* new_type) { if (cmp_no_case (new_type, "extended") == 0) rreg_type = REG_EXTENDED; else if (cmp_no_case (new_type, "basic") == 0) rreg_type = 0; else { ERROR_MSG((string)"Regular expressions must either be of type " + (string)"'extended', or 'basic'."); exit (-1); } } int Preferences :: reg_type (void) { return rreg_type; } void Preferences :: set_server (const char* server) { cur_account.set_server (server); } void Preferences :: set_usr (const char* user) { cur_account.set_usr (user); } void Preferences :: set_passwd (const char* pass) { cur_account.set_passwd (pass); } void Preferences :: set_protocol (const char* prot) { try { if (cmp_no_case (prot, "POP3") == 0) cur_account.set_protocol (PROTOCOL_POP3); else if (cmp_no_case (prot, "APOP") == 0) cur_account.set_protocol (PROTOCOL_APOP); #ifdef USE_SSL else if (cmp_no_case (prot, "POP3/SSL") == 0) cur_account.set_protocol (PROTOCOL_POP3 | SSL_C); else if (cmp_no_case (prot, "APOP/SSL") == 0) cur_account.set_protocol (PROTOCOL_APOP | SSL_C); #endif else { ERROR_MSG ((string)"Only supported protocols are POP3 and " + (string)"APOP (SSL only if OpenSSL is available)."); exit (-1); } } catch (const exception& r_err) { // Most likely an error is the result of insufficient memory; // set_protocol tries to reserve space for a protocol object. // // The error cannot be passed on here, cause it would have to // pass the parser which is not exception-save. (Maybe, this // can be fixed in the future?) ERROR_MSG (r_err.what ()); exit (-1); } } // This function is pretty much a dummy wrapper. See comments // inside account.cc for further information about it. void Preferences :: set_connection (unsigned int p) { try { cur_account.set_connection (); } catch (const exception& r_err) { ERROR_MSG (r_err.what ()); exit (-1); } } void Preferences :: set_port (unsigned int p) { // Port is the last instruction in the server-defining block from // the rcfile, hence, we have to push the current server data onto // the stack of stored accounts. // TODO: shift this functionality into the rcfile parser! cur_account.set_port (p); accnts.push_back (cur_account); } bool Preferences :: delete_duplicates (void) { return del_duplicates; } void Preferences :: set_del_duplicates (const char* del) { del_duplicates = (cmp_no_case (del, "yes") == 0 ? true : false); } vector* Preferences :: accounts (void) { return &accnts; } vector* Preferences :: allow_filters (void) { return &allows; } vector* Preferences :: deny_filters (void) { return &denies; } vector* Preferences :: score_filters (void) { return &scores; } void Preferences :: set_time_out (unsigned int val) { time_out_val = val; } unsigned int Preferences :: time_out (void) { return time_out_val; } int Preferences :: max_size_allow (void) { return max_size_friends; } void Preferences :: set_max_size_allow (int val) { max_size_friends = val; } int Preferences :: max_size_deny (void) { return max_size; } void Preferences :: set_max_size_deny (int val) { max_size = val; } Size_score Preferences :: max_size_score (void) { return size_score; } void Preferences :: set_max_size_score (int score, int size) { size_score.score = score; size_score.size = size; } int Preferences :: neg_allows (void) { return negative_allows; } int Preferences :: neg_denies (void) { return negative_denies; } int Preferences :: highscore (void) { return high_score; } void Preferences :: set_highscore (int val) { high_score = val; } void Preferences :: set_normal (const char* par) { norm = (cmp_no_case (par, "yes") == 0 ? true : false); } bool Preferences :: normal (void) { return norm; } bool Preferences :: test_mode (void) { return test; } void Preferences :: set_test_mode (const char* par) { if (!test_changed) { test = (cmp_no_case (par, "yes") == 0 ? true : false); test_changed = true; } } void Preferences :: set_maxlength (int val) { max_line_length = val; } int Preferences :: maxlength (void) { return max_line_length; } bool Preferences :: return_status (void) { return ret_status; } void Preferences :: set_return_status (bool st) { ret_status = st; } mailfilter-0.8.4/src/apop.cc0000644000175000017500000000506012333712134012631 00000000000000// apop.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include "apop.hh" #include "feedback.hh" #include "defines.hh" #include "mailfilter.hh" extern "C" { #include #include "md5.h" } using namespace std; bool APOP :: login (const char* usr, const char* pass, const unsigned int enc) const { Feedback* logger = Feedback :: Instance (); string usr_name = (string)"USER " + usr + (string)"\r\n"; string pass_wd = (string)"PASS " + pass + (string)"\r\n"; string greet, command; char *ts,*p, md5hash[33]; // Get server welcome string first. if (conn->c_read () == -1) return false; // Attempt to extract the timestamp from the saved input. // If the server response does not include , // i.e. the comparison with NULL, it does not support the // APOP protocol. greet = *conn->c_reply (); if ( ((ts = index (&greet[0], '<')) == NULL) || ((p = index (ts, '>')) == NULL) ) return false; p[1] = '\0'; // Calculate the hash. get_hash (md5hash, ts, pass); // Send the APOP command as in the username/password code below. command = "APOP " + (string)usr + " " + (string)md5hash + "\r\n"; if (conn->c_write (command.c_str ()) == -1 || !REPLY_OK) { logger->print_err ("APOP protocol initialisation error."); return false; } return true; } void APOP :: get_hash (char* hash, const char* stamp, const char* pass) const { MD5_CTX mdContext; unsigned char digest[16]; MD5Init (&mdContext); MD5Update (&mdContext, (unsigned char*)stamp, strlen (stamp)); MD5Update (&mdContext, (unsigned char*)pass, strlen (pass)); MD5Final (digest, &mdContext); for (unsigned int i = 0; i < sizeof (digest); i++) sprintf (hash + 2 * i, "%02x", digest[i]); } mailfilter-0.8.4/src/getopt1.c0000644000175000017500000001065012333712134013113 00000000000000/* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifdef HAVE_CONFIG_H #include #endif #include "getopt.h" #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ #ifndef const #define const #endif #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 #include #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE #endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include #endif #ifndef NULL #define NULL 0 #endif int getopt_long (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 1); } #endif /* Not ELIDE_CODE. */ #ifdef TEST #include int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case 'd': printf ("option d with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ mailfilter-0.8.4/src/socket.hh0000644000175000017500000000374612333712134013205 00000000000000// socket.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef SOCKET_HH #define SOCKET_HH #include #include #if USE_SSL extern "C" { #include #include } #endif #include "connection.hh" using namespace std; #ifndef MAX_BYTES #define MAX_BYTES 512 #endif class Socket : public Connection { private: int sd; // Socket descriptor. int time_out; // Time out. static void connect_alarm (int); // Alarm handler. string* read_buffer; // Server replies after read (). bool ssl_used; // True if SSL encryption is used. bool use_ssl (void) const; void set_ssl (bool); public: Socket (void); void clear (void); int c_open (const char* host, int port, int time_out, int protocol); int c_close (void) const; int c_write (const char* command); int c_read (bool = false); const string* c_reply (void) const; }; #endif mailfilter-0.8.4/src/apop.hh0000644000175000017500000000212112333712134012636 00000000000000// apop.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef APOP_HH #define APOP_HH #include "pop3.hh" using namespace std; class APOP : public POP3 { public: bool login (const char* usr, const char* pass, const unsigned int enc) const; private: void get_hash (char*, const char*, const char*) const; }; #endif mailfilter-0.8.4/src/rfc822.cc0000644000175000017500000013524112665064012012710 00000000000000#line 2 "rfc822.cc" #line 4 "rfc822.cc" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 0 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* The c++ scanner is a mess. The FlexLexer.h header file relies on the * following macro. This is required in order to pass the c++-multiple-scanners * test in the regression suite. We get reports that it breaks inheritance. * We will address this in a future release of flex, or omit the C++ scanner * altogether. */ #define yyFlexLexer rfcFlexLexer /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ /* begin standard C++ headers. */ #include #include #include #include #include /* end standard C++ headers. */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern yy_size_t yyleng; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { std::streambuf* yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] void *rfcalloc (yy_size_t ); void *rfcrealloc (void *,yy_size_t ); void rfcfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer( yyin, YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer( yyin, YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; #define yytext_ptr yytext #define YY_INTERACTIVE #include int yyFlexLexer::yywrap() { return 1; } /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 8 #define YY_END_OF_BUFFER 9 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[44] = { 0, 0, 0, 0, 0, 0, 0, 9, 8, 6, 7, 8, 4, 4, 4, 4, 8, 8, 8, 6, 7, 8, 8, 0, 4, 0, 2, 0, 0, 0, 0, 0, 3, 0, 2, 0, 0, 0, 5, 0, 0, 0, 1, 0 } ; static yyconst YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 7, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 11, 10, 10, 10, 10, 10, 10, 12, 10, 13, 10, 10, 14, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 15, 10, 10, 10, 10, 10, 10, 16, 10, 17, 10, 10, 18, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst YY_CHAR yy_meta[19] = { 0, 1, 2, 3, 2, 2, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 } ; static yyconst flex_uint16_t yy_base[52] = { 0, 0, 5, 22, 26, 30, 23, 80, 108, 108, 108, 76, 0, 0, 0, 75, 33, 37, 72, 71, 70, 69, 44, 66, 0, 58, 0, 22, 43, 60, 45, 60, 108, 54, 0, 50, 55, 67, 108, 48, 39, 49, 108, 108, 85, 89, 93, 33, 97, 0, 100, 103 } ; static yyconst flex_int16_t yy_def[52] = { 0, 44, 43, 45, 45, 44, 2, 43, 43, 43, 43, 43, 46, 46, 46, 46, 47, 47, 48, 48, 43, 48, 48, 43, 46, 49, 50, 17, 17, 48, 48, 43, 43, 43, 50, 17, 43, 17, 43, 51, 51, 51, 43, 0, 43, 43, 43, 43, 43, 43, 43, 43 } ; static yyconst flex_uint16_t yy_nxt[127] = { 0, 43, 9, 10, 25, 11, 8, 12, 13, 14, 15, 8, 8, 8, 8, 16, 17, 16, 16, 16, 17, 16, 16, 16, 19, 20, 21, 22, 19, 20, 21, 22, 9, 10, 16, 11, 27, 27, 16, 25, 27, 25, 26, 25, 41, 25, 26, 32, 32, 30, 30, 28, 42, 41, 41, 28, 35, 27, 38, 36, 35, 27, 37, 32, 27, 30, 37, 26, 27, 39, 39, 39, 39, 33, 30, 31, 30, 30, 23, 23, 43, 27, 43, 43, 43, 27, 8, 8, 8, 8, 18, 18, 18, 18, 24, 24, 43, 24, 29, 29, 43, 29, 34, 34, 40, 40, 43, 40, 7, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43 } ; static yyconst flex_int16_t yy_chk[127] = { 0, 0, 1, 1, 49, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 6, 5, 27, 47, 6, 16, 27, 16, 16, 17, 40, 17, 17, 22, 30, 22, 30, 17, 41, 39, 41, 17, 28, 28, 36, 33, 28, 28, 35, 31, 35, 29, 35, 25, 35, 37, 37, 37, 37, 23, 21, 20, 19, 18, 15, 11, 7, 37, 0, 0, 0, 37, 44, 44, 44, 44, 45, 45, 45, 45, 46, 46, 0, 46, 48, 48, 0, 48, 50, 50, 51, 51, 0, 51, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43 } ; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET #line 1 "rfc822.ll" /* *********************************************************************** */ /* An oversimplified scanner definition for Mailfilter's RFC822 scanner */ /* Copyright (c) 2000 - 2009 Andreas Bauer */ /* */ /* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, */ /* USA. */ /* *********************************************************************** */ #line 26 "rfc822.ll" #include #include #include #include #include "rfc822parser.hh" using namespace std; /* Define L_DEBUG_MODE to get extra output from the scanner and to avoid returning too early. Early return is useless if there is no parser which keeps calling the scanners. */ #undef L_DEBUG_MODE /* Return should be defined to a nop-operation, if the programmer really only debugs a single message offline. */ #define RETURN(x) return(x) #ifdef L_DEBUG_MODE #undef L_DEBUG_MSG #define L_DEBUG_MSG(msg) \ cout << "Lexer: " \ << msg #else #undef L_DEBUG_MSG #define L_DEBUG_MSG(msg) \ ; #endif #line 511 "rfc822.cc" #define INITIAL 0 #define BODY_READY 1 #define TAG_READY 2 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO #define ECHO LexerOutput( yytext, yyleng ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ \ if ( (int)(result = LexerInput( (char *) buf, max_size )) < 0 ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) LexerError( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 #define YY_DECL int yyFlexLexer::yylex() #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK /*LINTED*/break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin.rdbuf(std::cin.rdbuf()); if ( ! yyout ) yyout.rdbuf(std::cout.rdbuf()); if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer( yyin, YY_BUF_SIZE ); } yy_load_buffer_state( ); } { #line 64 "rfc822.ll" #line 650 "rfc822.cc" while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); yy_match: do { YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 44 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 108 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: /* rule 1 can match eol */ YY_RULE_SETUP #line 65 "rfc822.ll" { rfclval.sval = strdup (yytext); L_DEBUG_MSG("Topline: " + (string)yytext); RETURN(TOPLINE); } YY_BREAK case 2: /* rule 2 can match eol */ YY_RULE_SETUP #line 71 "rfc822.ll" { string the_tag = yytext; the_tag = the_tag.substr (0, the_tag.find_last_of (":")); rfclval.sval = strdup (the_tag.c_str ()); L_DEBUG_MSG(" Tag: " + the_tag + "\n"); BEGIN(BODY_READY); RETURN(TAG); } YY_BREAK case 3: /* rule 3 can match eol */ YY_RULE_SETUP #line 80 "rfc822.ll" { /* Remove trailing newline if it exists. */ if (yytext[strlen(yytext) - 1] == '\n') { char* the_tag = (char*)malloc (sizeof (char) * strlen (yytext)); snprintf (the_tag, strlen (yytext) - 1, "%s", yytext); rfclval.sval = the_tag; } else rfclval.sval = strdup (yytext); L_DEBUG_MSG(" Body: " + (string)yytext); BEGIN(0); RETURN(BODY); } YY_BREAK case 4: /* rule 4 can match eol */ YY_RULE_SETUP #line 95 "rfc822.ll" { /* This is to scan multiple lines of a header body field, e.g. the Received fields are usually spread over multiple lines. In order to handle the leading white spaces, we need to replace them with ordinary blanks. */ char* the_tag = yytext; for (unsigned int i = 0; i <= strlen (the_tag); i++) if (isspace (the_tag[i])) the_tag[i] = ' '; rfclval.sval = strdup (the_tag); L_DEBUG_MSG("M-Body: " + (string)the_tag); BEGIN(TAG_READY); RETURN(BODY); } YY_BREAK case 5: /* rule 5 can match eol */ YY_RULE_SETUP #line 110 "rfc822.ll" { rfclval.sval = strdup (yytext); L_DEBUG_MSG("EOF.\n"); RETURN(HEADER_END); } YY_BREAK case 6: YY_RULE_SETUP #line 116 "rfc822.ll" {; /* Do nothing with tabs and spaces. */ } YY_BREAK case 7: /* rule 7 can match eol */ YY_RULE_SETUP #line 118 "rfc822.ll" { BEGIN(0); } YY_BREAK case 8: YY_RULE_SETUP #line 120 "rfc822.ll" ECHO; YY_BREAK #line 795 "rfc822.cc" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(BODY_READY): case YY_STATE_EOF(TAG_READY): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin.rdbuf(); YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of user's declarations */ } /* end of yylex */ /* The contents of this function are C++ specific, so the () macro is not used. * This constructor simply maintains backward compatibility. * DEPRECATED */ yyFlexLexer::yyFlexLexer( FLEX_STD istream* arg_yyin, FLEX_STD ostream* arg_yyout ): yyin(arg_yyin ? arg_yyin->rdbuf() : std::cin.rdbuf()), yyout(arg_yyout ? arg_yyout->rdbuf() : std::cout.rdbuf()) { ctor_common(); } /* The contents of this function are C++ specific, so the () macro is not used. */ yyFlexLexer::yyFlexLexer( std::istream& arg_yyin, std::ostream& arg_yyout ): yyin(arg_yyin.rdbuf()), yyout(arg_yyout.rdbuf()) { ctor_common(); } /* The contents of this function are C++ specific, so the () macro is not used. */ void yyFlexLexer::ctor_common() { yy_c_buf_p = 0; yy_init = 0; yy_start = 0; yy_flex_debug = 0; yylineno = 1; // this will only get updated if %option yylineno yy_did_buffer_switch_on_eof = 0; yy_looking_for_trail_begin = 0; yy_more_flag = 0; yy_more_len = 0; yy_more_offset = yy_prev_more_offset = 0; yy_start_stack_ptr = yy_start_stack_depth = 0; yy_start_stack = NULL; yy_buffer_stack = 0; yy_buffer_stack_top = 0; yy_buffer_stack_max = 0; yy_state_buf = 0; } /* The contents of this function are C++ specific, so the () macro is not used. */ yyFlexLexer::~yyFlexLexer() { delete [] yy_state_buf; rfcfree(yy_start_stack ); yy_delete_buffer( YY_CURRENT_BUFFER ); rfcfree(yy_buffer_stack ); } /* The contents of this function are C++ specific, so the () macro is not used. */ void yyFlexLexer::switch_streams( std::istream& new_in, std::ostream& new_out ) { // was if( new_in ) yy_delete_buffer( YY_CURRENT_BUFFER ); yy_switch_to_buffer( yy_create_buffer( new_in, YY_BUF_SIZE ) ); // was if( new_out ) yyout.rdbuf(new_out.rdbuf()); } /* The contents of this function are C++ specific, so the () macro is not used. */ void yyFlexLexer::switch_streams( std::istream* new_in, std::ostream* new_out ) { if( ! new_in ) { new_in = &yyin; } if ( ! new_out ) { new_out = &yyout; } switch_streams(*new_in, *new_out); } #ifdef YY_INTERACTIVE int yyFlexLexer::LexerInput( char* buf, int /* max_size */ ) #else int yyFlexLexer::LexerInput( char* buf, int max_size ) #endif { if ( yyin.eof() || yyin.fail() ) return 0; #ifdef YY_INTERACTIVE yyin.get( buf[0] ); if ( yyin.eof() ) return 0; if ( yyin.bad() ) return -1; return 1; #else (void) yyin.read( buf, max_size ); if ( yyin.bad() ) return -1; else return yyin.gcount(); #endif } void yyFlexLexer::LexerOutput( const char* buf, int size ) { (void) yyout.write( buf, size ); } /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ int yyFlexLexer::yy_get_next_buffer() { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); yy_size_t number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ rfcrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) rfcrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ yy_state_type yyFlexLexer::yy_get_previous_state() { yy_state_type yy_current_state; char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 44 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state ) { int yy_is_jam; char *yy_cp = (yy_c_buf_p); YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 44 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 43); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT void yyFlexLexer::yyunput( int c, char* yy_bp) { char *yy_cp; yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ yy_size_t number_to_move = (yy_n_chars) + 2; char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } #endif int yyFlexLexer::yyinput() { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; } /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyFlexLexer::yyrestart( std::istream& input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer( yyin, YY_BUF_SIZE ); } yy_init_buffer( YY_CURRENT_BUFFER, input_file ); yy_load_buffer_state( ); } /** Delegate to the new version that takes an istream reference. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyFlexLexer::yyrestart( std::istream* input_file ) { yyrestart( *input_file ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yyFlexLexer::yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } void yyFlexLexer::yy_load_buffer_state() { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin.rdbuf(YY_CURRENT_BUFFER_LVALUE->yy_input_file); (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream& file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) rfcalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = (yy_size_t)size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) rfcalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } /** Delegate creation of buffers to the new version that takes an istream reference. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream* file, int size ) { return yy_create_buffer( *file, size ); } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) rfcfree((void *) b->yy_ch_buf ); rfcfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream& file ) { int oerrno = errno; yy_flush_buffer( b ); b->yy_input_file = file.rdbuf(); b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yyFlexLexer::yy_flush_buffer( YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yyFlexLexer::yypush_buffer_state (YY_BUFFER_STATE new_buffer) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yyFlexLexer::yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ void yyFlexLexer::yyensure_buffer_stack(void) { yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ (yy_buffer_stack) = (struct yy_buffer_state**)rfcalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)rfcrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } void yyFlexLexer::yy_push_state( int _new_state ) { if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) ) { yy_size_t new_size; (yy_start_stack_depth) += YY_START_STACK_INCR; new_size = (yy_start_stack_depth) * sizeof( int ); if ( ! (yy_start_stack) ) (yy_start_stack) = (int *) rfcalloc(new_size ); else (yy_start_stack) = (int *) rfcrealloc((void *) (yy_start_stack),new_size ); if ( ! (yy_start_stack) ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START; BEGIN(_new_state); } void yyFlexLexer::yy_pop_state() { if ( --(yy_start_stack_ptr) < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN((yy_start_stack)[(yy_start_stack_ptr)]); } int yyFlexLexer::yy_top_state() { return (yy_start_stack)[(yy_start_stack_ptr) - 1]; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif void yyFlexLexer::LexerError( yyconst char msg[] ) { std::cerr << msg << std::endl; exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *rfcalloc (yy_size_t size ) { return (void *) malloc( size ); } void *rfcrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void rfcfree (void * ptr ) { free( (char *) ptr ); /* see rfcrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 120 "rfc822.ll" /* In order to test the following code and to create a standalone scanner, read the comments inside Makefile.am and compile only the Makefile target `rfc_test'. */ int rfcwrap (); #ifdef SCANNER_STANDALONE #include int main (int argc, char** argv) { FlexLexer* lexer = new rfcFlexLexer; ++argv, --argc; /* Skip over program name. */ lexer->switch_streams (new ifstream (argv[0])); lexer->rfclex (); delete lexer; return 0; } #endif int rfcwrap () { return 1; } mailfilter-0.8.4/src/weeder.hh0000644000175000017500000000250612333712134013161 00000000000000// weeder.hh - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef WEEDER_HH #define WEEDER_HH #include #include #include "header.hh" using namespace std; class Weeder { private: vector msg_ids; int check_duplicates (Header*); int check_maxlength (Header*) const; int check_allow_rules (Header*) const; int check_deny_rules (Header*) const; int check_scores (Header*) const; public: int is_weed (Header*); }; #endif mailfilter-0.8.4/src/feedback.hh0000644000175000017500000000256212333712134013434 00000000000000// feedback.hh - source file for the mailfilter program // Copyright (c) 2000 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef FEEDBACK_HH #define FEEDBACK_HH #include #include using namespace std; class Feedback { private: ofstream log_file; ofstream header_file; static Feedback* _instance; public: static Feedback* Instance (void); ~Feedback (void); bool open (const char*); bool print_msg (const string, int); bool print_err (const string, int = 1); bool print_header (const string); }; #endif mailfilter-0.8.4/src/mailfilter.cc0000644000175000017500000003006012333712134014020 00000000000000// mailfilter.cc - source file for the mailfilter program // Copyright (c) 2000 - 2012 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #include #include #include #include #include #include #include #include #include #include "mailfilter.hh" #include "preferences.hh" #include "feedback.hh" #include "weeder.hh" #ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "time.h" #include #ifdef HAVE_GETOPT_H #include #else #include "getopt.h" #endif } using namespace std; static struct option long_options[] = { {"help", 0, NULL, VALUE_HELP}, {"verbose", 1, NULL, VALUE_VERBOSE}, {"mailfilterrc", 1, NULL, VALUE_MAILFILTERRC}, {"logfile", 1, NULL, VALUE_LOGFILE}, {"ignore-time-stamps", 0, NULL, VALUE_TIMESTAMP}, {"version", 0, NULL, VALUE_VERSION}, {"test", 0, NULL, VALUE_TEST}, {"return-value", 0, NULL, VALUE_RETURN}, {0, 0, 0, 0} }; struct sigaction sigact; Weeder weeder; int mailbox_status; void init_app (void); bool open_prefs (string); void get_opts (int argc, char* argv[]); void override_prefs (string); int cmp_no_case (const string&, const string&); int precompile_expressions (void); void connect_sigint (int); string int_to_string (int); int main (int argc, char* argv[]) { Feedback* logger = Feedback :: Instance (); time_t now; struct timeval tv; struct timezone tz; string options_set; int return_val = 0; init_app (); // Read the user's command line options. if (argc > 1) get_opts (argc, argv); // Try to open the program's configuration file. if (!(Preferences :: Instance (). open (Preferences :: Instance ().rc_file ().c_str ()))) { ERROR_MSG("The rcfile could not be opened."); return -1; } // If an rcfile was located, try to read it. The error handling, // however, is done inside the Preferences class. Should something // go wrong, we merely need to exit here. There's no point in // logging to external files, since they may not yet be defined, or // even be writeable. try { if (!Preferences :: Instance ().load ()) { ERROR_MSG("Loading the rcfile failed."); return -1; } } catch (const exception& r_err) { ERROR_MSG("Runtime exception occured: " + (string)r_err.what ()); return -1; } // Now that the log file should be specified, try to open it and // spit out an error in case it can't be located, or the file // permissions don't allow writing to it. if (!logger->open (Preferences :: Instance ().log_file ().c_str ())) { if (Preferences :: Instance ().log_file ().length ()) ERROR_MSG("Could not open log file '" + Preferences :: Instance ().log_file () + "' for writing."); else ERROR_MSG("Could not locate log file."); return -1; } // Set sigint signal handler sigact.sa_handler = connect_sigint; sigemptyset (&sigact.sa_mask); sigact.sa_flags = 0; if (sigaction (SIGINT, &sigact, NULL) < 0) { ERROR_MSG("Signal handler could not be installed."); exit (-1); } try { // Try to precompile all filters. if (precompile_expressions () != 0) return -1; // Start checking for spam mails in the user defined accounts. vector :: iterator cur_account = Preferences :: Instance ().accounts ()->begin (); while (cur_account != Preferences :: Instance ().accounts ()->end ()) { gettimeofday (&tv, &tz); now = tv.tv_sec; // Some versions of ctime () terminate with "\n\0", some don't. string today_ = ctime (&now); if (today_[today_.length () - 1] == '\n') { char* today = (char*)malloc (sizeof (char) * today_.length ()); snprintf (today, today_.length (), "%s", ctime (&now)); today_ = today; free (today); } logger->print_msg ((string)PACKAGE_VERSION + " querying " + cur_account->usr () + "@" + cur_account->server () + " on " + today_ + ".", 3); if (cur_account->check () != 0) { logger->print_err ("Skipping account " + cur_account->usr () + "@" + cur_account->server () + " due to earlier errors."); return_val = -1; } cur_account++; } } catch (const exception& r_err) { logger->print_err ("Runtime exception occured: " + (string)r_err.what ()); return -1; } // Mailfilter can return the number of pending mails to be // downloaded, e.g., when embeddeding it into a script. if (Preferences :: Instance ().return_status ()) return mailbox_status; return return_val; } // This function is being run before Mailfilter starts to read the // configuration files and establishes any sort of network connection. // All initialisation stuff should go in here. void init_app (void) { mailbox_status = 0; #ifdef USE_NLS setlocale (LC_ALL, ""); bindtextdomain (PACKAGE_NAME, LOCALEDIR); textdomain (PACKAGE_NAME); #endif } // The funciton getopts can be used to retrieve user specific command // line options like '--help', for instance. The rcfile file path is // retrieve via get_opts_rcfile as we need to first read the rcfile, // and then later use this function to override its settings. void get_opts (int argc, char* argv[]) { int option = 0; int option_index = 0; while ((option = getopt_long (argc, argv, "hL:M:Vv:tir", long_options, &option_index)) != -1) { switch (option) { case 'h': case VALUE_HELP: cout << "Mailfilter filters e-mail and removes spam in one "; cout << "or many POP accounts." << endl; cout << endl; cout << "Usage: " << PACKAGE_NAME << " [OPTION]..." << endl; cout << endl; cout << "If a long option shows an argument as mandatory, "; cout << "then " << endl; cout << "it is mandatory for the equivalent short option "; cout << "also." << endl; cout << endl; cout << "Options:" << endl; cout << " -h, --help "; cout << "Display this help information" << endl; cout << " -L, --logfile=FILE "; cout << "Specify logfile location" << endl; cout << " -M, --mailfilterrc=FILE "; cout << "Specify rcfile location" << endl; cout << " -r, --return-value "; cout << "Enable additional return values" << endl; cout << " -t, --test "; cout << "Simulate deletes" << endl; cout << " -i, --ignore-time-stamps "; cout << "Ignore invalid Message-ID time stamps (Do not use unless you know better!)" << endl; cout << " -v, --verbose=LEVEL "; cout << "Specify level of verbosity" << endl; cout << " -V, --version "; cout << "Display version information" << endl; cout << endl; cout << "Report bugs to "; cout << "." << endl; exit (0); break; case 'V': case VALUE_VERSION: cout << PACKAGE_NAME << " " << PACKAGE_VERSION << endl; cout << endl; cout << PACKAGE_COPYRIGHT << endl; cout << endl; cout << "This is free software; see the source for copying "; cout << "conditions. There is NO warranty; not even for "; cout << "MERCHANTABILITY or FITNESS FOR A PARTICULAR "; cout << "PURPOSE." << endl; exit (0); break; case 'L': case VALUE_LOGFILE: Preferences :: Instance ().set_log_file (optarg); break; case 'v': case VALUE_VERBOSE: Preferences :: Instance ().set_verbose_level (atoi (optarg)); break; case 't': case VALUE_TEST: Preferences :: Instance ().set_test_mode ("yes"); break; case 'i': case VALUE_TIMESTAMP: Preferences :: Instance().set_ignore_time_stamp(); break; case 'r': case VALUE_RETURN: Preferences :: Instance ().set_return_status (true); break; case 'M': case VALUE_MAILFILTERRC: Preferences :: Instance ().set_rc_file (optarg); break; default: // Command line option not recognised. cerr << "Try '" << argv[0] << " --help' for more information." << endl; exit (-1); } } } // This function precompiles the allow, deny, and score expressions // of the user's rcfile. It returns a value different to 0 upon error. int precompile_expressions (void) { int comp_err = 0; try { vector :: iterator cur_filter = Preferences :: Instance ().allow_filters ()->begin (); while (cur_filter != Preferences :: Instance ().allow_filters ()->end ()) { if ((comp_err = cur_filter->compile ()) != 0) { ERROR_MSG("Could not compile regular expression (allow)."); return comp_err; } cur_filter++; } cur_filter = Preferences :: Instance ().deny_filters ()->begin (); while (cur_filter != Preferences :: Instance ().deny_filters ()->end ()) { if ((comp_err = cur_filter->compile ()) != 0) { ERROR_MSG("Could not compile regular expression (deny)."); return comp_err; } cur_filter++; } vector :: iterator cur_score = Preferences :: Instance ().score_filters ()->begin (); while (cur_score != Preferences :: Instance ().score_filters ()->end ()) { if ((comp_err = cur_score->compile ()) != 0) { ERROR_MSG("Could not compile regular expression (score)."); return comp_err; } cur_score++; } } catch (...) { throw; } return comp_err; } // Comapre two strings, but disregard case-sensitivity. Returns 0, if // no differences could be determined, a negative integer if s is // lexicographically before s2, and a positive integer otherwise. // (See also Stroustrup 20.3.8.) int cmp_no_case (const string& s, const string& s2) { string :: const_iterator p = s.begin (); string :: const_iterator p2 = s2.begin (); while (p != s.end () && p2 != s2.end ()) { if (toupper (*p) != toupper (*p2)) return (toupper (*p) < toupper (*p2))? -1 : 1; ++p; ++p2; } return (s2.size () == s.size ())? 0 : (s.size () < s2.size ())? -1 : 1; } // This function executes the string given in command through a // POSIX shell. It returns the first string of the shell's // output without the trailing '\n'; instead it terminates with // '\0'. string exec_shell (const char* command) { FILE *fp; const int SIZEBUF = 256; static char buf [SIZEBUF]; string cur_string; if ((fp = popen (command, "r")) != NULL) { fgets (buf, sizeof (buf), fp); cur_string = buf; if (cur_string[cur_string.size () - 1] != '\n') { ERROR_MSG("popen failed."); exit (-1); } else // Remove the trailing new line, or it messes up // the file paths in the config files. cur_string[cur_string.size () - 1] = '\0'; if (pclose(fp) == -1) { ERROR_MSG("pclose failed."); exit (-1); } } return cur_string; } string int_to_string (int val) { string tmp; ostringstream ostr; ostr << val; tmp = ostr.str (); return tmp; } void connect_sigint (int signo) { sigset_t mask_set; sigset_t old_set; // Mask other signals while we prompt to cerr and finally quit signal (SIGINT, connect_sigint); sigfillset (&mask_set); sigprocmask (SIG_SETMASK, &mask_set, &old_set); cout << PACKAGE_NAME \ << ": Error: Program abort due to signal " << signo << "." << endl; exit (-1); } mailfilter-0.8.4/src/getopt.h0000644000175000017500000001447212333712134013045 00000000000000/* Declarations for getopt. Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GETOPT_H #ifndef __need_getopt # define _GETOPT_H 1 #endif /* If __GNU_LIBRARY__ is not already defined, either we are being used standalone, or this is the first header included in the source file. If we are being used with glibc, we need to include , but that does not exist if we are standalone. So: if __GNU_LIBRARY__ is not defined, include , which will pull in for us if it's from glibc. (Why ctype.h? It's guaranteed to exist and it doesn't flood the namespace with stuff the way some other headers do.) */ #if !defined __GNU_LIBRARY__ # include #endif #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero. The field `has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. */ struct option { # if (defined __STDC__ && __STDC__) || defined __cplusplus const char *name; # else char *name; # endif /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the `has_arg' field of `struct option'. */ # define no_argument 0 # define required_argument 1 # define optional_argument 2 #endif /* need getopt */ /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options missing arguments, `optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter takes an argument, to be placed in `optarg'. If a letter in OPTS is followed by two colons, its argument is optional. This behavior is specific to the GNU `getopt'. The argument `--' causes premature termination of argument scanning, explicitly telling `getopt' that there are no more options. If OPTS begins with `--', then non-option arguments are treated as arguments to the option '\0'. This behavior is specific to the GNU `getopt'. */ #if (defined __STDC__ && __STDC__) || defined __cplusplus # ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation errors, only prototype getopt for the GNU C library. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); # else /* not __GNU_LIBRARY__ */ extern int getopt (); # endif /* __GNU_LIBRARY__ */ # ifndef __need_getopt extern int getopt_long (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind); extern int getopt_long_only (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind); /* Internal only. Users should not call this directly. */ extern int _getopt_internal (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only); # endif #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt extern int getopt_long (); extern int getopt_long_only (); extern int _getopt_internal (); # endif #endif /* __STDC__ */ #ifdef __cplusplus } #endif /* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt #endif /* getopt.h */ mailfilter-0.8.4/src/mailfilter.hh0000644000175000017500000000273112333712134014036 00000000000000// mailfilter.hh - source file for the mailfilter program // Copyright (c) 2000 - 2012 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. #ifndef MAILFILTER_HH #define MAILFILTER_HH #include #ifdef HAVE_CONFIG_H #include "config.h" #endif using namespace std; // Mailfilter's command line options and arguments. #define VALUE_HELP 1 #define VALUE_VERBOSE 2 #define VALUE_MAILFILTERRC 3 #define VALUE_LOGFILE 4 #define VALUE_VERSION 5 #define VALUE_TEST 6 #define VALUE_RETURN 7 #define VALUE_TIMESTAMP 8 #define ERROR_MSG(msg) \ cerr << PACKAGE_NAME \ << ": Error: " \ << msg \ << endl #endif mailfilter-0.8.4/src/socket.cc0000644000175000017500000002766612665046343013214 00000000000000// socket.cc - source file for the mailfilter program // Copyright (c) 2003 - 2009 Andreas Bauer // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. // // Note that this program is released under the GPL with the additional // exemption that compiling, linking, and/or using OpenSSL is allowed. #include #include #include #include #include #include #ifdef USE_SSL extern "C" { #include #include #include #include } #endif extern "C" { #include #include #include #include #include #include #include #include #include #include } #include "defines.hh" #include "mailfilter.hh" #include "feedback.hh" #include "socket.hh" #include "protocol.hh" using namespace std; static sigjmp_buf curr_env; // TODO: these variables should not "just" be global; maybe static members or something? #ifdef USE_SSL SSL* ssl; BIO* sbio; SSL_METHOD* ssl_meth; SSL_CTX* ssl_ctx; #endif Socket :: Socket (void) { set_ssl (false); } void Socket :: clear (void) { // TODO: the following crashes the program at the end; why? // if (read_buffer) // delete read_buffer; } int Socket :: c_open (const char* host_name, int port, int new_time_out, int the_protocol) { struct sockaddr_in s_address; struct hostent *host; struct sigaction sig_action; Feedback* logger = Feedback :: Instance (); // Install alarm signal handler for interrupts and connnection // time out handling. time_out = new_time_out; sig_action.sa_handler = connect_alarm; sigemptyset (&sig_action.sa_mask); sig_action.sa_flags = 0; // Try to initialise signal handler and save stack context. if (sigaction (SIGALRM, &sig_action, NULL) < 0) { logger->print_err ("Installation of signal handler failed."); return GEN_FAILURE_FLAG; } if (sigsetjmp (curr_env, 1) == 0) { // Set time out. alarm (time_out); #ifdef USE_SSL // Should SSL encryption be desired, establish a CTX object first. if (the_protocol == (PROTOCOL_POP3 | SSL_C) || the_protocol == (PROTOCOL_APOP | SSL_C)) { logger->print_msg ("Debugging: Using SSL encrypted communication.", 6); set_ssl (true); SSL_library_init (); SSL_load_error_strings(); // Here should be some key verification stuff... ssl_meth = (SSL_METHOD*)(SSLv23_client_method ()); ssl_ctx = (SSL_CTX*)(SSL_CTX_new (ssl_meth)); } else logger->print_msg ("Debugging: Client-server communication is not encrypted.", 6); #endif // Try to establish a socket communication endpoint and then // try to look up the hostname. if (! host_name || ((sd = socket (PF_INET, SOCK_STREAM, 0)) < 0) || (!(host = gethostbyname (host_name)))) { logger->print_err ("DNS look up error; is the hostname correct?"); alarm (0); return GEN_FAILURE_FLAG; } memset ((char*) &s_address, 0, sizeof (struct sockaddr_in)); s_address.sin_family = AF_INET; memcpy (&(s_address.sin_addr.s_addr), host->h_addr, host->h_length); s_address.sin_port = htons (port); if (connect (sd, (struct sockaddr*) &s_address, sizeof (struct sockaddr)) < 0) { logger->print_err ("Server connection could not be established."); alarm (0); return GEN_FAILURE_FLAG; } #ifdef USE_SSL // Now, we have a TCP connection; start SSL negotiation, if desired. if (use_ssl ()) { if ((ssl = SSL_new (ssl_ctx)) == NULL) { logger->print_err ("SSL connection structure could not be created."); exit (-1); } // Either the following line, or BIO connection object? // SSL_set_fd (ssl, sd); // Create BIO object and attach ssl object to it if ((sbio = BIO_new_socket (sd, BIO_NOCLOSE)) == NULL) { logger->print_err ("Socket-BIO could not be created."); return GEN_FAILURE_FLAG; } SSL_set_bio (ssl, sbio, sbio); if (SSL_connect (ssl) <= 0) { logger->print_err ("SSL connection could not be established."); return GEN_FAILURE_FLAG; } } #endif } else { logger->print_err ("Timeout occured."); return GEN_FAILURE_FLAG; } // Reset alarm again. alarm (0); return 0; } // Like close(2), this function returns 0 on success, and -1 // otherwise. Its purpose is to close the socket connection. int Socket :: c_close (void) const { #ifdef USE_SSL if (use_ssl ()) { SSL_shutdown (ssl); int close_err = close (sd); SSL_free (ssl); SSL_CTX_free (ssl_ctx); return close_err; } else return close (sd); #else return close (sd); #endif } int Socket :: c_write (const char* msg) { if (msg) { Feedback* logger = Feedback :: Instance (); string tmp_msg = msg; ssize_t bytes; #ifdef USE_SSL if (use_ssl ()) bytes = SSL_write (ssl, msg, strlen (msg)); else bytes = write (sd, msg, strlen (msg)); #else bytes = write (sd, msg, strlen (msg)); #endif if (bytes < 0) logger->print_err (strerror (errno)); // Debugging. if (tmp_msg.find ("PASS ") != 0) logger->print_msg ("Debugging: Wrote: " + tmp_msg, 6); else logger->print_msg ("Debugging: Wrote: PASS *****", 6); return bytes; } return GEN_FAILURE_FLAG; } // This function can be used to receive a server's response via the // socket connection. It returns the number of bytes read upon // success, and a negative integer otherwise. The reply string itself // can then be obtained by calling the member function c_reply (). If // read_header is true, the c_read function will not stop reading when // the host stops transmitting data. Instead, it expects an entire // header to be sent and thus, will receive data until \r\n.\r\n is // encountered, i.e. the end of the header according to RFC822. int Socket :: c_read (bool read_header) { Feedback* logger = Feedback :: Instance (); char buffer[MAX_BYTES + 10]; struct timeval tv; string input; int flags; int prem_exit = 0; int bytes; int counter; int error; fd_set rfds; // Empty the current read_buffer which may contain previous server // responses. // if (read_buffer) // delete read_buffer; // First, try to read the current socket descriptor's flags and // store a copy in 'flags', and then change the communication of // that descriptor to nonblocking I/O. if (((flags = fcntl (sd, F_GETFL, 0)) == -1) || (fcntl (sd, F_SETFL, flags | O_NONBLOCK) == -1)) { logger->print_err (strerror (errno)); return GEN_FAILURE_FLAG; } // Set connection time out. tv.tv_sec = time_out; tv.tv_usec = 0; FD_ZERO (&rfds); FD_SET (sd, &rfds); // Only read if the socket is ready and able to send data. error = select (sd + 1, &rfds, NULL, NULL, &tv); // An error occured while trying to poll server. We did not get a // file descriptor. if (error < 0) { logger->print_err (strerror (errno)); return GEN_FAILURE_FLAG; } // One (or many) file descriptors are ready for message exchange. else if (error > 0) { // Check the status of the file descriptor. if (!FD_ISSET (sd, &rfds)) return GEN_FAILURE_FLAG; // Start receiving messages from the server. do { memset (buffer, 0, sizeof buffer); #ifdef USE_SSL if (use_ssl ()) { if (ssl) { bytes = SSL_read (ssl, buffer, MAX_BYTES); int i = SSL_get_error (ssl, bytes); switch (i) { case SSL_ERROR_NONE: prem_exit = 0; break; case SSL_ERROR_WANT_READ: prem_exit = 1; logger->print_msg ("Debugging: Warning: Received SSL_ERROR_WANT_READ.", 6); break; case SSL_ERROR_WANT_WRITE: prem_exit = 1; logger->print_msg ("Debugging: Warning: Received SSL_ERROR_WANT_WRITE.", 6); break; case SSL_ERROR_ZERO_RETURN: prem_exit = 1; logger->print_msg ("Debugging: Warning: Received SSL_ERROR_ZERO_RETURN.", 6); break; default: logger->print_err ("SSL_read returned unknown error."); return GEN_FAILURE_FLAG; } } else { logger->print_err ("For unknown reason the SSL connection was closed."); return GEN_FAILURE_FLAG; } } else bytes = recv (sd, buffer, MAX_BYTES, 0); #else bytes = recv (sd, buffer, MAX_BYTES, 0); #endif if (bytes > 0) { counter += bytes; if (input.length ()) input.append (buffer, bytes); else { input = buffer; input += "\0"; } } // The end condition for reading is as follows: keep reading // as long as there was something to read previously, or, if // there hasn't been (and we've surpassed the MTU), then see // whether we encountered the end of the message header yet, // which has to be ".\r\n". } while (bytes > 0 || (read_header // The following finishes a POP3 server reply. && ( (input[input.length () - 1] != '\n' || input[input.length () - 2] != '\r' || input[input.length () - 3] != '.') // The following finishes an IMAP server reply. && input.find (")\r\na OK FETCH completed\r\n") == string :: npos ) )); } else { logger->print_err ("Connection has timed out."); return GEN_FAILURE_FLAG; } // Put line ending behind the buffer, if needed. Do not use '\0' // instead of "\0" because, somehow this crashes the string append // function! (Why? If it's illegal, the type system should // choke...) Alternatively, one could probably write // input[counter] = '\0'; // TODO: Verify that and chose best code! if (input.length () && input.find_last_of ('\0', input.length ()) == string :: npos) input.append ("\0"); // Debugging. logger->print_msg ("Debugging: Read: " + (input[input.length () - 1] != '\n'? input + "\n" : input), 6); // Reset socket communication to good old blocking mode. if ((fcntl (sd, F_SETFL, flags)) == -1) { logger->print_err (strerror (errno)); return GEN_FAILURE_FLAG; } // Return the length of the server response and catch out of memory // exceptions. I do not want to pass the exception though, in order // to keep the calling code simple. That is, in case of the memory // error, MEM_FAILURE_FLAG is returned. This could be used to react // especially to this case, if necessary at all. Most likely, the // calling code is only interested in the distinction between a // positive and a negative return value anway; the failure flags // are, of course, both negative. try { read_buffer = new string (input); return read_buffer->length (); } catch (const exception& r_err) { logger->print_err (r_err.what ()); return MEM_FAILURE_FLAG; } } const string* Socket :: c_reply (void) const { return read_buffer; } // Alarm signal call back function. void Socket :: connect_alarm (int signo) { // No need to explicitly mask signals in a one-liner, // is there? siglongjmp (curr_env, signo); } bool Socket :: use_ssl (void) const { return ssl_used; } void Socket :: set_ssl (bool the_ssl) { ssl_used = the_ssl; } mailfilter-0.8.4/configure0000755000175000017500000062513412675277604012536 00000000000000#! /bin/sh # From configure.ac Revision: 1.1.2.4.2.12 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for mailfilter 0.8.4. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # # Copyright (c) 2000 - 2016 Andreas Bauer ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and baueran@gmail.com $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='mailfilter' PACKAGE_TARNAME='mailfilter' PACKAGE_VERSION='0.8.4' PACKAGE_STRING='mailfilter 0.8.4' PACKAGE_BUGREPORT='baueran@gmail.com' PACKAGE_URL='' ac_unique_file="src/mailfilter.cc" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS GETOPT_FALSE GETOPT_TRUE EGREP GREP CPP LEXLIB LEX_OUTPUT_ROOT LEX YFLAGS YACC am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE ac_ct_CC CFLAGS CC am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM PACKAGE_COPYRIGHT target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking with_openssl ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CC CFLAGS YACC YFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures mailfilter 0.8.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/mailfilter] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of mailfilter 0.8.4:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-openssl use OpenSSL (default="yes") Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags YACC The `Yet Another Compiler Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF mailfilter configure 0.8.4 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Copyright (c) 2000 - 2016 Andreas Bauer _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## -------------------------------- ## ## Report this to baueran@gmail.com ## ## -------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by mailfilter $as_me 0.8.4, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu $as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2000 - 2016 Andreas Bauer \"" >>confdefs.h ac_config_headers="$ac_config_headers config.h" am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='mailfilter' VERSION='0.8.4' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE # Checks for programs. for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 $as_echo_n "checking whether the C++ compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C++ compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 $as_echo_n "checking for C++ compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 $as_echo_n "checking for library containing strerror... " >&6; } if ${ac_cv_search_strerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_strerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_strerror+:} false; then : break fi done if ${ac_cv_search_strerror+:} false; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 $as_echo "$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_YACC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_YACC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 $as_echo "$YACC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LEX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LEX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 $as_echo "$LEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ yyless ((input () != 0)); } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int main (void) { return ! yylex () + ! yywrap (); } _ACEOF { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 $as_echo_n "checking lex output file root... " >&6; } if ${ac_cv_prog_lex_root+:} false; then : $as_echo_n "(cached) " >&6 else if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 $as_echo "$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 $as_echo_n "checking lex library... " >&6; } if ${ac_cv_lib_lex+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lex=$ac_lib fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 $as_echo "$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 $as_echo_n "checking whether yytext is a pointer... " >&6; } if ${ac_cv_prog_lex_yytext_pointer+:} false; then : $as_echo_n "(cached) " >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_prog_lex_yytext_pointer=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi # More specifically, check for installed SSL library. # Check whether --with-openssl was given. if test "${with_openssl+set}" = set; then : withval=$with_openssl; fi if test "$with_openssl" != "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_new in -lcrypto" >&5 $as_echo_n "checking for BIO_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_BIO_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char BIO_new (); int main () { return BIO_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_BIO_new=yes else ac_cv_lib_crypto_BIO_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_new" >&5 $as_echo "$ac_cv_lib_crypto_BIO_new" >&6; } if test "x$ac_cv_lib_crypto_BIO_new" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCRYPTO 1 _ACEOF LIBS="-lcrypto $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 $as_echo_n "checking for SSL_new in -lssl... " >&6; } if ${ac_cv_lib_ssl_SSL_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lssl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SSL_new (); int main () { return SSL_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ssl_SSL_new=yes else ac_cv_lib_ssl_SSL_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSSL 1 _ACEOF LIBS="-lssl $LIBS" fi $as_echo "#define USE_SSL 1" >>confdefs.h fi # Static or dynamic linking? Look inside m4/ for further information. # PETI_ENABLED_DYNAMIC_LINKING # Checks for header files. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in arpa/inet.h \ wordexp.h \ fcntl.h \ inttypes.h \ libintl.h \ locale.h \ netdb.h \ netinet/in.h \ stdlib.h \ string.h \ sys/socket.h \ sys/time.h \ unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" if test "x$ac_cv_func_getopt_long" = xyes; then : $as_echo "#define HAVE_GETOPT_H 1" >>confdefs.h if true; then GETOPT_TRUE= GETOPT_FALSE='#' else GETOPT_TRUE='#' GETOPT_FALSE= fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using included getopt header" >&5 $as_echo "Using included getopt header" >&6; } if false; then GETOPT_TRUE= GETOPT_FALSE='#' else GETOPT_TRUE='#' GETOPT_FALSE= fi fi # Checks for (library) functions. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 $as_echo_n "checking for error_at_line... " >&6; } if ${ac_cv_lib_error_at_line+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_error_at_line=yes else ac_cv_lib_error_at_line=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 $as_echo "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 $as_echo_n "checking return type of signal handlers... " >&6; } if ${ac_cv_type_signal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_type_signal=int else ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 $as_echo "$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSOCKET 1 _ACEOF LIBS="-lsocket $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBNSL 1 _ACEOF LIBS="-lnsl $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5 $as_echo_n "checking for regcomp in -lregex... " >&6; } if ${ac_cv_lib_regex_regcomp+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lregex $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char regcomp (); int main () { return regcomp (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_regex_regcomp=yes else ac_cv_lib_regex_regcomp=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5 $as_echo "$ac_cv_lib_regex_regcomp" >&6; } if test "x$ac_cv_lib_regex_regcomp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBREGEX 1 _ACEOF LIBS="-lregex $LIBS" fi for ac_func in alarm \ gethostbyname \ gettimeofday \ memset \ regcomp \ select \ setlocale \ socket \ strcasecmp \ strdup \ snprintf \ strerror do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Usually this should not be changed. $as_echo "#define PREVIEW_COMMAND \"TOP %d 0\\r\\n\"" >>confdefs.h # File names for mailfilter's preferences $as_echo "#define RC_FILE_NAME \"/.mailfilterrc\"" >>confdefs.h $as_echo "#define RC_FILE_NAME_WIN \"/_mailfilterrc\"" >>confdefs.h $as_echo "#define HOME_ENV \"HOME\"" >>confdefs.h ac_config_files="$ac_config_files Makefile mailfilter.spec src/Makefile man/Makefile doc/Makefile contrib/Makefile doc/Doxyfile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GETOPT_TRUE}" && test -z "${GETOPT_FALSE}"; then as_fn_error $? "conditional \"GETOPT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GETOPT_TRUE}" && test -z "${GETOPT_FALSE}"; then as_fn_error $? "conditional \"GETOPT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by mailfilter $as_me 0.8.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ mailfilter config.status 0.8.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "mailfilter.spec") CONFIG_FILES="$CONFIG_FILES mailfilter.spec" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi cat < # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. man_MANS = mailfilter.1 mailfilterrc.5 mailfilterex.5 mailfilter_manpages.ps: for i in $(man_MANS); \ do \ groff -t -e -mandoc -Tps $$i > $$i.ps; \ groff -t -e -mandoc -Tascii $$i > $$i.txt; \ groff -t -e -mandoc -Thtml $$i > $$i.html; \ done; pdf-am: mailfilter.1.ps for i in *.ps; do ps2pdf $$i; done; clean: rm -f *.pdf *.html *.ps *.txt EXTRA_DIST = $(man_MANS) mailfilter-0.8.4/man/mailfilterrc.50000644000175000017500000002610712333713100014111 00000000000000.TH MAILFILTERRC "5" "January 2009" Mailfilter "File Format Descriptions" .SH NAME mailfilterrc \- Mailfilter configuration file .SH SYNOPSIS .B $HOME/.mailfilterrc .SH DESCRIPTION For a quick start read the INSTALL file provided with the Mailfilter distribution and copy its example configuration. This is enough to run the program with some basic features. .PP Generally the rcfile contains all of Mailfilter's settings and information on the mail accounts that should be checked for spam. It is possible to place remarks in that file by beginning a line with `#'. .PP It does not matter in which order keywords are inserted, except for the account set-up. To define an account you .B must use this whole block of commands: .PP .RS SERVER = "your.pop.server.com" .br USER = "your.username" .br PASS = "your.password" .br PROTOCOL = "pop3" .br PORT = 110 .RE .PP Currently Mailfilter supports the POP3, and APOP protocols which usually communicate over port 110. However, port 995 is required, if Mailfilter is instructed to communicate using the SSL layer as in: .PP .RS SERVER = "your.pop.ssl.server.com" .br USER = "your.username" .br PASS = "your.password" .br PROTOCOL = "pop3/ssl" .br PORT = 995 .RE .PP .SH "KEYWORDS" Generally the rcfile is not case-sensitive, which means it does not matter whether the keywords are spelled in capitals or not. You can place white space characters before and in between a command and its parameters. .PP .RS # This is a typical comment .br DENY = "^Subject:.*Get rich fast" .RE .PP To see some example applications of the engaged keywords, please refer to the .BR mailfilterex(5) man page. .PP .SM ALLOW = """\fBexpression\fR""" .RS This keyword can be used to override spam filters i.e. to define `friends'. A message that matches any ALLOW rules will not be filtered or deleted. ALLOW takes a Regular Expression as argument. .RE .PP .SM DEL_DUPLICATES = """\fB[yes|no]\fR""" .RS This keyword can be used to delete duplicates of messages sent to one or several accounts at once, i.e. it removes redundant e-mails. DEL_DUPLICATES takes either `yes' or `no' as argument. The default value is `no'. .RE .PP .SM DENY = """\fBexpression\fR""" .RS This keyword can be used to define spam filters. Messages that match spam filters (unless they match an ALLOW rule at the same time) are being deleted from the mail server. DENY takes a Regular Expression as argument. .RE .PP .SM DENY <> """\fBexpression\fR""" .RS This keyword can be used to define a negative spam filter. Messages that do not match the negative filters are being deleted from the server. DENY<> takes a Regular Expression as argument, e.g. `DENY<>^To:.*my_username'. .RE .PP .SM DENY_CASE = """\fBexpression\fR""" .RS This keyword can be used to define case-sensitive spam filters. It overrides the default settings for case-sensivity (see REG_CASE for details). DENY_CASE takes a Regular Expression as argument. .RE .PP .SM DENY_CASE <> """\fBexpression\fR""" .RS This keyword can be used to define negative case-sensitive spam filters. It overrides the default settings for case-sensivity (see REG_CASE for details). DENY_CASE<> takes a Regular Expression as argument. .RE .PP .SM DENY_NOCASE = """\fBexpression\fR""" .RS This keyword can be used to define case-insensitive spam filters. It overrides the default settings for case-sensivity (see REG_CASE for details). DENY_NOCASE takes a Regular Expression as argument. .RE .PP .SM DENY_NOCASE <> """\fBexpression\fR""" .RS This keyword can be used to define negative case-insensitive spam filters. It overrides the default settings for case-sensivity (see REG_CASE for details). DENY_NOCASE<> takes a Regular Expression as argument. .RE .PP .SM HIGHSCORE = \fBvalue\fR .RS This keyword can be used to define a discrete threshold upon which messages should be deleted. Individual scores are accumulated by assigning values and filters with the SCORE or MAXSIZE_SCORE keywords. Its default value is 100. .RE .PP .SM INCLUDE = """\fBpath\fR""" .RS This keyword can be used to include additional configuration files into the main Mailfilter rcfile. That is, the program settings may be conveniently split into several different files. INCLUDE expects a path and file name as argument. .RE .PP .SM LOGFILE = """\fBpath\fR""" .RS This keyword can be used to define a log file for Mailfilter. The log file is being used to store error messages and information on deleted messages. LOGFILE expects a path and file name as argument. .RE .PP .SM MAXLENGTH = \fBvalue\fR .RS This keyword can be used to define a maximum string length that must not be exceeded by any field of a message header. The according Internet standard RFC 822 suggests a limit of 998 characters per field. This option even overrides any `friendly' ALLOW rules, i.e. deletes them if they exceed the limit. Assigning a `0' disables the feature. .RE .PP .SM MAXSIZE_ALLOW = \fBvalue\fR .RS This keyword can be used to define a maximum message size that must not be exceeded by all messages that match any ALLOW rule. (One could say, this is the size limit `friends' should not exceed.) The limit does not affect other messages. To define a more general message size limit, use MAXSIZE_DENY instead. MAXSIZE_ALLOW takes the number of bytes as argument. Assigning a `0' disables this feature. .RE .PP .SM MAXSIZE_DENY = \fBvalue\fR .RS This keyword can be used to define a general message size limit that must not be exceeded. (Unless the incoming message matches an ALLOW rule. In that case MAXSIZE_ALLOW would apply.) MAXSIZE_DENY takes the number of bytes as argument. Assigning a `0' disables this feature. .RE .PP .SM MAXSIZE_SCORE \fBvalue\fR = \fBvalue\fR .RS This keyword can be used to attach a score to a size limit. If that limit is exceeded, then the score will be added to the accumulated score from applying other scored filters (see the SCORE keyword below). The first value (before `=') is the score, the second value (after `=') is the size limit. Assigning a `0' to either the score or the size limit disables this feature. .RE .PP .SM NORMAL = """\fB[yes|no]\fR""" .RS This keyword tells Mailfilter to `normalise' the subject strings in messages. A normalised string consists only of alpha-numeric characters. When normalisation is turned on, Mailfilter tries to apply its filters first to the original subject line, before it tries to match the normalised one. NORMAL takes either `yes' or `no' as argument. The default value is `no'. .RE .PP .SM REG_CASE = """\fB[yes|no]\fR""" .RS This keyword can be used to define how Mailfilter should treat its Regular Expressions, case-sensitive or case-insensitive. REG_CASE takes either `yes' as argument to enable case-sensivity or otherwise `no' to disable it. The default behaviour is to ignore the case. .RE .PP .SM REG_TYPE = """\fB[basic|extended]\fR""" .RS This keyword can be used to define which type of Regular Expression Mailfilter should use. REG_TYPE can either be switched to `extended' or `basic'. The default value is `basic'. .RE .PP .SM SCORE \fBvalue\fR = """\fBexpression\fR""" .RS This keyword can be used to assign a score to a filter. It expects a discrete number and a Regular Expression filter as input. If the filter matches a line of the message header, the score is being accumulated to previously matched filters. (See mailfilterex (5) for an example.) .RE .PP .SM SCORE \fBvalue\fR <> """\fBexpression\fR""" .RS This keyword can be used in the same fashion as SCORE, but it assigns the score only if the filter can not be matched to any line of the message header. .RE .PP .SM SCORE_CASE \fBvalue\fR = """\fBexpression\fR""" .RS This keyword is similar to SCORE, but it treats the Regular Expression as case sensitive filter, regardless of other program settings. .RE .PP .SM SCORE_CASE \fBvalue\fR <> """\fBexpression\fR""" .RS This keyword can be used in the same fashion as SCORE_CASE, but it assigns the score only if the filter can not be matched to any line of the message header. .RE .PP .SM SCORE_NOCASE \fBvalue\fR = """\fBexpression\fR""" .RS This keyword is similar to SCORE, but it treats the Regular Expression as case insensitive filter, regardless of other program settings. .RE .PP .SM SCORE_NOCASE \fBvalue\fR <> """\fBexpression\fR""" .RS This keyword can be used in the same fashion as SCORE_NOCASE, but it assigns the score only if the filter can not be matched to any line of the message header. .RE .PP .SM SERVER / USER / PASS / PROTOCOL / PORT .RS These keywords can only be used as a whole and in the given order. Such a block defines an e-mail account to be checked for spam by Mailfilter. A typical block looks like this: .PP .RS SERVER = "your.pop.server.com" .br USER = "your.username" .br PASS = "your.password" .br PROTOCOL = "protocol" .br PORT = 110 .RE .PP It is especially important to not change the arrangement of this block. At the moment, PROTOCOL supports either `pop3' (`pop3/ssl'), or `apop' (`apop/ssl'). The normal variant usually corresponds to port 110, while encrypted communication via SSL, typically, requires port 995. .RE .PP .SM SHOW_HEADERS = """\fBpath\fR""" .RS This keyword can be used to store the message headers of absolutely all filtered e-mails of an account. SHOW_HEADERS expects a path and a file name as argument indicating where to store the headers in. .RE .PP .SM TEST = """\fB[yes|no]\fR""" .RS This keyword prevents Mailfilter from deleting any messages on any e-mail accounts. It is useful to experiment with filters and Regular Expressions and to see how Mailfilter reacts to the user's changes. The option can be turned on by assigning `yes' to TEST. The default value is `no'. .RE .PP .SM TIMEOUT = \fBvalue\fR .RS This keyword can be used to define a server response time out in seconds. That is, the mail server has to respond to an issued command within a given time span, otherwise Mailfilter will drop the connection and issue an error. TIMEOUT takes an integer value as argument. The default is set to 30 (seconds). .RE .PP .SM VERBOSE = \fBvalue\fR .RS This keyword can be used to define the level of verbosity. It takes an integer as argument. .IP 0 Silent, show nothing at all .IP 1 Only show errors .IP 2 Only show "Deleted..." messages and errors .IP 3 Default; Show "Deleted..." messages, errors and "Examining..." messages .IP 4 Like (3), except this also shows the current account's username .IP 5 Like (4), except this also shows which filter matched which string of an e-mail header .IP 6 Debugging mode; prints out almost everything .RE .SH "DEPRECATED KEYWORDS" There are a few keywords from older versions of Mailfilter that are not supported anymore. The following list contains all these keywords and recommends substitutes. .IP ICASE Use REG_CASE instead. .IP MAXSIZE Use MAXSIZE_ALLOW and MAXSIZE_DENY instead. .IP MODE Use VERBOSE instead. .PP Even though Mailfilter still `silently' supports some of these words, you can not rely on that for future versions. It is highly recommended to update old configuration files. .SH SEE ALSO .BR mailfilter (1), .BR mailfilterex (5), .BR regex (7) .SH COPYRIGHT Copyright \(co 2000-2014 Andreas Bauer .PP This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. mailfilter-0.8.4/man/Makefile.in0000644000175000017500000004171712675277603013445 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Makefile.am: help build documentation files # $Id: Makefile.am,v 1.4.2.1.2.4 2007/01/01 15:32:29 baueran Exp $ # # Copyright (c) 2000 - 2009 Andreas Bauer # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = man ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" man5dir = $(mandir)/man5 NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_COPYRIGHT = @PACKAGE_COPYRIGHT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ man_MANS = mailfilter.1 mailfilterrc.5 mailfilterex.5 EXTRA_DIST = $(man_MANS) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu man/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-man5: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man5dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.5[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ done; } uninstall-man5: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man5dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.5[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-man5 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 uninstall-man5 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-man1 install-man5 \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-man uninstall-man1 uninstall-man5 .PRECIOUS: Makefile mailfilter_manpages.ps: for i in $(man_MANS); \ do \ groff -t -e -mandoc -Tps $$i > $$i.ps; \ groff -t -e -mandoc -Tascii $$i > $$i.txt; \ groff -t -e -mandoc -Thtml $$i > $$i.html; \ done; pdf-am: mailfilter.1.ps for i in *.ps; do ps2pdf $$i; done; clean: rm -f *.pdf *.html *.ps *.txt # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mailfilter-0.8.4/man/mailfilter.10000644000175000017500000000536112333713034013565 00000000000000.TH MAILFILTER "1" "January 2009" Mailfilter "User Manuals" .SH NAME mailfilter \- Filters e-mail, gets rid of spam .SH SYNOPSIS .B mailfilter [\fIOPTION\fR]... .SH DESCRIPTION Mailfilter is a very flexible utility to get rid of unwanted spam mails, before having to go through the trouble of downloading them into the local computer. It offers support for one or many POP accounts and is especially useful for dialup connections via modem, ISDN, etc. .PP Mailfilter connects to any POP mail box and compares part of its content to a set of user defined filter rules. That way the spam gets deleted directly on the mail server. .PP With Mailfilter you can define your own filters (rules) to determine which e-mails should be delivered and which are considered waste. Rules are Regular Expressions, so you can make use of familiar options from other mail delivery programs such as .BR procmail (1) for example. .SH "RETURN VALUE" The mailfilter program normally returns 0 but -1 if an error occurs. However, if it has been invoked with the return-value command line switch, it gives back a positive integer in case there are messages on the POP server. Empty POP accounts would then result in a return value of 0. Using the switch, mailfilter can be embedded into a shell script more easily. .SH "CONFIGURATION" The behaviour of Mailfilter is controlled by command-line options and a configuration file. The program will not start without it. Example configurations can be looked up in the .BR mailfilterex (5) man page, in the INSTALL document or inside the doc/ directory of the Mailfilter distribution. .PP By default Mailfilter tries to read $HOME/.mailfilterrc to get all its settings from. This is the place where all changes should be made, unless it is explicitly specified otherwise. A comprehensive list of all supported options and keywords can be found in the .BR mailfilterrc (5) man page. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR Display help information .TP \fB\-L\fR, \fB\-\-logfile\fR=\fIFILE\fR Specify logfile location .TP \fB\-M\fR, \fB\-\-mailfilterrc\fR=\fIFILE\fR Specify rcfile location .TP \fB\-r\fR, \fB\-\-return-value\fR Enable additional return values .TP \fB\-t\fR, \fB\-\-test\fR Simulate deletes .TP \fB\-i\fR, \fB\-\-ignore-time-stamps\fR Ignore invalid Message-ID time stamps (Do not use unless you know better!) .TP \fB\-v\fR, \fB\-\-verbose\fR=\fILEVEL\fR Specify level of verbosity .TP \fB\-V\fR, \fB\-\-version\fR Display version information .SH "SEE ALSO" .BR mailfilterrc (5), .BR mailfilterex (5), .BR procmail (1), .BR regex (7) .SH COPYRIGHT Copyright \(co 2000-2014 Andreas Bauer .PP This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. mailfilter-0.8.4/man/mailfilterex.50000644000175000017500000002154512333713063014132 00000000000000.TH MAILFILTEREX "5" "January 2009" Mailfilter "File Format Descriptions" .SH NAME mailfilterex \- Mailfilter configuration file examples .SH SYNOPSIS .B $HOME/.mailfilterrc examples .SH DESCRIPTION For a description of the rcfile format and its keywords see the .BR mailfilterrc (5) man page or get a basic set of options from either the INSTALL file or the doc/ directory of the Mailfilter distribution. .PP This man page contains several configuration examples and real-life use cases for the Mailfilter program. .SH "EXAMPLES" If not stated otherwise, the following examples assume you are using extended Regular Expressions, compared to Mailfilter's default, basic type. General information on Regular Expressions can be found in the .BR regex (7) man page or in any good book on UNIX/POSIX. You could also use slightly modified examples from .BR procmail (1) if it is available on your system. .SS Filtering Domains To create a very restrictive set of filter rules at least two keywords should be used: ALLOW and DENY. DENY could match all messages coming from an annoying public mail service, while ALLOW matches messages from a good friend who also uses this annoying public mailer. .PP .RS DENY = "^From:.*public-mail\e\.com" .br ALLOW = "^From:.*friend@public-mail\e\.com" .RE .PP These two lines are enough to block all but your friend's e-mail from the public-mail.com domain. .SS Case Sensivity In general case-sensivity is controlled by the REG_CASE keyword. Having Mailfilter treat expressions case-insensitive is almost always more efficient. .PP .RS REG_CASE = "no" .br DENY = "^Subject:.*win money" .RE .PP In this example Mailfilter would delete all messages with subject lines like `WIN MONEY', `Win Money' or any other mix of capital and non-capital characters. REG_CASE makes filters ignore the case. .PP A more complex set up can be achieved by additionally using the DENY_CASE keyword. .PP .RS DENY_CASE = "^Subject:.*BUSINESS" .RE .PP In this example only e-mails that have `BUSINESS' in their subject match the filter, even though in general Mailfilter ignores the case. So in this example all messages with `business' or `Business' in their subjects would not be affected by this filter. .PP Such an option is very useful if you are not interested in commercial bulk mail that offers amazing business opportunities, but in all your business partners who contact you by e-mail. .SS Defining Friends The keyword ALLOW can be used to override any spam filters. Similar to the earlier example ALLOW defines a `friend'. .PP .RS ALLOW = "^Subject:.*mailfilter" .RE .PP Adding this rule to the rcfile would mean all messages that contain anything about Mailfilter in their subject lines can pass the spam filters. But even friends tend to send large e-mails sometimes to share their joy about the latest joke that just made the round in their office. In such cases a limit can be defined that affects particularly `friends'. .PP .RS MAXSIZE_ALLOW = 500000 .RE .PP Setting MAXSIZE_ALLOW to 500000 means no message can be larger than 500 kBytes. (Scanned `office-jokes' are usually around that size.) .SS Negative Message Filters In order to create a very restrictive spam protection it can be more useful sometimes to define which e-mails should not be deleted instantly and consequently get rid of messages that can not be matched to this criterion - rather than vice versa. This can be achieved by using negation. The typical use case is looking at the message tags `To:' or `Cc:' of an e-mail. .PP .RS DENY <> "^(To|Cc):.*my-email@address\e\.com" .RE .PP Having added such a filter to your personal rule set keeps away a lot of spam that is not directly addressed to your e-mail account. Since this is a very aggressive way of filtering, you are well advised to keep your `friends list' up to date. Also note that the above example, using the logical OR operator, works only with extended Regular Expressions. .SS Scores Instead of setting up spam filters, it is also possible to define scores which can be accumulated until a certain threshold is reached. This is very useful to delete advertisements on mailing lists, for instance. Highscore marks the threshold: .PP .RS HIGHSCORE = 100 .br SCORE +100 = "^Subject:.*viagra" .br SCORE +100 = "^Content-Type:.*html" .br SCORE -100 = "^(To|From):.*my_mailing_list" .RE .PP This simple example is useful to delete mails with a score greater than 100, i.e. if someone sends an HTML mail to my_mailing_list, the message will reach score 0. However, should an HTML mail regarding Viagra reach the list, then the message will classify as spam, because it reached an overall score of 100. .PP The MAXSIZE_SCORE keyword can be used to add to the accumulated score for an e-mail. The following will cause all emails not directly addressed to the recipient and greater than 60000 bytes in size to be deleted (a useful way of rejecting many common MS targeted worms and trojans which can clog up your inbox). .PP .RS HIGHSCORE = 100 .br MAXSIZE_SCORE +50 = 60000 .br SCORE +50 <> "^(To|Cc):.*my-email@address\e\.com" .RE .PP This is a less aggressive way of dealing with e-mail sizes than the using the MAXSIZE_DENY keyword. Note that this example (by using the expression (To|Cc):.*my-email@address\e\.com) works only with extended Regular Expressions. .PP .SS General Message Size Limits It is always a good idea to define a very general size limit for e-mails. Mailfilter uses the keyword MAXSIZE_DENY for that purpose. .PP .RS MAXSIZE_DENY = 200000 .RE .PP Setting it to 200 kBytes can save you a couple of hours, depending on how much mail you get everyday. Messages bigger than that get deleted on the server, unless they match any of the ALLOW rules. To achieve maximum efficiency it makes sense to use both MAXSIZE_DENY and MAXSIZE_ALLOW. No one should block up your mail box, no `friends', no others. .PP A rule of thumb is to be twice as tolerant towards friends than you are towards anonymous people. .SS Dealing with Duplicates Most people want to download a message only once, even though it might have been sent to two or three of their accounts at the same time. The simple line .PP .RS DEL_DUPLICATES = "yes" .RE .PP will take care of duplicates and makes sure that only one copy of a message has to be delivered. .SS Normalisation of Message Subjects Every now and then some clever sales person comes up with the brilliant idea to wrap spam in funny little characters. If you get a message with a subject line similar to this one `,L.E-G,A.L; ,C.A-B`L`E, .B-O`X`', then ordinary filters would fail to detect the junk. .PP .RS NORMAL = "yes" .RE .PP Adding this directive to the rcfile tells Mailfilter to `normalise' subject strings, i.e. leave in only the alpha-numeric characters and delete the rest. `,L.E-G,A.L; ,C.A-B`L`E, .B-O`X`' would then become `LEGAL CABLE BOX' which can easily be matched to a spam filter. .PP Note that Mailfilter first tries to match the original subject string, before it checks on the normalised one. .SS Control Mechanism Since Mailfilter deletes e-mails remotely, before they have to be downloaded into the local machine, it is also important to know what is going on while the program is being executed. The least you should do is define a proper level of verbosity and a log file. .PP .RS LOGFILE = "$HOME/logs/mailfilter-`date +"%h%y"'" .br VERBOSE = 3 .RE .PP Level three is the default verbosity level. Using it, Mailfilter reports information on deleted messages, run-time errors and dates to the screen and the log file. .PP You can use `command' to embedd shell skripts into your path names. In the above example it is used to store log files separately for each month and year. .SS Extended Regular Expressions For advanced applications, the basic Regular Expressions are typically not sufficient. If you know the syntax and usage of the extended expressions, it is almost always a good idea to set REG_TYPE accordingly. .PP .RS REG_TYPE = "extended" .RE .PP Extended expressions are more flexible, but also more sensitive towards syntax errors and the like. Examples in this man page all use extended type. .SH "NOTES" If you are new to Regular Expressions and new to Mailfilter, you might want to experiment a bit, before you accidently delete messages for real. For such cases Mailfilter provides two keywords. TEST can be used to only simulate the deletion of messages and SHOW_HEADERS stores all the e-mail headers that get examined by the program. .PP .RS TEST = "yes" .br SHOW_HEADERS = "$HOME/logs/mailfilter-headers.txt" .RE .PP Use this setup if you are not yet comfortable with the concept of spam filtering. It may help to understand Regular Expressions better and how to use them. .SH SEE ALSO .BR mailfilter (1), .BR mailfilterrc (5), .BR procmailrc (5), .BR procmailex (5), .BR regex (7) .SH COPYRIGHT Copyright \(co 2000-2014 Andreas Bauer .PP This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. mailfilter-0.8.4/contrib/0000755000175000017500000000000012675277621012333 500000000000000mailfilter-0.8.4/contrib/runit.sh0000644000175000017500000000076712333712134013742 00000000000000#!/bin/sh ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Needs getstats.pl # Checks the filters and how often they were active! # Then sorts the ouput in ascending order. # E.g. # 32 Applied filter: '^Received:.*\.tw[[:space:]]'] # 35 Applied filter: '^Received:.*\.br'] # 81 Applied filter: 'Content-Type:.*text/html.*'] # Used also by prozente.pl ##### zgrep Deleted log/mailfilter.log* | getstats.pl | sort | uniq -c | sort -n mailfilter-0.8.4/contrib/deleted.sh0000644000175000017500000000035712333712134014202 00000000000000#!/bin/sh ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Needs runit.sh # Calculates the amount of deleted mails by mailfilter ##### runit.sh | awk '{x=x+$1}; END{print x}' mailfilter-0.8.4/contrib/Makefile.am0000644000175000017500000000027112333712134014267 00000000000000EXTRA_DIST = checkfilter.sh deleted.sh FILES getstats.pl prozente.pl runit.sh spam.tar.gz examined.sh getmailer.pl mfdelete.stat README sort_de_do.sh xmailer.sh chrcformat_05-07 rmcrlf mailfilter-0.8.4/contrib/getmailer.pl0000644000175000017500000000056612333712134014550 00000000000000#!/usr/bin/perl -w ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Get's the mail client from the logfile # by searching for /X-Mailer in the mailheader # Needs SHOW_HEADERS set to yes ##### use strict; while (<>) { if (/X-Mailer(.*)$/) { print "X-Mailer $1\n"; } } mailfilter-0.8.4/contrib/xmailer.sh0000644000175000017500000000111612333712134014227 00000000000000#!/bin/sh ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Needs getmailer.pl # Calculates the amount how often a mailclient # was used. # E.g. # 28 The Bat! (v1.33) # 29 Internet Mail Service # 29 The Bat! (v1.53d) # 33 Wmx-0.3 # 36 Microsoft Outlook CWS, # Is not perfect, because the naming of the mailclients, # particularly for the different OE versions is not unique # But it gives an overview. ##### zgrep -i X-Mailer log/mailfilter.log* | getmailer.pl | awk '{print $3 " " $4 " " $5}' | sort | uniq -c | sort -n mailfilter-0.8.4/contrib/Makefile.in0000644000175000017500000002633012675277603014324 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = contrib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_COPYRIGHT = @PACKAGE_COPYRIGHT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = checkfilter.sh deleted.sh FILES getstats.pl prozente.pl runit.sh spam.tar.gz examined.sh getmailer.pl mfdelete.stat README sort_de_do.sh xmailer.sh chrcformat_05-07 rmcrlf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu contrib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu contrib/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mailfilter-0.8.4/contrib/mfdelete.stat0000644000175000017500000000044012333712134014713 00000000000000#!/bin/sh # mailfilter.delete.stat # timothymoore@nsr500.net # input: mailfilter.log from stdin # Licensed under the same terms as mailfilter, GPL v2 or later. grep '^mailfilter: Deleted ' - |\ awk '{print substr($0,index($0,"[Applied filter:"))}' |\ sort +2 |\ uniq -c |\ sort -nr +0 -1 mailfilter-0.8.4/contrib/README0000644000175000017500000000142212333712134013112 00000000000000Mailfilter Contrib This ia a collection of bits and pieces people sent to extend mailfilter. We try our best to not include malicious stuff in here, but all files in this directory are not part of mailfilter. You should not complain to us if they crash your system or burn all your important data, you USE IT OWN YOUR OWN RISK. All files in this directory should be licensed under the same terms mailfilter is, GPL v2 or later. How to contribute a file: Include a line like # Licensed under the same terms as Mailfilter, GPL v2 or later. in your file, fill out the following form and send all that to Joerg Jaspert File: Author: Purpose: Desc: mailfilter-0.8.4/contrib/sort_de_do.sh0000644000175000017500000000064712333712134014717 00000000000000#!/bin/sh ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Sorts a file which only contains filters for # domains, such as # DENY=^(From|To|Cc):.*@.*handmark\.net # DENY=^(From|To|Cc):.*@.*homebets\.com # DENY=^(From|To|Cc):.*@.*homestar\.us # by the top level domain, then the first level domain etc. ##### cat deny_domain | sort -bdf -t . +3 +2.1 -3 | more mailfilter-0.8.4/contrib/prozente.pl0000644000175000017500000000116012333712134014434 00000000000000#!/usr/bin/perl -w ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Calculates the percentage of the filters' success # Needs runit.sh, deleted.sh and examined.sh ##### $deleted = `deleted.sh`; $examined = `examined.sh`; printf ("%2.2f%% (%d) of all mails (%d) deleted\n", $deleted*100/$examined, $deleted, $examined); print "The top mailfilters are:\n"; @teste = `runit.sh`; foreach(@teste) { $zahl = substr ($_, 0, 4); $rest = substr ($_, 22); if ($zahl > 9) { $prozent = $zahl * 100 / $deleted; printf ("% 6.2f%% for %s", $prozent, $rest); } } mailfilter-0.8.4/contrib/chrcformat_05-070000755000175000017500000000167712333712134015054 00000000000000#!/usr/bin/perl # # chrcformat_05-07: # Change the format of the mailfilterrc from version 0.5 to 0.7 # # Usage: # $ mv ~/.mailfilterrc ~/.mailfilterrc.05 # $ chmod u+x chrcformat_05-07 # $ cat ~/.mailfilterrc.05 | chrcformat_05-07 > ~/.mailfilterrc # # This is a perl-skript. Depending on your system you may have # to adjust the first line. # # --------------------- # Licensed under GPL v2 # --------------------- # # 13.11.2003 # Til Schubbe # $mf_number_keywords = ' VERBOSE PORT MAXSIZE_DENY MAXSIZE_ALLOW ' . 'MAXLENGTH TIMEOUT HIGHSCORE '; while (<>) { $l++; chomp; if (/^(#|\s*$)/) { # skip comment or empty line print "$_\n"; } elsif (/^(([A-Z_]+)(\s+[+-]?[0-9]+)?\s*(=|<>)\s*)(.*)/) { $keyword = $2; if ($mf_number_keywords =~ m/ $keyword /) { print "$_\n"; # let numbers unquoted } else { print "$1\"$5\"\n"; # quote the regex } } else { die "error in line $l: '$_'\n"; } } mailfilter-0.8.4/contrib/spam.tar.gz0000644000175000017500000002746312333712134014336 00000000000000I =spam-020916.tar\{WĢhٵd`1܃DN%MfyXV ~3=BdϞ:1TW׻{rzni4g4zg͵o<[} O'^$ă~zYZ7a 0G}Y*J"Y$e$T/Xx7Wjhq}:C?(DX~$~2"%fa*^ "$/D ?^Ыc=?4H$C)q,>_9:od #o$Nҋ~W^(&eO\x>hk*~Hҧ(Xѓ0"HG"``(ck~ 4$ąi,8Zpy{|Q-N!='#PcdF3w{oiLAG9khi`u*NNO{5!R3['l$ٓ MYyz%)+Dm2[%\[ L*bd4d74sVAЭUsё$')NF^NauQ8n4js!-q:ǯv;Gζq4D܍ swhGr~4Cb؇5!:\ oe%{/ҭ(ߘ.FG9. LjƱxfV|1+#>9>rk 腰hF'rh, *DKh& I[2^''4A&j,vuxغMuGpir ?=&0Jڀy =gL% !YC,?4G~xS}"ܘw{|#Ja;q0] %YdA0zN"a#\X'FaT1C"")?.ljR~h:o64fj_)j:Qj YuH) :#e7 ccLn: cVsQ3G]=m0kPA08+sq{3!Lq_J\KQǰdE@e< M4MҥtFY!A@bT>FQLbQH&"uY/k'Gdǔ5`ʂ0SLw f>T:g|ck$:(h!&BGrYN"#ŵ u9rQN)H;*-*"F?,`hxJHDB78L(qEJLgBr5([Ś1kȲGGo6gTL($fV>z#P^Bd݅Jj :8`ݲQLê?8s=X3Hp1<5\#\3N&5 .u D:٠Lᤲl&NRXj9R4TC7"(.QȌRd)7#Gl`<Hz8 Y#"}E"5jwodgC%EgtzaLDt,p5zi!{}E~X0bQ/c &W[Ki44T$Ed4#bɱ2^?f3MAE~ ]q<1.W2n\'NBkr.!ǧXiw +xvBtO05%-Q:@H]iYb 6(nVث^M6/U퓑7#f݆I^J@[MP`b-NMcjhʁ ^}# "6@?21KCM˭?Z}KMD&1SVE{7JU>CnD1'VS^$&´KEd{>hx412,Qtd30HoQ.5iv{ 1!6I~LP)sam2J| Re]1lHzrUDBT8WyB7B%WlSɖwMH9$N3 nge3SW%/\yƂElprV -,p^(tT Bӣ &@58tXk'nRѐ~'{b40z wDrmeha \UlCq6г'1͹t %6SѮa?հf[@26]"o9pK<;]I|T+MىC'Uv9$DdJ1ŧZZd2Blg)w'vfp~ݨ_4fpIt ^x@.*ъo6߽y0u9,][[|Z4x$Qi҄GssV_c.RN)T>X=@,'PNQQTtH#D =W@y7[Y|9 .XH ;4x;Ϟnlawhϣ4~P`P⪒PƓM;jh46gBIbq=1sǏamo=& c{Njc@ {4۷ ɽw߾uLHe瘆֦11P]7ؗfsL =_L`XFЎHM=~ЩrPT,>>%wQԎ<hx١uޗE5V\3eȄm" \FY҅OBW}-f9Cpǒ熛f߻b&o;tRn??]cH'2A2Ƶ_eB` *DbA{XrI{w0p;^a.,f͑51"C 8(w%)ZWV—VLu)cu:} ^p`Du喙?O>_ڢQgڷ|&߁~4(IGX4F pݝl{GńtB2(P]ఊihz^YWt|#%dމ= b heь]z䀚dw'r`uoI̲ {)us_V5htK c+m[ԓJW~w>N?Yga͵dBK|hvAK;<CŢcP?3W9Uʋtܬ=Fr,mΰY6 $u2eG!G F}OzȀA[iɆ`g0nip6쉒 ;$W׷&as4&Rn7nlRL)Oung6Ɖ' FXc)-^ЧCxVS6vWŋ~wHu_Md`CoOJ罧ox n4K³n{ ZKőlyiyͧc& I4*ņ|2p(AL$z>X(['d [j7֯u#X#G2Qm8m+*Df6E+#T)'_ 9,Xhrq.j*3S*&oWHE 3-c}ݍ}(`0?/7u^[ Fag|imQd'&i{1즚Ksb{Cr}Y%dDh.oX^MX~wkP[DQYH()o Ne_rFL$ CTd\Xl[\FۥļnU͵4_K\s!a4)Q"daœ|a  ,Y}dKUWW&SNw3"AIo eJ؛[ιY{?w:,0DAjgd*cGstP>mJj_r[BaCTP,a顛EvUؕή9M>e%Y"VTl7su7FޗߋoPb!My?:"AwQ)>DkiP"aAynZMl 8a:/5ĜX+ó{۷YRpc,xkћھW/ 5DB/3Z;BqjԿ++,!u hEPrw¾_KXMR|u>$({}9>u ,eu,kU0B B D~/q}wO~<8zo|m>XYyk{/ztc}hu(N^ ws>DCEoJ Mw,Äx4n="6sul]{8O[U! "fs>3 6Zߚ[;6q[" -%v)*D\(RH 7]4t,N*WW~#bw^zz{2;C̕Sߐ2Q`4es{k낽\L/`薫D\%7H1Nuhd-Zs_ClvfjeOWzs(WreAؼcR^aV'.խm K7_ R1aM:@݋lfkӴW9%;'dqad?fБoY5Jfj'y-v1eF6+ +VB<+4uxZJSUV+Ît-vFM27X/Z^,o9O Kq4Vbpf``Si3F_Y_bXك骸k^e/TqvÃB?&fuЈ ټmNz|Wyt5җ1폣YUY͉O|B2lp/\ 3ӒoM\ ˪M.2HT6َKMDzM2a%`ҢI9HkK["Q TIX=C%cEԥ aX3.PPUV0}URja;' iu˔j-ٛr+Oe+%}U tuIv,4#ꇔQs*uy_^k]Q5 N=Ci!9nj،WP!65)4[2yHqV6΋F($ DJ˪)/{9 #qR?U2CZPaIm$zPnsd j.i0z?'Ź,Y;kr4|sH[SؑĖP_L22ekB@v1Zs[͡\|c-JE'E`&LGJgt|rEk殜u3EP W+ 0 64<6C{ =aK,,nў$D?8j_}k8׫Ab:8fk1Uф풆mB ?W.Bn!zS#a}%nKuFB!(SU7y}X' @C,9=%aTDe(PmV!ukz+UG:UǛPRzuǙ!c;3RvP=777kgmkQ@_D<n =WmФvNŦ"vM)lGHUn<$T\_)o w ᥕJ=bD]WY ڴSU"HV9oP s ۵i㖠txSiZu @Hw NB(^ {"۝YM^vKmNh6鼢M)򚁚XAa3,e7iy0H>#% ӭl/-bN]}Cr%@ ~ "uy ߖK7z物h&LwТG{|pO<V̠EʥgX!C'0L.H =BK|1 eݦāqpp,Ԁmd@<.&XnukJ8%=8Mֱt 8}dq0opWm7k.=, Af;78~*-'#|@=}6n-9usi?7ngW4`ӌ8?lqc?ih~j|w61bL0dE3Etw}IP +GBa`ٺfpbg֩ʬq@|6^MXe,+[ҰMWZ|fgaz;c>,쿛왈z9Y]m䘰)Ne jVLébB,}?ߨ>ﳐyCҵO0K]0CEHJ+_pIg!0LnʂV^6ɦe=]/t8/LԠNIKIXb+s(B!av)de֦/IIӦU/1ug:uJc#f뛯vz2i0Z4Yb5{ѿFI*N3=QcJ J&¯Dvΐ!\ -$F4y^-[L{29Ӄ~ڜewղ[I(e|K1HqıZad+2<_ĠiBķUIrkפlʔ8 yYRڬv8Dȃk~,uKb'>PnSJMJ*[sd'RG3c%z~}~En ~wzgIҋ5q*=MWO;YX⯖*:֍u{Tpn\k"q`H"dυ+hIuN?JyE]ܗ#"p,== xF-mC||>4/`x} /qD"h2;8;v02Ó2gNZ^6F?H2L~#-_\ df2 e0~Eo@% !h8k#OWؐPWx??Bm-$}֐y/Pdvp|9(+oJ7:;2s6>A0|ȑYUe#,p#x  ~'b&> s.ga}&f6a.WSs 9,%:{!2d^608zgJE?]aH֗d؃s{{_}ob fN.G,}3ۣЋ۩||57f|%mxE /wpttgW/hęl|#d÷^ٵSY7yqɣ Z0:RT$#jTQ^R?Cf`ӌ@D95Q&mg*;wQ=¾7 p&'}#=NTBW;;I)h +%ZrjM[R/+Qla녿Q!ƔEX~ŢZ9b Yޘ&3MTܣEsܥ»' 0]kЁՍv%A1kMO1DL\]^Hl:&-9'c5\(?Eg+VX^otn5(I M/ rDZʄPLFΎK c$ɩ=^S7 d3Qޣh4WA%S[V۝|z6sw+|۴|f|q&h~M0nV￱pQ+Ax 9om*4:n<ȑfnpcMq kc_/t]U@H۟Ѝq9OLʘI?)¢&Ч(k!Xhbhw,PWQ|vE1پ^aeuhpzkc(OXR}-Rq㣜%-<$)g_kjjS]ooq(&vAC`Υ%|1Kh5//S0Ӥh|@Y$.Ne/P9aI`=u4w}2#R7X,hԺ7?ꭜIl:E]6Dh/3wϣ8R_U#:2ݻĩĔ`HƒgzEXs^<"k9V?}?__'kn^/UP4, -#w7k-1a^v]Gv0+)6^z p\ RW ^jpN rt(Vf7z=by_ 4{'BMn-5tDK֤h0[I,>=O<=O<=O<=O<=[kmailfilter-0.8.4/contrib/examined.sh0000644000175000017500000000064612333712134014367 00000000000000#!/bin/sh ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Calculates the amount of emails examined by mailfilter # This only makes sense if you examine mails only once. # If you do not download and then delete the emails on the # server, this script will give you the wrong number. ##### zgrep Examining log/mailfilter.log* | awk '{x=x+$3}; END {print x}' mailfilter-0.8.4/contrib/checkfilter.sh0000644000175000017500000000047512333712134015060 00000000000000#!/bin/sh ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Checks for deleted mails and send the filter applied # Good for crontab to see if mails you should # get were deleted ##### grep Deleted /home/kay/log/mailfilter.log | mail -s "Mailfilter" kay mailfilter-0.8.4/contrib/getstats.pl0000644000175000017500000000051712333712134014431 00000000000000#!/usr/bin/perl -w ##### # (C) Kay Schulz # Licensed under the same terms as Mailfilter, GPL v2 or later. # Use at your own risk! # Searches for the String Applied in the logfiles. # Needs SHOW_HEADERS set to yes ##### use strict; while (<>) { if (/Applied(.*)$/) { print "Applied $1\n"; } } mailfilter-0.8.4/contrib/rmcrlf0000755000175000017500000000314712333712134013453 00000000000000#!/usr/bin/perl # # rmcrlf - remove carriagereturn- and linefeed-characters from # a file containing mail-headers (like mailfilter.log) if a long # headerline was split into multiple shorter headerlines # ("folding whitespaces" - see RFC 2822, section # 2.2.3. Long Header Fields). Especially Received:-headers often # exceed the 78-character-limit. # # http://www.faqs.org/rfcs/rfc2822.html # ftp://ftp.rfc-editor.org/in-notes/rfc2822.txt # # After using rmcrlf you can egrep the new $out_file with your # regex_to_test to see if it would have matched the header of a # previously received e-mail. This prevents you from loosing # mail because of a buggy regex. # # This is a perl-skript. Depending on your system you may have # to adjust the first line. # # --------------------- # Licensed under GPL v2 # --------------------- # # Til Schubbe, 13.11.2003 # t.schubbe@gmx.de # use warnings; $out_file = "big_2003_07-"; # Output-file; MODIFY HERE $out_file_old = "$out_file" . ".old"; $mailfilter_log = "mailfilter.log"; # Input-file; MODIFY HERE # Delete the file unlink $out_file_old; rename "$out_file", "$out_file_old"; # Split $mailfilter_log into multiple smaller files # man split system "split", "-C", "10m", $mailfilter_log; open OUT, ">$out_file"; # This handles 26 files only (26*10MB=260MB) foreach $f ("a".."z") { unless (open FIL, "); s{\x0d\x0a(\x20|\x09)+} # This not exactly what RFC 2822 tells, but {\x20}gsx; # it increases the readability of the outfile close FIL; print OUT; unlink "xa$f"; } close OUT; mailfilter-0.8.4/contrib/FILES0000644000175000017500000000770112333712134013025 00000000000000File: mbox.sh Author = Anton Filippov Purpose: Mails headers of undeleted mails Desc: This script mails headers of undeleted mails to preview mails and define new unwanted threads. Simple view of List-ID, size and subject of each mail. File: checkfilter.sh Author: Kay Schulz Purpose: Addon Desc: Checks for deleted mails and send the filter applied Good for crontab to see if mails you should get were deleted File: chrcformat_05-07 Author: Til Schubbe Purpose: Configuration helper Desc: Change the format of the mailfilterrc from version 0.5 to 0.7 File: deleted.sh Author: Kay Schulz Purpose: Addon Needs: runit.sh Desc: Calculates the amount of deleted mails by mailfilter File: examined.sh uthor: Kay Schulz Purpose: Addon Desc: Calculates the amount of emails examined by mailfilter This only makes sense if you examine mails only once. If you do not download and then delete the emails on the server, this script will give you the wrong number. File: getmailer.pl Author: Kay Schulz Purpose: Addon Needs: SHOW_HEADERS set to yes in mailfilter configuration Desc: Get's the mail client from the logfile by searching for /X-Mailer in the mailheader File: getstats.pl Author: Kay Schulz Purpose: Addon Needs: SHOW_HEADERS set to yes in mailfilter configuration Desc: Searches for the String Applied in the logfiles. File: prozente.pl Author: Kay Schulz Purpose: Addon Needs: runit.sh, deleted.sh, examined.sh Desc: Calculates the percentage of the filters' success File: mfdelete.stat Author: Tim Moore Purpose: Addon Desc: Determine which delete rules are used most Script reads mailfilter log and sorts by delete rule matches using common unix utilities. File: rmcrlf Author: Til Schubbe Purpose: Addon, Configuration helper Desc: remove carriagereturn- and linefeed-characters from a file containing mail-headers (like mailfilter.log) if a long headerline was split into multiple shorter headerlines ("folding whitespaces") - see skript for details File: runit.sh Author: Kay Schulz Purpose: Addon Needs: getstats.pl Desc: Checks the filters and how often they were active! Then sorts the ouput in ascending order. E.g. 32 Applied filter: '^Received:.*\.tw[[:space:]]'] 35 Applied filter: '^Received:.*\.br'] 81 Applied filter: 'Content-Type:.*text/html.*'] File: selectheader Author: Til Schubbe Purpose: Addon Desc: Whith this skript you can select mails from your mailfilter.log which match a certain regex. This can be useful 1. to check if the header you already received would match a (newly created) filter, 2. to create a reliable statistic. File: sort_de_do.sh Author: Kay Schulz Purpose: Addon Desc: Sorts a file which only contains filters for domains, such as DENY=^(From|To|Cc):.*@.*handmark\.net DENY=^(From|To|Cc):.*@.*homebets\.com DENY=^(From|To|Cc):.*@.*homestar\.us by the top level domain, then the first level domain etc. File: spam.tar.gz Author: Franck Pommereau Purpose: Addon, Configuration helper. Desc: Spam is a Perl script which should help in removing unsolicited mails (spams). It parses mails and produces rules suitable to Mailfilter, which makes it possible to remove them from your POP server. Spam will not do everything for you but it will help to quickly update your Mailfilter configuration. File: xmailer.sh Author: Kay Schulz Purpose: Addon Needs: getmailer.pl Desc: Calculates the amount how often a mailclient was used. E.g. 28 The Bat! (v1.33) 29 Internet Mail Service 29 The Bat! (v1.53d) 33 Wmx-0.3 36 Microsoft Outlook CWS, Is not perfect, because the naming of the mailclients, particularly for the different OE versions is not unique But it gives an overview. mailfilter-0.8.4/INSTALL0000644000175000017500000002004212333712134011622 00000000000000Mailfilter INSTALL -=-=-=-=-=-=-=-=-= 0. REQUIREMENTS To run Mailfilter it's best to have a Unix-like operating system, but it also compiles fine with Windows 9x/NT/2000 if additional libraries and tools are installed (e.g., Cygwin, or DJGPP). 0.1 ADD-ON LIBRARIES & TOOLS To compile/install Mailfilter you also need to have a fairly recent version of a C and C++ compiler (e.g., GCC >= 3.0) and your system must support BSD-type sockets (in general, all Unix systems do meet this criterion). For compilation you will also need the programs flex and bison. NOTE: Please keep in mind that the GNU versions of flex and bison are `somewhat' peculiar. It is *highly* recommended to use your distribution's very own releases of these tools, rather than compiling from source (e.g. get them from the BSD-ports collection, or via apt). However, if you must get the source for flex (e.g. because your distribution ships a broken GNU flex), then use http://lex.sf.net/, but *never* GNU flex! It is broken! 0.2 SSL SUPPORT Should SSL support be desired, the OpenSSL library (or, an equivalent substitute) must be present. Potential SSL support should then be automatically detected by the configure script. 1. CONFIGURE If you have downloaded and installed a binary distribution of Mailfilter, then there is no need to read the following instructions. Continue with section 3 and 4 instead. If you have downloaded a compressed source code archive, then please proceed the following steps. Change to the Mailfilter distribution directory (where the INSTALL file can be found, e.g. /home/tux/mailfilter-x.y.z) and run ./configure For a list of available options for configuration, call configure with the --help parameter. Running configure creates a Makefile in your source code directory. If you like, have a look at it before you continue, though this should not be necessary, unless you want to have debugging information included or things like that. 2. INSTALL After configure has successfully guessed your system's specific values, you can compile the Mailfilter source code with make NOTE: On Linux systems make typically refers to GNU gmake. However, some operating systems (e.g., FreeBSD) ship with different versions of make and you will need to explicitly use the command 'gmake' (and later 'gmake install') in order to get Mailfilter compiled correctly. If you have not changed any of the predefined values for configure then Mailfilter will be installed in /usr/local/bin. Become 'root' now and run make install That's it - you're done with the installation, but please read on to find out what you have to do in order to make Mailfilter work. (IMPORTANT!!) 3. SET-UP MAILFILTER Before you can execute the Mailfilter application you must create a rcfile called .mailfilterrc in your home directory, e.g. /home/tux/.mailfilterrc. In this file you must specify the accounts you want Mailfilter to check for spam. Here is a very basic set of example rules you could use. I suggest you simply copy and paste it. For further information and a list of all supported key- words, please also read the mailfilterrc(5) and mailfilterex(5) man pages. More rcfiles are available in the doc/ directory of the Mailfilter distribution. # ----------------------------------------------------------- # Logile path (be sure you have write permission in this # directory; you MUST specify a logfile) LOGFILE = "$HOME/logs/mailfilter.log" # ----------------------------------------------------------- # Level of verbosity # # 0 Silent, show nothing at all # 1 Only show errors # 2 Only show "Deleted..." messages and errors # 3 Default; Show "Deleted..." messages, errors # and "Examining..." messages # 4 Like (3), except this also shows the current # account's username # 5 Like (4), except this also shows which filter # matched which string of an e-mail header # 6 Debugging mode; prints almost everything VERBOSE = 3 # ----------------------------------------------------------- # Server list (Do not change the order of the fields!!) # Note: Port 110 is usually the port APOP and POP3 servers use, # port 995 is required if (say) POP3/SSL is specified. SERVER = "pop.server.com" USER = "username" PASS = "password" PROTOCOL = "pop3" PORT = 110 SERVER = "pop.secondserver.com" USER = "anotherusername" PASS = "anotherusername" PROTOCOL = "pop3/ssl" PORT = 995 # ----------------------------------------------------------- # Do you want case sensitive e-mail filters? { yes | no } REG_CASE = "no" # ----------------------------------------------------------- # Sets the type of Regular Expression used { extended | basic } # # (The default is 'basic', don't change unless you know what you # are doing. Extended REs are more complex to set up.) REG_TYPE = "extended" # ----------------------------------------------------------- # Maximum e-mail size in bytes that should not be exceeded. MAXSIZE_DENY = 1000000 # ----------------------------------------------------------- # Set maximum line length of any field in the message header MAXLENGTH = 998 # ---------------------------------------------------------- # Filter rules for detecting spam (each rule must be placed # in a separate line) # These filters detect certain unpleasant e-mail subjects: DENY = "^Subject:.*Get penis enlargement" DENY = "^Subject:.*WIN MONEY" # This one filters mail from a certain person: DENY = "^From:.*spammer@any_spam_organisation\.com" # This one filters mail from everyone at a certain organisation: DENY = "^From:.*@any_provider_that_spams\.org" # We don't want any of those 'LEGAL' messages either # while stuff with 'legal' in the subject still interests us: DENY_CASE = "^Subject:.*LEGAL" # ----------------------------------------------------------- # Normalises the subject strings before parsing, e.g. # ',L.E-G,A.L; ,C.A-B`L`E, +.B-O`X` ;D`E`S,C;R,A.MB;L,E.R-]' # becomes 'LEGAL CABLE BOX DESCRAMBLER' which can be filtered. # # If NORMAL is switched on, Mailfilter tries to apply filters # to both the normalised and the original subject. NORMAL = "yes" # ----------------------------------------------------------- # The maximum e-mail size in bytes that messages from friends # should not exceed. Set this to 0 if all your friends (ALLOW) # can send messages as long as they want. MAXSIZE_ALLOW = 0 # ---------------------------------------------------------- # Set list of friends that always pass, if they do not # exceed the message length of MAXSIZE_ALLOW # This rule allows all mail from a friend who was unlucky enough # to have signed up with a spam organisation. With DENY we # block everyone else from that domain though! See above! ALLOW = "^From:.*a_friend_with_account@any_provider_that_spams.org" # Of course we allow e-mail from anyone who has something to say about # mailfilter: ALLOW = "^Subject:.*mailfilter" # We also let our girlfriend send any e-mail she wants: ALLOW = "^From:.*my_girlfriend@any_provider\.com" It is _very_ important to not change the order of the SERVER, USER, PASS, PROTOCOL and PORT fields. Generally the rcfile is not case-sensitive, which means it does not matter whether the keywords are spelled in capitals or not. You can place white space characters before and in between a command and its parameters, but usually not after the parameter! To find out how to set up more complex rules and options, please refer to the man pages and the FAQ provided with the Mailfilter program, or simply look up the webpage. If you do not set up a .mailfilterrc file, the program refuses to start. It is also recommended to change the permissions of this file to read-only, as it contains all your passwords en clear. 4. RUN MAILFILTER Now try it out! Mailfilter can be started with mailfilter on the command line. Be sure you have set up an individual rcfile (e.g. $HOME/.mailfilterrc) in your home directory. If you don't know how to do this, please read section 3 of this document again, or consult the Mailfilter FAQ in the doc/ directory for further information. mailfilter-0.8.4/mailfilter.spec.in0000644000175000017500000000652312333712134014212 00000000000000# mailfilter.spec: used for building rpms. # $Id: mailfilter.spec.in,v 1.18.2.4.2.1 2004/06/02 19:45:37 baueran Exp $ # -*- rpm-spec -*- %define name mailfilter %define version 0.7.1 %define release 1 Name: %{name} Version: %{version} Release: %{release} Summary: A program that filters your incoming e-mail to help remove spam. Copyright: GPL Group: Applications/Internet Source: %{name}-%{version}.tar.gz Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://mailfilter.sourceforge.net/ Packager: Andreas Bauer %description Mailfilter is very flexible utility for UNIX (-like) operating systems to get rid of unwanted e-mail messages, before having to go through the trouble of downloading them to the local computer. It offers support for one or many POP accounts and is especially useful for dialup connections via modem, ISDN, etc. Install Mailfilter if you'd like to remove spam from your POP mail accounts. %prep %setup -q %build %configure make %install %makeinstall %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc contrib %doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS ABOUT-NLS %doc doc/FAQ doc/README.Slackware doc/README.Windows doc/rcfile.example1 doc/rcfile.example2 doc/rcfile.example2.ru doc/rcfile.example1.it doc/win_Makefile.am doc/win_configure.in doc/win_src_Makefile.am doc/supported_servers %{_bindir}/mailfilter %{_datadir}/locale/*/LC_MESSAGES/mailfilter.mo %{_mandir}/man1/mailfilter.1* %{_mandir}/man5/mailfilterrc.5* %{_mandir}/man5/mailfilterex.5* %changelog * Sat Oct 26 2002 Andreas Bauer - Added contrib/ to the list of files being packaged * Tue Feb 20 2002 Andreas Bauer - Added doc/supported_servers * Sat Dec 01 2001 Andreas Bauer - Chucked out the "misplaced" make install-strip * Sat Jul 28 2001 Andreas Bauer - Added translations * Mon Jul 09 2001 Andreas Bauer - Changed version number and added rcfile-examples * Thu May 31 2001 Andreas Bauer - Changed to %configure, make install-strip, %makeinstall * Wed Apr 25 2001 Andreas Bauer - Removed BUGS from the distribution and added ABOUT-NLS - Changed installation part to %make and %makeinstall * Fri Jan 26 2001 Andreas Bauer - Removed api/ from the doc/ directory - Added more man pages - Added INSTALL file - Added wildcards to man page file names * Wed Jan 24 2001 Andreas Bauer - Added new man path * Thu Jan 18 2001 Andreas Bauer - Changed to standard paths defined in /usr/lib/rpm/macros * Tue Jan 09 2001 Andreas Bauer - Adjusted to new version and moved location of doc files * Fri Dec 22 2000 Andreas Bauer - Adjusted to a new version and fixed a couple of small things * Sat Dec 09 2000 Matthew R. MacIntyre - Added api documentation to rpm * Wed Dec 06 2000 Matthew R. MacIntyre - Added missing THANKS file to documentation files list * Mon Dec 04 2000 Matthew R. MacIntyre - Initial creation of rpm package - Added manual page