--- mailagent-3.1-81.orig/Configure +++ mailagent-3.1-81/Configure @@ -6206,7 +6206,7 @@ : determine where mail is spooled case "$maildir" in -'') dflt=`./loc . /usr/spool/mail /usr/spool/mail /usr/mail /var/mail`;; +'') dflt=`./loc . /var/spool/mail /var/spool/mail /usr/spool/mail /usr/mail /var/mail`;; *) dflt="$maildir";; esac echo " " @@ -6249,7 +6249,7 @@ : determine where mail is spooled case "$mailfile" in '') - dflt=`./loc . XXX /usr/spool/mail /usr/mail /var/mail` + dflt=`./loc . XXX /var/spool/mail /usr/spool/mail /usr/mail /var/mail` case "$dflt" in XXX) dflt='%~/mailbox';; *) dflt="$dflt/%L";; @@ -6383,7 +6383,7 @@ -e 's/^.*"\(.*\)".*\$/'\$filebase'$_o: \1/' \\ -e 's|: \./|: |' \\ -e 's|: *$|: '\$srcfile'|' | \\ - $grep -v '^#' | $sort | $uniq + $grep -v '^#' | grep -v '<.*>' |$sort | $uniq done exit 0 EOS --- mailagent-3.1-81.orig/FAQ +++ mailagent-3.1-81/FAQ @@ -61,13 +61,13 @@ 2b] Locate the filter program (it will be filter or filter.sh depending on whether you choose the C or the shell version respectively) under some - directory like /usr/local/lib/mailagent. From now on, we'll assume we - use the C filter and that it is located under /usr/local/lib/mailagent. + directory like /usr/lib/mailagent. From now on, we'll assume we + use the C filter and that it is located under /usr/lib/mailagent. -3] Copy the file /usr/local/lib/mailagent/mailagent.cf as ~/.mailagent and - edit it to configure your system correctly. You will see two distinct - sections in that file and you need to set-up properly the first one, the - "Configuration section". +3] Copy the file /usr/share/doc/mailagent/examples/rc/dot.mailagent.gz + as ~/.mailagent and edit it to configure your system correctly. You + will see two distinct sections in that file and you need to set-up + properly the first one, the "Configuration section". If you have a version of mailagent that is recent enough (at least 3.0 PL32) then you can create an initial configuration very easily and quickly by @@ -117,14 +117,30 @@ 5b] Enter the following in ~/.rules Subject: /test/ { SAVE testing }; + ### final default rule + { SAVE incoming }; The meaning of that rule should be pretty obvious: If we receive a mail whose subject line contains the word "test", then we save that mail in a folder named "testing", under the default folder directory (~/Mail). + == IMPORTANT NOTE == + The final default rule is needed on Debian systems since debian + MDA policy requires MDA's to be sgid mail, but making mailagent + sgid anything would be a security risk. Thus, we must *ALWAYS* + save any mail message that gets this far; letting it fall back to + the system mailbox may cause mail to be garbled. + + See /usr/share/doc/mailagent/SECURITY for details + + **You need that deafult rule** + 5c] Create a ~/.forward file as follows: - "|exec /usr/local/lib/mailagent/filter >> /export/home/ram/.bak 2>&1" + "|exec /usr/lib/mailagent/filter >> /export/home/ram/.bak 2>&1" + + Please nore leading and trailing double quotes are a + mandatory part of the line. The meaning of that line is the following: every mail should be piped (hence the leading "|" character) onto the filter program, and any @@ -138,7 +154,7 @@ That's a part that makes your .forward unique (for zealous optimizing sendmail that are dead wrong about optimizing!) and that can save you a lot of trouble if anything goes wrong! Just look at your ~/.bak! - * Replace /usr/local/lib/mailagent/filter with the proper filter path + * Replace /usr/lib/mailagent/filter with the proper filter path on your machine. 5d] Note that on many systems, you need to ensure your .forward will be @@ -163,8 +179,8 @@ 7c] Look out in ~/Mail/testing. You should find there the message whose Subject line contained the word "test". Then make sure the other message has been - delivered to your regular mailbox. (Since no match occurred in your rule - file, the mail is left in your mailbox by default). + delivered to the folder incoming. (Since no match occurred, the + mail is left in the folder specified in the default rule). 7d] TROUBLESHOOTING * If your mail was not properly delivered, please make sure your rule file @@ -343,6 +359,12 @@ support for NFS-secure locks and also can use non-standard locking procedures, configurable from within ~/.mailagent (variables "nfslock" and "mboxlock"). +Under Debian, locking is not supported since locks require mailagent +to be sgid mail, and given that arbitary code can be run by any user +(see the PERL directive), this would be a major security risk). + + + However, it cannot support locking on a rule basis (yet!). The author is willing to raise the priority of that item if one comes up with a legitimate need for that feature that could not be worked-around by a PERL escape. ;-) --- mailagent-3.1-81.orig/README +++ mailagent-3.1-81/README @@ -36,11 +36,28 @@ rule belonging to a set of modes and being applied only when the current working mode matches one of the modes associated with the rule. +NOTE +==== + +You must install a basic rules fle on Debian systems, namely, one that +has minimally somthing like +###################################################################### +### final default rule +{ + SAVE incoming +}; +###################################################################### +This is required since Debian MDA policy requires MDA's to be sgid +mail to lock the /var/spool/mail directory, and making mailagent sgid +anything would be a security risk. + If you do not install any filtering rules, then some default hardwired -rules apply. Those simply leave all the messages in your mailbox, but -process mails whose Subject line is Command (@SH hooks). You may -override this default behavior by writing your own set of rules, -and maybe disable this processing entirely. +rules apply. Those simply leave all the messages in your mailbox +(which may cause mail to be garbled on Debian systems), but process +mails whose Subject line is Command (@SH hooks). You may override this +default behavior by writing your own set of rules, and maybe disable +this processing entirely. + I have included in the subdirectory 'examples' a set of files which are part of my own mail environment, in the hope that they will be useful. --- mailagent-3.1-81.orig/agent/examples/mchk +++ mailagent-3.1-81/agent/examples/mchk @@ -2,7 +2,7 @@ # @(#) Scans all the mailboxes to spot any new mail # Compute location of the spool mailbox -spool=/usr/spool/mail +spool=/var/spool/mail if test -d /usr/mail; then spool=/usr/mail; fi --- mailagent-3.1-81.orig/agent/examples/profile +++ mailagent-3.1-81/agent/examples/profile @@ -8,7 +8,7 @@ elif test -d /usr/mail; then mailbox=/usr/mail/ram else - mailbox=/usr/spool/mail/ram + mailbox=/var/spool/mail/ram fi # List of folders to look at for new mail --- mailagent-3.1-81.orig/agent/filter/environ.h +++ mailagent-3.1-81/agent/filter/environ.h @@ -14,7 +14,7 @@ * $Id: environ.h 1 2006-08-24 13:24:12Z rmanfredi $ * * Copyright (c) 1990-2006, Raphael Manfredi - * + * * You may redistribute only under the terms of the Artistic License, * as specified in the README file that comes with the distribution. * You may reuse parts of this distribution only within the terms of @@ -34,7 +34,7 @@ #define _environ_h_ extern void print_env(); /* Print the environment */ -extern void init_env(); /* Initializes the environment table */ +extern int init_env(char **envp); /* Initializes the environment table */ extern char **make_env(); /* Make a new system environment */ extern int append_env(); /* Append value to environment */ extern int prepend_env(); /* Prepend value to environment */ --- mailagent-3.1-81.orig/agent/filter/logfile.c +++ mailagent-3.1-81/agent/filter/logfile.c @@ -47,6 +47,8 @@ #include #include #include +#include +#include #ifdef I_STDLIB #include @@ -105,7 +107,6 @@ extern Time_t time(); /* Time in seconds since the Epoch */ extern char *strsave(); /* Save string in memory */ -extern int errno; /* System error report variable */ /* VARARGS2 */ public void add_log(level, format, arg1, arg2, arg3, arg4, arg5) @@ -243,6 +244,7 @@ #if !defined(HAS_STRERROR) && defined(HAS_SYS_ERRLIST) extern int sys_nerr; /* Size of sys_errlist[] */ extern char *sys_errlist[]; /* Maps error code to string */ + #endif #ifdef HAS_STRERROR --- mailagent-3.1-81.orig/agent/magent.sh +++ mailagent-3.1-81/agent/magent.sh @@ -28,7 +28,7 @@ # $Id: magent.sh,v 3.0.1.17 2001/03/17 18:07:49 ram Exp ram $ # # Copyright (c) 1990-2006, Raphael Manfredi -# +# # You may redistribute only under the terms of the Artistic License, # as specified in the README file that comes with the distribution. # You may reuse parts of this distribution only within the terms of @@ -380,10 +380,10 @@ &queue_mail($file_name, 'fm'); unlink $lockfile; exit 0; # Do not continue - } + } # If invoked from a tty and not in test mode, do not process queue - $process_queue = 0 if -t STDOUT && !$test_mode; + $process_queue = 0 if -t STDOUT && !$test_mode; } if ($process_queue) { @@ -505,7 +505,7 @@ $NO_FEEDBACK = 0; # No feedback wanted $FEEDBACK = 1; # Feed result of command back into %Header $FEEDBACK_ENCODING = 2; # Same as $FEEDBACK, but probe body for encoding - + # The filter message local($address) = &email_addr; $FILTER = @@ -701,10 +701,10 @@ # override value computed by Configure. $maildir = $cf'maildrop if $cf'maildrop ne ''; # If Configure gave a valid 'maildir', use it. Otherwise compute one now. - unless ($maildir ne '' && -d $maildir) { - $maildir = "/usr/spool/mail"; # Default spooling area - -d $maildir || (-d "/usr/mail" && ($maildir = "/usr/mail")); - -d $maildir || ($maildir = $cf'home); + unless ($maildir ne '' && -d "$maildir") { + $maildir = "/var/spool/mail"; # Default spooling area + -d "$maildir" || ( -d "/usr/mail" && ($maildir = "/usr/mail")); + -d "$maildir" || ($maildir = "$cf'home"); } local($mbox) = $cf'user; # Default mailbox file name $mbox = $cf'mailbox if $cf'mailbox ne ''; # Priority to config variable @@ -717,7 +717,7 @@ $mailbox =~ s/%~/$cf'home/go; # %~ stands for the user directory $mailbox =~ s/%L/$cf'user/go; # %L stands for the user login name $mailbox =~ m|(.*)/.*|; # Extract dirname - $mailbox = "$cf'home/mbox.$cf'user" unless (-f "mailbox" || -w "$1"); + $mailbox = "$cf'home/mbox.$cf'user" unless (-f "$mailbox" || -w "$1"); &add_log("WARNING using $mailbox for mailbox") if $loglvl > 5; } $mailbox; --- mailagent-3.1-81.orig/agent/man/edusers.SH +++ mailagent-3.1-81/agent/man/edusers.SH @@ -18,35 +18,35 @@ $rm -f edusers.$manext $spitshell >edusers.$manext <mailagent.$manext <', pattern '/^Subject: [Cc]ommand/' matching '/^Subject: [Cc]ommand/' on 'All' (<1,->) was false -NOTICE no match, leaving in mailbox +selector 'All' on '<1,->' +matching . on 'All' (<1,->) was true +saving in folder incoming XEQ (LEAVE) starting LEAVE -starting SAVE /usr/spool/mail/ram -LEFT [qm7831] in mailbox +starting SAVE /home/ram/mail/incoming +SAVED [qm7831] in folder incoming FILTERED [qm7831] from ram (Raphael Manfredi) mailagent continues mailagent exits @@ -994,9 +1025,9 @@ machine, especially if it is a dedicated NFS server. If you are a system administrator installing \fImailagent\fR and expect many people to use it, keep this in mind. -''' -''' O p t i o n s -''' +.\" +.\" O p t i o n s +.\" .SH OPTIONS There is a limited set of options which may be used when calling the mailagent directly. Only one special option at a time may be specified. @@ -1122,12 +1153,17 @@ is the name of a file holding one mail to be processed. This is the normal calling procedure from the filter, the argument being the location of the queued mail. -''' -''' D e f a u l t R u l e s -''' +.\" +.\" D e f a u l t R u l e s +.\" .SH "USING THE DEFAULT RULES" -If you do not want to use the filtering feature of mailagent, then the -default built-in rules will be used. Those are really simple: all the mails +If you do not want to use the filtering feature of mailagent, +.B (NOTE: +This may cause mail to be garbled on Debian systems, since +\fImailagent\fR can not lock the spol directory under Debian policy +restrictions) +then the default built-in rules will be used. Those are really +simple: all the mails are left in your mailbox and mails with a line "Subject: Command" anywhere in the message will be processed. Commands are looked for on lines starting with "@SH". The remaining of the line is then given to a shell for execution. @@ -1141,7 +1177,7 @@ .PP If you do not want to use the default rules, you may skip the remaining of this section. -''' +.\" .SS "Configuring Help" .PP The help text mailagent will send to people must be copied from @@ -1158,7 +1194,7 @@ .PP You may use the default help file or design one that will give even more details to the poor user. -''' +.\" .SS "Distribution Files" .PP The two files \fIproglist\fR and \fIdistribs\fR held in \fILib/mailagent\fR @@ -1210,7 +1246,7 @@ .PP You may include comments in both files: all lines starting with a leading # will be ignored. -''' +.\" .SS "Testing Your Mail Agent" .PP It is now time to make sure your mailagent works. Send yourself the following @@ -1245,9 +1281,9 @@ at the issued log messages in your Log directory. Make sure that the file listed in the \fIplsave\fR entry of your \fI~/.mailagent\fR is correctly updated after a \fImaillist\fR has been run. -''' -''' F i l t e r i n g R u l e s -''' +.\" +.\" F i l t e r i n g R u l e s +.\" .SH "USING THE FILTER" The \fImailagent\fR can also be used as a filter: mail is parsed and some actions are taken based on simple \fIlex\fR-like rules. Actions range from @@ -1258,6 +1294,7 @@ From: root { FORWARD postmaster }; To: gue@eiffel.fr { POST mail.gue }; Subject: /metaconfig/ { SAVE dist }; +{ SAVE incoming }; .Ef There are three distinct rules. Rules are applied in sequence, until one matches (so the order is important). Any mail coming from \fIroot\fR will be @@ -1265,8 +1302,8 @@ a mail coming from a mailing list. The mail is posted on a local newsgroup \fImail.gue\fR. Mails whose subject contains the word "metaconfig" will be saved in a folder \fIdist\fR for delayed reading and will not appear in the -main mailbox. If no rule matched, the mail is left in the mailbox. -''' +main mailbox. If no rule matched, the mail is left in the folder incoming. +.\" .SS "Rule File Syntax" .PP Here is a non-formal description of the rule file. Parsing of the file is done @@ -1453,7 +1490,7 @@ Note the use of the file inclusion: all the users listed in file \fIusers\fR will have their mail left in the system mailbox. The usual rules apply for these loaded patterns. -''' +.\" .SS "Selector Combination" .PP A single rule may have a various set of selectors. For instance, in the @@ -1550,7 +1587,7 @@ # Matches if \fIram\fR is listed in the \fITo\fR OR the \fICc\fR line To Cc: ram .Ef -''' +.\" .SS "Minimal Header" .PP A minimal set of selectors are guaranteed to be set, regardless of the @@ -1599,7 +1636,7 @@ the \fIReturn-Path\fR is used (with <> stripped out), or the \fIFrom:\fR line is parsed to extract the e-mail address of the author. .PD -''' +.\" .SS "Variables" .PP The mailagent supports user-defined variables, which are globals. They are @@ -1664,7 +1701,7 @@ you do not use the variable any more, it will be removed when its age becomes greater than the maximum age specified by the \fIagemax\fR configuration variable. -''' +.\" .SS "Regular Expressions" .PP All the regular expressions follow the V8 syntax, as in \fIperl\fR, with all @@ -1731,7 +1768,7 @@ recorded within %&, each set terminated with a ';'. If a negated selector is used, then %& will record all the fields which did not contain the pattern, assuming the selection succeeded (otherwise nothing is recorded). -''' +.\" .SS "Available Actions" .PP The following actions are available as filtering commands. Case is irrelevant @@ -1813,7 +1850,7 @@ .TP ASSIGN \fIvar value\fR Assign the value to the user-defined variable \fIvar\fR, which may further be -accessed as \fI%#var\fR for macro substitution or \fI#var\fR in the TR and +accessed as \fI'%#var'\fR for macro substitution or \fI#var\fR in the TR and SUBST commands in place of the variable name. Note that there is no leading \fI#\fR in front of the variable name. The \fIvalue\fR you provide is first ran through \fIperl\fR to see if it contains some arithmetic operations. If the @@ -1924,7 +1961,7 @@ with transfer-encoded bodies by itself. To make the program task simpler, you can supply the .B -b -switch wich will let mailagent decode the whole body for you, suppressing +switch which will let mailagent decode the whole body for you, suppressing any Content-Transfer-Encoding header (implying "binary"). This is an invalid message format for sending the message, but it makes processing easier. You still have to parse the MIME parts yourself though. @@ -1994,7 +2031,8 @@ .TP LEAVE Leave incoming mail in the system mailbox. This is the default action if no -rule matched or if no saving occurred. +rule matched or if no saving occurred. This is not recommended on +Debian systems. (Fails if mail cannot be saved) .TP MACRO [\fB\-rdp\fR] \fIname\fR [= (\fIvalue\fR, \fItype\fR)] @@ -2090,7 +2128,7 @@ with transfer-encoded bodies by itself. To make the program task simpler, you can supply the .B -b -switch wich will let mailagent decode the whole body for you, suppressing +switch which will let mailagent decode the whole body for you, suppressing any Content-Transfer-Encoding header (implying "binary"). This is an invalid message format for sending the message, but it makes processing easier. You still have to parse the MIME parts yourself though. @@ -2286,7 +2324,9 @@ .TP STORE \fIfolder\fR Save message in the specified folder and leave a copy in the system mailbox. -The \fIfolder\fR parameter follows the same naming conventions as in SAVE. +The \fIfolder\fR parameter follows the same naming conventions as in +SAVE. Again, because of locking issues, leaving mail in the mailbox is +not recommended on Debian machines. (Fails if message cannot be saved either in the \fIfolder\fR or in the mailbox) .TP STRIP \fIheader_fields_list\fR @@ -2390,7 +2430,7 @@ \fIcron\fR. Don't try to use it with an MH folder or a directory folder or it will behave like SAVE. (Fails if message cannot be written) -''' +.\" .SS "Execution Status" .PP Almost all the actions modify a variable which keeps track of the execution @@ -2411,7 +2451,7 @@ between a non-execution and a successful execution of the specified command. There may be a change in the way this scheme works, but it should remain backward compatible. -''' +.\" .SS "Perl Escape" .PP By using the PERL command, you have the ability to perform filtering and other @@ -2586,7 +2626,7 @@ in the manual page, it may be changed without notice by any further patch. (And this does not say that documented features may not change also... It's just more unlikely, and patches would clearly state that, of course.) -''' +.\" .SS "Program Environment" .PP All the programs started by mailagent via RUN and friends inherit the @@ -2599,7 +2639,7 @@ All the programs are executed from within the \fIhome\fR directory. This includes scripts started via the PERL command and mail hooks. The latter will be described in detail further down. -''' +.\" .SS "File inclusion" .PP Some commands like FORWARD or KEEP allow you to specify a file name between @@ -2613,7 +2653,7 @@ The file should list each parameter (be it an address, a header or a pattern) on a line by itself. Shell-style comments (#) are allowed within that file and leading white spaces are trimmed (but not trailing spaces). -''' +.\" .SS "Macros Substitutions" .PP All the commands go through a macro substitution mechanism before being @@ -2736,7 +2776,7 @@ %[To] Value of the header field (here To:) .PD -''' +.\" .SS "User-defined Macros" .PP The mailagent lets you define your own macros in two ways: at the filter @@ -2816,7 +2856,7 @@ the command defines a new macro by using \fIpush\fR, and the other options each let you access one of the other interface functions. Note that macro definitions persist across APPLY commands. -''' +.\" .SS "User-defined Logging" .PP Most of the time when writing a new mailagent filtering command or an @@ -2853,7 +2893,7 @@ If you call \fI&main'usr_log\fR with a non-existent logfile name, logging is redirected to the default system-wide logfile defined in your \fI~/.mailagent\fR. -''' +.\" .SS "Dynamically Loading New Code" .PP In you perl routines (user-defined commands, perl hooks, etc...), you may @@ -2889,7 +2929,7 @@ (non-existent file, most probably), \fB0\fR if the file was loaded but contained a syntax error or did not define the specified function, and \fB1\fR for success. -''' +.\" .SS "Using Once Commands" .PP The ONCE constructs lets you specify a given command to be run once every @@ -2923,7 +2963,7 @@ done on a fixed word, hence all the timestamps would be located in the file \fIHash/m/e\fR (where \fIHash\fR is the name of your hashing directory, which is the \fIhash\fR parameter in the configuration file). -''' +.\" .SS "Using Tags in Record and Unique" .PP Both the RECORD and UNIQUE commands let you specify a comma-separated tag list @@ -2973,7 +3013,7 @@ If you have some rule using UNIQUE without any tags, it will match when at least one instance of the message has been recorded, no matter what tag (if any at all) was used in the first place. -''' +.\" .SS "Specifying A Period" .PP The period parameter of the ONCE commands or the \fIvacperiod\fR parameter @@ -3006,7 +3046,7 @@ All the periods are converted internally in seconds, although you do not really care... Examples of valid periods range from "1m" to "136y" on a 32 bits machine (why ?). -''' +.\" .SS "Timeouts" .PP In order to avoid having a \fImailagent\fR waiting for a command forever, a @@ -3045,7 +3085,7 @@ times .I lockdelay is greater than \fIlockhold\fR, that parameter being "large" enough. -''' +.\" .SS "Avoiding Loops" .PP The \fImailagent\fR leaves an "X-Filter:" header on each filtered message, @@ -3071,7 +3111,7 @@ add that header line. You can add one via ANNOTATE if you wish to prevent loops, in case the program to which you are feeding the message might return it to you in some strange way. -''' +.\" .SS "Message Files" .PP The text of the message to be sent back (for MESSAGE or NOTIFY) is read from @@ -3284,13 +3324,13 @@ For those hooks which are finally ran by perl, the special @INC array has mailagent's own private library path prepended to it, so that \fIrequire\fR first looks in this place. -''' -''' F o l d e r s -''' +.\" +.\" F o l d e r s +.\" .SH "FOLDERS" A folder is a file or a directory which can be the target of a delivery by the mailagent, that is to say the argument of SAVE-like commands. -''' +.\" .SS "Folder Format" .PP By default, mails are written into folders according to the standard UNIX-style @@ -3326,7 +3366,7 @@ appended to give the name of the message file to use. That is, if there is no such file, the folder will look like an MH one, without any MH sequence file though. -''' +.\" .SS "Folder Compression" .PP If you have one or more of the widely available file compression @@ -3423,9 +3463,9 @@ .PP On newly created folders the \fIcomptag\fR configuration variable is referenced to determine the compression type to use for the folder. -''' -''' M a i l B i f f i n g -''' +.\" +.\" M a i l B i f f i n g +.\" .SH MAIL BIFFING If you are receiving and processing mail on your own machine, then you have access to local mail biffing where \fImailagent\fR can warn you about new @@ -3622,9 +3662,9 @@ on, that would force \fImailagent\fR to probe the tty for its column size, for each possible tty where output may go, and there is no reliable portable way of doing that. Sorry. -''' -''' E x t e n d i n g F i l t e r i n g C o m m a n d s -''' +.\" +.\" E x t e n d i n g F i l t e r i n g C o m m a n d s +.\" .SH EXTENDING FILTERING COMMANDS Once you've reached the \fIexpert\fR level, and provided you have a fair knowledge of \fIperl\fR, you may feel the need for more advanced commands @@ -3644,7 +3684,7 @@ convinced yourself that it is a Good Thing to customize and extend a program in the same language as the one used for the core, meaning usually a fairly low-level language with fewer user-friendly hooks. -''' +.\" .SS Overview .PP In order to implement a new command, say FOLD, you will need to do the @@ -3674,7 +3714,7 @@ In the following sections, we're going to describe the syntax of the \fInewcmd\fR file, and we'll then present some low-level internal variables which may be used when implementing new commands. -''' +.\" .SS New Command File Format .PP The \fInewcmd\fR file consists of a series of lines, each line describing @@ -3711,7 +3751,7 @@ .Ef to allow FOLD even in _SEEN_ state and have it executed without modifying the current value of the \fIlast-command-status\fR variable. -''' +.\" .SS Writing An Implementation .PP Your perl function will be loaded when needed into the special package @@ -3755,7 +3795,7 @@ If you use \fIrequire\fR, be aware that mailagent is setting up a special \fI@INC\fR array by putting its private library path first, so you may place all your \fImailagent\fR-related library files in this place. -''' +.\" .SS Special Variables .PP The following special variables (some of them marked read-only, meaning you @@ -3815,7 +3855,7 @@ send via mailagent, in order to avoid loops. Also when you save mails to a folder, it's wise adding this line in case a problem arises: you may then identify the culprit. -''' +.\" .SS Rule Environment .PP An action might have a legitimate desire of altering the environment for @@ -3862,7 +3902,7 @@ at the end before returning. Before running the actions specified on a rule match, \fI&apply_rules\fR calls \fI&env'restore\fR to ensure a coherent view of the environment while running the actions for that particular rule. -''' +.\" .SS Altering Control Flow .PP When you want to alter control flow to perform a REJECT, a RESTART or an @@ -3886,7 +3926,7 @@ \fI&mailhook'begin\fR, \fI&mailhook'reject\fR, etc..., and that will work even if you redefine those functions yourself. Besides, that's the only interface which is likely not to be changed by new versions. -''' +.\" .SS General Purpose Routines .PP The following is a list of all the general routines you may wish to call when @@ -4015,7 +4055,7 @@ You may also use the three functions from the \fIextern\fR package which manipulate persistent variables (already documented in the section dealing with variables) as well as the user-defined macro routines. -''' +.\" .SS Example .PP Writing your own commands is not easy, since it requires some basic knowledge @@ -4074,7 +4114,7 @@ action to be run, we do not want mailagent to LEAVE the mail in the mailbox because it has never been saved (this default behavior being a precaution only -- better safe than sorry). -''' +.\" .SS Conclusion .PP If along the way you imagine some useful commands which could be made @@ -4094,9 +4134,9 @@ program providing the service. One immediate extension would be mailing list handling, using this mechanism to interface with some mailing list management software written in perl. -''' -''' G e n e r i c M a i l S e r v e r -''' +.\" +.\" G e n e r i c M a i l S e r v e r +.\" .SH GENERIC MAIL SERVER .PP One nice thing about mailagent is that it provides you with the basic tools to @@ -4111,7 +4151,7 @@ each mode or limited name-space visibility, at least for now, so it is not easy (albeit possible) to implement an ftpmail server, for instance, since this implies the notion of mode. -''' +.\" .SS Overview In order to implement a mail server command (say send \fIfile\fR, which would send an arbitrary file from the file system in a separate mail message), @@ -4150,7 +4190,7 @@ In the following sections, we'll learn about the syntax of the \fIcomserver\fR file, what \fIpowers\fR are, how the session transcript is built, what the command environment is, etc... -''' +.\" .SS Builtin Commands Overview .PP The mail server has a limited set of builtin commands, dealing with user @@ -4211,7 +4251,7 @@ In case you think this \fImailagent\fR feature is dangerous for your account, do not create the \fIroot\fR and \fIsecurity\fR powers, and do not write any sensitive commands. -''' +.\" .SS Builtin Commands Definition .PP Now let's have a look at those builtin commands. Passwords of sensitive @@ -4320,7 +4360,7 @@ assumed until changed by another \fIuser\fR command and all the powers currently held by the user are released. If no \fIe-mail\fR address is given, the original user ID is restored. -''' +.\" .SS Command Environment .PP There are six types of commands and variables that can be specified in server @@ -4423,7 +4463,7 @@ .I user The effective user ID, originally the same as the uid, but may be changed via the \fIuser\fR builtin command. -''' +.\" .SS Session Transcript .PP A session transcript is mailed back automatically to the user who requested @@ -4446,7 +4486,7 @@ "secure" authentication is provided by the server powers, which is password-based. Unfortunately, the clear password has to be transmitted in the message itself and could be eavesdropped. -''' +.\" .SS Recording New Commands and Variables .PP Server commands and variables are defined in the \fIcomserver\fR file defined @@ -4501,7 +4541,7 @@ the command itself is called. Shell commands may use that field to supply additional options, which will be inserted right after the command name and before any other user-supplied arguments. Others should leave this alone. -''' +.\" .SS Special Command Types .PP There are currently two special command types. @@ -4520,7 +4560,7 @@ its help file would be expected in \fIhelpdir/shoot\fR. If no file is found there, mailagent looks in its public library ($privlibexp) for an help file. Help is provided only when the help file exists and is not zero-sized. -''' +.\" .SS Creating the Root Power .PP In order to bootstrap the server, you need to create the root power. All the @@ -4613,7 +4653,7 @@ automatic mail processing (since it would be possible to have cron invoke a \fImailagent\fR process \-or any other program for that matter\- to process the incoming mail in a comparable way). -''' +.\" .SS Example .PP Here is an example showing the steps involved in creating a \fIshell\fR @@ -4757,7 +4797,7 @@ The first invocation of the \fIshell\fR command fails since we lack the \fIshell\fR power. The string "Permission denied." is echoed by the command itself into file descriptor #3 and makes it to the transcript. -''' +.\" .SS Conclusion .PP The generic mail server implemented in mailagent can be used to --- mailagent-3.1-81.orig/agent/man/maildist.SH +++ mailagent-3.1-81/agent/man/maildist.SH @@ -18,28 +18,28 @@ $rm -f maildist.$manext $spitshell >maildist.$manext <mailhelp.$manext <maillist.$manext <mailpatch.$manext <package.$manext < 18; --- mailagent-3.1-81.orig/agent/pl/mbox.pl +++ mailagent-3.1-81/agent/pl/mbox.pl @@ -17,7 +17,7 @@ ;# mailbox (i.e. those produced by standard mail utilities with a leading From ;# line stating sender and date) into the mailagent's queue. This will be ;# especially useful on those sites where users are not allowed to have a -;# .forward file. By using the -f option on the mailbox in /usr/spool/mail, +;# .forward file. By using the -f option on the mailbox in /var/spool/mail, ;# mail will be queued and filtered as if it had come from filter via .forward. package mbox; --- mailagent-3.1-81.orig/agent/pl/parse.pl +++ mailagent-3.1-81/agent/pl/parse.pl @@ -616,6 +616,12 @@ local($host, $real); local($islast) = 1; # First line we see is the "last" inserted local($received); # Received line, verbatim + # The regexp /\.X$/i where X is any of offical top level domains at + # http://data.iana.org/TLD/tlds-alpha-by-domain.txt on 15 Aug 2006 plus the + # extra domain "private". + # The regexp is the translation into Perl syntax of the result of calling Emacs's `regexp-opt' + # on the list of acceptable TLDs. + local($tlds_rx) = qr'\.A(?:ERO|RPA|[C-GIL-OQ-UWXZ])|B(?:IZ|[ABD-JMNORSTVWYZ])|C(?:AT|O(?:M|OP)|[ACDF-IK-ORUVXYZ])|D[EJKMOZ]|E(?:DU|[CEGR-U])|F[IJKMOR]|G(?:OV|[ABD-ILMNP-UWY])|H[KMNRTU]|I(?:N(?:FO|T)|[DEL-OQ-T])|J(?:OBS|[EMOP])|K[EGHIMNRWYZ]|L[ABCIKR-VY]|M(?:IL|OBI|USEUM|[ACDGHK-Z])|N(?:AME|ET|[ACEFGILOPRUZ])|O(?:M|RG)|P(?:R(?:IVATE|O)|[AE-HK-NRSTWY])|QA|R[EOUW]|S[A-EG-ORTUVYZ]|T(?:RAVEL|[CDFGHJ-PRTVWZ])|U[AGKMSYZ]|V[ACEGINU]|W[FS]|Y[ETU]|Z[AMW]$'i; local($i); local($_); --- mailagent-3.1-81.orig/agent/pl/utmp/utmp_ph.c +++ mailagent-3.1-81/agent/pl/utmp/utmp_ph.c @@ -83,8 +83,8 @@ char pack[MAX_LEN]; char fields[MAX_LEN]; char buf[MAX_LEN]; - int user_off = (int) utmp->ut_name; /* Offset of ut_name[] */ - int line_off = (int) utmp->ut_line; /* Offset of ut_line[] */ + size_t user_off = (size_t) utmp->ut_name; /* Offset of ut_name[] */ + size_t line_off = (size_t) utmp->ut_line; /* Offset of ut_line[] */ int user_len = sizeof(utmp->ut_name); /* Length of ut_name[] array */ int line_len = sizeof(utmp->ut_line); /* Length of ut_line[] array */ int last_off = 0; /* Last offset in pack format */ --- mailagent-3.1-81.orig/agent/test/TEST +++ mailagent-3.1-81/agent/test/TEST @@ -58,7 +58,6 @@ require './getopt.pl'; &Getopt; - $mailagent = 'mailagent'; # Default program (dataloaded version) $mailagent = 'magent' if $opt_n; # Use non-dataloaded version $ENV{'MAILAGENT'} = $mailagent; @@ -68,6 +67,7 @@ -f '../filter/filter' && -x _ || die "No filter.\n"; $> || die "Cannot run tests as super-user. [$<,$>]\n"; + &load_ok; # Don't rerun successful tests if up to date # A level file indicates default loglvl @@ -115,6 +115,7 @@ $| = 1; # We may safely interrupt select(STDOUT); + foreach $dir (@tests) { next unless -d $dir; &run($dir); --- mailagent-3.1-81.orig/agent/test/basic/config.t +++ mailagent-3.1-81/agent/test/basic/config.t @@ -73,7 +73,7 @@ statfile : \$spool/mailagent.st rules : ~/.rules rulecache: ~/.cache -maildrop : $pwd # Do not LEAVE messages in /usr/spool/mail +maildrop : $pwd # Do not LEAVE messages in /var/spool/mail mailbox : \$user # Use config variable, not current perl $user #fromesc : ON # Backward compatibility -- should be ON when absent locksafe : OFF # Don't bother with failed locks (for fsn <= 14 chars) --- mailagent-3.1-81.orig/debian/Config/README +++ mailagent-3.1-81/debian/Config/README @@ -0,0 +1,5 @@ +This directory created by Configure to save information that should +persist across sessions. + +You may safely delete it if you wish. +arch-tag: f79e7144-4819-4ff6-9e8d-37efb5b8f3cd --- mailagent-3.1-81.orig/debian/Config/instruct +++ mailagent-3.1-81/debian/Config/instruct @@ -0,0 +1,3 @@ +root +debian +srivasta --- mailagent-3.1-81.orig/debian/Config/mailauthor +++ mailagent-3.1-81/debian/Config/mailauthor @@ -0,0 +1,4 @@ +/* mailagent-3.0 - 1 Dec 1993 */ + +#define VERSION 3.0 +#define PATCHLEVEL 56 --- mailagent-3.1-81.orig/debian/README.Debian +++ mailagent-3.1-81/debian/README.Debian @@ -0,0 +1,29 @@ +This is Debian GNU/Linux's prepackaged version of Raphael Manfredi's +mailagent program. + +This version of mailagent was put together by Manoj Srivastava +, from the sources distributed directly by the +author, Raphael Manfredi , at: + + http://search.cpan.org/search?mode=dist&query=mailagent + +The changes in this package are essentially the addition of support for +the Debian package maintenance scheme, by adding various debian.* files. +The changes in the default configuration are using the pager /bin/more, +and using /usr/bin/ae as the default editor, since these programs are +guaranteed to be present in any debian system. The other changes are +to ensure that a .config directory is present, so that no mail message +is sent to the maintainer while building the debian package. An over- +ride file is also used to ensure that installation occurs into a local +debian-tmp directory, required to build the debianized version. + +The "getcost" program found in the original sources under misc/getcost +was not included in the package, due to the restriction imposed by the +original "getcost" author (not Raphael Manfredi). The program can +nonetheless be found in the original sources. + + +See the README file for more information + +Manoj Srivastava +arch-tag: 7f43bdd4-92f6-4375-964d-ca0f043448b2 --- mailagent-3.1-81.orig/debian/SECURITY +++ mailagent-3.1-81/debian/SECURITY @@ -0,0 +1,65 @@ +yes, mailagent, as distributed, can't create .lock lock files in +/var/spool/mail on Debian systems, since /var/spool/mail is owned by +root.mail mode 3775, and mailagent expected it to be 1777 (which is as +it was set up on DIGITAL UNIX and HP-UX boxes at my previous job). + +However, making either the filter or mailagent setgid mail is _NOT_ +the way to go. This would be a big, big, security hole. + +In the normal mode of operation, neither the filter or mailagent pick up +the messages from the system mailbox, so do not need to do locking +there. (for abnormal cases, when you do have things in your mailbox, +you have to invoke mailagent manually anyway, so copy the file +/var/spool.mail/$USER to ~/, and use the -f switch for +mailagent). + +All the filter does is leave the mail messages in the mailagent queue, +in your home directory, so the filter _never_ touches the system box, +so it should never benefit from being setgid mail (and hence should +never be made so). It does have to handle locking with other instances +of the filter and also with mailagent, and I strongly urge you to use +both flavors of locking, as distributed. + +Now, the mailagent, even though it does not do any pickups from the +system mailbox, does try to leave messages that don't match anything +in your mailagent rules to the system mailbox, for which it does try +.lock locking in the system mailbox -- and fails,on Debian. + +_However_, it fails safe, if can't write the message to your system +mailbox (or whatever you have specified as your maildrop) (lock +failure or permission denied), it tries ~/mbox.$USER, and, failing +that, it drops it in the emergency directory (as specified in +~/.mailagent) . + +Most mail readers can be made to query another mailbox apart from the +default system mailbox (~/mbox seems to be looked at automatically by +Emacs vm and Rmail, and I vaguely remember also by mailx). + +My suggestion is to + a) put a catch-all rule in your rules file, like so, to save all + unmatched messages, and instruct your mail reader to look there + +All: /./ { UNIQUE -a; SAVE important }; + +# +# End of mailagent rules +# + + b) set the variable maildrop to a directory you own in ~/.mailagent + + +DO NOT MAKE MAILAGENT setgid anything; it is not designed to handle +that. It allows one to run ARBITRARY PERL SCRIPTS using the PERL +directive (and very handy they are, too, with the broken MIME that +MUA's write nowadays), if you make mailagent setgid mail, I can do +anything I want with peoples mail files. You have been warned. + +In fact, it would be more secure to chmod 1777 /var/spool/mail than +letting mailagent be setgid mail (not, mind you, that I'm advocating +any such action). + +Also, since it has to interact with filter, _and_ your home directory +is NFS mounted, you may loose mail unless BOTH flavors of locking are +on. + +arch-tag: 07b2bc83-30a9-42a2-bac5-70ed449537d6 --- mailagent-3.1-81.orig/debian/changelog +++ mailagent-3.1-81/debian/changelog @@ -0,0 +1,994 @@ +mailagent (1:3.1-81-4) unstable; urgency=low + + * Commented out a $USER in the man page shell sources that was capturing + the username, and rpevcenting mailagent from beign built reproducibly. + + -- Manoj Srivastava Fri, 22 Jan 2016 23:42:25 -0800 + +mailagent (1:3.1-81-3) unstable; urgency=low + + * New bug fixing release + * Bug fix: "Messages should be dropped in the system mailbox when using + the LEAVE command", thanks to Rafael Laboissiere (Closes: #812308). + + -- Manoj Srivastava Thu, 21 Jan 2016 23:32:46 -0800 + +mailagent (1:3.1-81-2) unstable; urgency=low + + * New bug fixing release + * Bug fix: "Mailbox compression broken with Perl 5.22", thanks to Rafael + Laboissiere (Closes: #812118). + + -- Manoj Srivastava Wed, 20 Jan 2016 23:09:13 -0800 + +mailagent (1:3.1-81-1) unstable; urgency=low + + * New upstream release + * Bug fix: "Conflicting return type declarations of function init_env", + thanks to Michael Tautschnig (Closes: #749680). + * Converted the copyright file to DEP-5 format. + * Moved the maintainer scripts to where dh wants them, and upodated the + rules check to match. + * Try to move towards reproducible builds; do not hard code local host + in the configuration step. + * use dpkg-buildflags to set the flags for configure to pick up. + + -- Manoj Srivastava Fri, 15 Jan 2016 13:18:20 -0800 + +mailagent (1:3.1-78-1) unstable; urgency=low + + * New upstream release + * Ack NMUs. Move to a new build system based on dh + + -- Manoj Srivastava Sun, 27 Apr 2014 00:10:30 -0700 + +mailagent (1:3.1-74-0.4) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS with perl 5.18: POD issues": + fix POD syntax in debian/getspam. + (Closes: #720973) + + -- gregor herrmann Mon, 02 Sep 2013 21:54:42 +0200 + +mailagent (1:3.1-74-0.3) unstable; urgency=low + + * Non-maintainer upload. + * Fix FTBFS with gcc-4.8 (Closes: #701316) + + -- Balint Reczey Mon, 12 Aug 2013 22:57:11 +0200 + +mailagent (1:3.1-74-0.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix pending l10n issues. Debconf translations: + - Danish (Joe Hansen). Closes: #605435 + + -- Christian Perrier Tue, 17 Jan 2012 07:16:11 +0100 + +mailagent (1:3.1-74-0.1) unstable; urgency=high + + * Non-maintainer upload. + * New upstream release + * One bug was still present in the patch, this release fixes it. + + -- Julian Gilbey Fri, 23 Dec 2011 10:02:19 +0000 + +mailagent (1:3.1-73-0.1) unstable; urgency=high + + * Non-maintainer upload. + * New upstream release + * Fixes the ctime.pl problem which was causing mail loss as in the + previous upload, but corrects some bugs in my patch, hence + urgency=high + + -- Julian Gilbey Fri, 23 Dec 2011 09:44:10 +0000 + +mailagent (1:3.1-72-0.2) unstable; urgency=high + + * Non-maintainer upload. + * Fix ctime.pl problem which was causing mail loss (Closes: Bug#652740) + + -- Julian Gilbey Thu, 22 Dec 2011 21:20:30 +0000 + +mailagent (1:3.1-72-0.1) unstable; urgency=low + + * Non-maintainer upload. + * New upstream release: + * Handles deprecated ctime.pl (Closes: #650205) + * Quietens perl warnings (Closes: #630963) + * Depend on libperl4-corelibs-perl + + -- Julian Gilbey Sun, 27 Nov 2011 19:05:03 +0000 + +mailagent (1:3.1-65-2) unstable; urgency=low + + * Bug fix: "postinst fails if debconf question skipped", thanks to Aaron + M. Ucko (Closes: #553628). + + -- Manoj Srivastava Sun, 01 Nov 2009 21:32:56 -0600 + +mailagent (1:3.1-65-1) unstable; urgency=low + + * New upstream release. + + Do not propagate Followup-To headers via POST, unless the value is + "poster". Indeed, INN2 will reject the article if the newsgroup + listed there is invalid. + + Be more picky about message IDs used for news: ensure there is but + one "@". + + Be even stricter with X- headers in POST: only let a few selected + ones through. + + Have POST strip more headers from the message, since INN2 will reject + the message anyway if they are present. + + -- Manoj Srivastava Sat, 31 Oct 2009 02:46:47 -0500 + +mailagent (1:3.1-56-1) unstable; urgency=low + + * New upstream VCS snapshot. + + Protect against SIGPIPE during BOUNCE and FORWARD, relying on the + exit code at close() time to detect failures. (closes: #267879) + + Make sure we suggest the use of "-i" in mailopt when they use + sendmail. Automatically protect lines with a single "." when they + did not supply -i to avoid failure of FORWARD and BOUNCE commands. + (Closes: #128114) + + -- Manoj Srivastava Tue, 02 Sep 2008 23:50:40 -0500 + +mailagent (1:3.1-24-2) unstable; urgency=high + + * Swedish strings for mailagent debconf, thanks to + brother@bsnet.se. This is an i18n upload. Closes: #491775 + + -- Manoj Srivastava Tue, 02 Sep 2008 23:09:35 -0500 + +mailagent (1:3.1-24-1) unstable; urgency=low + + * New upstream release. After a long time, mailagent has revived. This + version has bug fixes that make it friendlier to perl 5.10, and + - Use strict RFC-822 definition for header names: the field name can + be made of anything but SPACE or colon, from ASCII 33 to ASCII 126. + - The patchlevel is now ignored, as we track by SVN revision + number. Changed all version information reporting to new format + "version-revision". + - Added automatic computation of the SVN revision in "revision.h", for + later perusal by Configure to propagate correct revision numbers in + files. + - Added update of revision.h. + - Removed the WARNING level, as it is not critical enough to warrant a + daily notification. + - Changed path for checkagent.sh in the sample crontab entry. + - Added bzip2 compressor. + - Removed legacy hardwired HOME directory. Compute it! + - Removed more "$*" uses that are now forbidden by perl 5.10. + - Integrated more changed from Debian: + + Fixed maildir computation logic to avoid useless superseding. + + Added regular expression for Top Level Domain validation. + + Removed "compress" from the list of default compressors and added + bzip2. + - Cleaned up by fixing most of the items listed in Debian bug #43171 + Bug fix: "mailagent: several problems with the manual page", thanks + to swift@alum.mit.edu (Closes: #43171). + - Ensure POST always puts a single space after the field name to avoid + INN rejecting the article due to invalid header. + - Do not process the queue in the background when invoked from + terminal, unless given an explicit -q switch, naturally. + - Added -U switch to disable first UNIQUE / RECORD rejection for + duplicates. + - Reduce maximum article age for POST to 10 days. + - Look for utmp in /var/run as well, for modern systems with read-only + /etc. + - Cleaned up code a little bit since now Configure enables gcc + warnings by default and thus code required some uplifting. + - Remove all usage of $* as it is no longer accepted by Perl 5.10. + - Reset CDPATH to avoid pdksh's emission of the chosen dir on "cd". + * Bug fix: "[INTL:de] German translation for mailagent (debconf)", + thanks to Erik Schanze (Closes: #479259). + * Bug fix: "mailagent : [INTL:pt] Updated Portuguese translation for + debconf messages", thanks to Traduz - Portuguese Translation Team + (Closes: #478349). + * Bug fix: "mailagent: [INTL:fr] French debconf templates translation + update", thanks to Christian Perrier (Closes: #478552). + * Bug fix: "mailagent: [INTL:es] Updated Spanish translation for debconf + templae", thanks to Rudy Godoy Guillén (Closes: #465153,#480754). + * Bug fix: "mailagent: [INTL:it] Italian debconf templates translation", + thanks to Luca Monducci (Closes: #482897). + + -- Manoj Srivastava Fri, 30 May 2008 12:35:38 -0500 + +mailagent (3.73-29) unstable; urgency=low + + * Bug fix: "[INTL:de] German translation for mailagent (debconf)", + thanks to Erik Schanze (Closes: #473311). + * Bug fix: "[INTL:eu] Basque translation update", thanks to Piarres + Beobide (Closes: #472089). + * Bug fix: "mailagent: [INTL:it] Italian debconf templates translation", + thanks to Luca Monducci (Closes: #474565). + * Bug fix: "[INTL:es] Spanish debconf templates translation", thanks to + Carlos Izquierdo (Closes: #473575, #472268). + * Bug fix: "mailagent: [INTL:vi] Vietnamese debconf templates + translation update", thanks to Clytie Siddall (Closes: #473380). + * Bug fix: "[l10n] Updated Czech translation of mailagent debconf + messages", thanks to Miroslav Kure (Closes: #473264). + * Bug fix: "[INTL:nl] Updated Dutch po-debconf translation", thanks to + cobaco (aka Bart Cornelis) (Closes: #473122). + * Bug fix: "mailagent: [INTL:ru] Russian debconf templates translation + update", thanks to Yuri Kozlov (Closes: #473251). + * Bug fix: "mailagent: [INTL:ja] Updated Japanese po-debconf template + translation (ja.po)", thanks to Hideki Yamane \(Debian-JP\) + (Closes: #472371). + * Bug fix: "mailagent: [INTL:fr] French debconf templates translation + update", thanks to Christian Perrier (Closes: #472291). + * Bug fix: "mailagent: [INTL:pt] Updated Portuguese translation for + debconf messages", thanks to Traduz - Portuguese Translation Team + (Closes: #472222). + * Bug fix: "[INTL:gl] Galician debconf template translation for + mailagent", thanks to Jacobo Tarrio (Closes: #472210). + * Bug fix: "Updated nb translation for debconf mailagent", thanks to + Bjørn Steensrud (Closes: #472123). + * Bug fix: "[INTL:fi] Updated Finnish translation of the debconf + templates", thanks to Esko Arajärvi (Closes: #472112). + * Updated control file with new location of the SCM repository + (mailagent development is now taking place using git) + + -- Manoj Srivastava Thu, 24 Apr 2008 22:57:17 -0500 + +mailagent (3.73-28) unstable; urgency=low + + * Debconf templates and debian/control reviewed by the + debian-l10n-english team as part of the Smith review project. + Closes: #466759 + * [Debconf translation updates] + - Basque. Closes: #466974 + - Spanish. Closes: #467018 + - Galician. Closes: #467079 + - Vietnamese. Closes: #467114 + - Czech. Closes: #467171 + - Norwegian BokmÃ¥l. Closes: #467350 + - Finnish. Closes: #468211 + - Dutch. Closes: #468308 + - French. Closes: #468815 + - Portuguese. Closes: #469227 + - German. Closes: #469371 + - Russian. Closes: #469722 + + -- Manoj Srivastava Wed, 19 Mar 2008 15:24:00 -0500 + +mailagent (3.73-27) unstable; urgency=low + + * A patch for the upcoming Perl 5.10 version was provided by the + author, Raphael Manfredi. There is a new subversion repository for + the sources as well. + * Remove a spurious -s from the install line in debian/rules that was + unconditionally stripping the executable, bypassing the conditional + stripping step. Closes: #437552 + * The new version also fixes the matching of plain email addresses bug, + which is the major issue reported by Matthew Swift. The bit about the + man page needing a re-write for clarity, and example having redundant + bits, are probably valid, but unlikely at this point to be + addressed. I am not closing 43171 until I, or someone else, refactors + the manual page. + + -- Manoj Srivastava Fri, 08 Feb 2008 12:52:46 -0600 + +mailagent (3.73-26) unstable; urgency=low + + * Bug fix: "mailagent: [INTL:vi] Vietnamese debconf templates + translation update", thanks to Clytie Siddall (Closes: #427041). + + -- Manoj Srivastava Sat, 07 Jul 2007 14:46:59 -0500 + +mailagent (3.73-25) unstable; urgency=low + + * Bug fix: "mailagent: please take care of exim 3 going away", thanks to + Marc Haber. Use exim4 instead of exim in the dependencies. + (Closes: #420271). + + -- Manoj Srivastava Thu, 10 May 2007 00:13:01 -0500 + +mailagent (3.73-24) unstable; urgency=low + + * Bug fix: "[INTL:gl] Galician debconf templates translation for + mailagent", thanks to Jacobo Tarrio (Closes: #412645). + * Bug fix: "[l10n] Updated Czech translation of mailagent debconf + messages", thanks to Miroslav Kure (Closes: #413319). + * Bug fix: "[INTL:nl] Dutch po-debconf translation", thanks to cobaco + (aka Bart Cornelis) (Closes: #413884). + * Bug fix: "mailagent: [INTL:es] Spanish debconf translation", thanks to + Rudy Godoy (Closes: #414347). + * Bug fix: "mailagent : [INTL:pt] Portuguese translation for debconf + messages", thanks to Traduz - Portuguese Translation Team (Closes: #414425). + * Added XS-VCS-Arch and XS-VCS-Browse variables in debian/control + + -- Manoj Srivastava Tue, 17 Apr 2007 18:20:28 -0500 + +mailagent (3.73-23) unstable; urgency=low + + * Bug fix: "mailagent: [INTL:ja] Updated Japanese po-debconf template + translation", thanks to Hideki Yamane (Debian-JP) (Closes: #393217). + + -- Manoj Srivastava Tue, 24 Oct 2006 00:10:41 -0500 + +mailagent (3.73-22) unstable; urgency=low + + * Bug fix: "mailagent: false warning about 'bad host'", thanks + to Matt Swift (Closes: #383245). + * Updated standards version. + + -- Manoj Srivastava Sun, 20 Aug 2006 12:57:57 -0500 + +mailagent (3.73-21) unstable; urgency=low + + * Bug fix: "[l10n:de] Updated German translation of the debconf + templates", thanks to Erik Schanze (Closes: #345852). + * Bug fix: "mailagent: Upgrade outputs duplicate warning", thanks to + Thijs Kinkhorst. The fix and patch thanks to Bart Martens (Closes: #301974). + + -- Manoj Srivastava Tue, 7 Feb 2006 15:29:38 -0600 + +mailagent (3.73-20) unstable; urgency=low + + * Bug fix: "mailagent: [INTL:sv] Swedish debconf templates translation", + thanks to Daniel Nylander (Closes: #332353). + + -- Manoj Srivastava Thu, 20 Oct 2005 22:51:40 -0500 + +mailagent (3.73-19) unstable; urgency=low + + * Bug fix: "mailagent: Update of the french translation of the debconf + templates", thanks to Eric (Closes: #318394). + + -- Manoj Srivastava Mon, 8 Aug 2005 13:09:34 -0500 + +mailagent (3.73-18) unstable; urgency=low + + * Bug fix: "mailagent: [INTL:pt_BR] Substituted correct pt_BR translation. + (Closes: #307237). + * Bug fix: "mailagent", thanks to Clytie Siddall (Closes: #312653). + * Bug fix: "INTL:vi", thanks to Clytie Siddall (Closes: #312652). + + -- Manoj Srivastava Wed, 6 Jul 2005 12:12:24 -0500 + +mailagent (3.73-17) unstable; urgency=low + + * Bug fix: "mailagent: [INTL:pt_BR] Please consider adding the attached + debconf template translation", thanks to Rodrigo Tadeu Claro + (Closes: #307237). + + -- Manoj Srivastava Mon, 2 May 2005 01:39:46 -0500 + +mailagent (3.73-16) unstable; urgency=low + + * Bug fix: "Czech templates for mailagent", thanks to Lukáš Oliva + (Closes: #298780). + + -- Manoj Srivastava Thu, 17 Mar 2005 03:06:57 -0600 + +mailagent (3.73-15) unstable; urgency=low + + * Bug fix: "minor fix for building mailagent with gcc-3.4 on amd64", + thanks to Kaare Hviid (Closes: #272988). + * Bug fix: "mailagent: Please add German translation of the debconf + templates", thanks to Erik Schanze (Closes: #266929). + + -- Manoj Srivastava Mon, 27 Sep 2004 12:07:19 -0500 + +mailagent (3.73-14) unstable; urgency=low + + * Bug fix: "mailagent: fixed Japanese po-debconf template translation + (ja.po)", thanks to Hideki Yamane (Closes: #256595). + + -- Manoj Srivastava Wed, 21 Jul 2004 15:46:49 -0500 + +mailagent (3.73-13) unstable; urgency=low + + * Bug fix: "mailagent: Japanese po-debconf template translation + (ja.po)", thanks to Hideki Yamane (Closes: #254496). + + -- Manoj Srivastava Tue, 22 Jun 2004 18:11:59 -0500 + +mailagent (3.73-12) unstable; urgency=low + + * Bug fix: "mailagent: French debconf templates translation", thanks to + Eric (Closes: #239602). + * Fixed the config script (similar to the dist package fixes) to not + purge our ownership of the old share/ debconf question too early. + + -- Manoj Srivastava Mon, 19 Apr 2004 01:44:51 -0500 + +mailagent (3.73-11) unstable; urgency=low + + * Change the name of the debconf question to shared/news/organization. + * Bug fix: "mailagent: French debconf templates translation", thanks to + Eric (Closes: #239602). + + -- Manoj Srivastava Mon, 5 Apr 2004 15:46:49 -0500 + +mailagent (3.73-10) unstable; urgency=low + + * Bug fix: "mailagent: Please switch to gettext-based debconf + templates", thanks to Martin Quinson (Closes: #235815). + + -- Manoj Srivastava Fri, 12 Mar 2004 00:58:10 -0600 + +mailagent (3.73-9) unstable; urgency=low + + * Converted to the new build system. + * Added debconf support to for setting up /etc/news/organization + + -- Manoj Srivastava Tue, 2 Dec 2003 12:42:53 -0600 + +mailagent (3.73-8) unstable; urgency=high + + * Bug fix: "mailagent: filter is incorrectly built", thanks to Julian + Gilbey. Added missing include of in logfile.c (Closes: #220238). + + -- Manoj Srivastava Tue, 11 Nov 2003 15:48:47 -0600 + +mailagent (3.73-7) unstable; urgency=low + + * Fixed usage of chown root.root in the rules files. + * mailagent fails to correctly parse headers according to RFC822 and + therefore treats some legal headers as continuation lines. RFC822 + section 3.2 defines: + field-name = 1* + Bug and fix from christian mock closes: Bug#207399 + + -- Manoj Srivastava Tue, 26 Aug 2003 17:12:18 -0500 + +mailagent (3.73-6) unstable; urgency=low + + * gcc-3.3 changed the behaviour when a object like macor's replacement + list contains a unbalanced double quote. It is in its rights to do so, + of course, since C99 says that the behaviour is undefined. (BTW, this + is not a multiline string, see section 6.4 of the standard) closes: Bug#195205 + * Changed dependendcies to depend on perl, not perl5. + + -- Manoj Srivastava Thu, 29 May 2003 10:54:23 -0500 + +mailagent (3.73-5) unstable; urgency=low + + * use which instead of command -v + * No longer install /usr/doc/symlink. Bring this upto Standards version + 3.5.7 + * No longer depend on fileutils + * fixed typos in postinst. closes: Bug#154127 + + -- Manoj Srivastava Tue, 29 Oct 2002 17:51:49 -0600 + +mailagent (3.73-4) unstable; urgency=low + + * Added a Build-Depends, not a pends-Indep for groff-base. closes: Bug#137817 + * Silence a postinst warning in case /usr/doc is not found. + + -- Manoj Srivastava Tue, 19 Mar 2002 23:48:34 -0600 + +mailagent (3.73-3) unstable; urgency=medium + + * Added a Build-Depends-Indep for groff-base. closes: Bug#137817 + + -- Manoj Srivastava Mon, 11 Mar 2002 23:44:30 -0600 + +mailagent (3.73-2) unstable; urgency=low + + * Without a prototype for strerror(), that function will be assumed to + return a 32-bit integer instead of a 64-bit pointer on ia64, leading + to pointer corruption and likely segfaults. Fixed. closes: Bug#126105 + + -- Manoj Srivastava Sun, 6 Jan 2002 01:56:23 -0600 + +mailagent (3.73-1) unstable; urgency=low + + * Incorporated the changes in the NMU's that have been made recently. I + am very grateful for the help from Paul Martin , + Raphael Hertzog , Raphael Manfredi + , and Barrie Stott + for all the help with mailagent while I have + been swamped (which has been most of this year). + * Added lintian overrides for the postinst warning. + + -- Manoj Srivastava Mon, 19 Mar 2001 09:19:47 -0600 + +mailagent (3.73-0.1) unstable; urgency=low + + * Non-maintainer upload + * This release supersedes the NMU 3.68-9.1, which was made concurrently. + Therefore, some of the changes mentionned here are dups of previous + changes, and the conflict was arbitrated in favor of this release. + * New upstream release, closes: Bug#72737, and addresses the original + concerns of Bug#43171. Can't tell the latter is fully closed, since + not all the followed-up points were addressed. + * Fixed README spelling (verson -> version) and added special mention + for the missing "getcost" program which can be found in original sources + but is not packaged here. Also added CPAN URL to the distribution. + Removed paragraph of the README which mentionned a few patches that + have been obsoleted by the new upstream version. + * Added missing mailagent.cf, setup.cf and commands to /usr/share/mailagent, + closes: Bug#81119. + * Mailagent can now be used as a full mail<->news gateway. Look into + /usr/share/doc/mailagent/examples/news for the newsgate program which + handles the news->mail part, as well as mailagent rules for building the + mail->news part via mailagent's POST command. + + -- Raphael Manfredi Sat, 17 May 2001 20:26:06 +0100 + + +mailagent (3.70-1) unstable; urgency=low + + * New upstream version (Not released) + + -- Manoj Srivastava Thu, 8 Feb 2001 03:46:48 -0600 + +mailagent (3.68-10) unstable; urgency=low + + * Use print-gnu-build-architecture for dpkg.(Not released) + * use dnsdomainname to determine our hostname on the fly. gets rid of + some ugly postinst code. Many thanks to "C.M. Connelly" . + closes: Bug#72737 + + -- Manoj Srivastava Tue, 21 Nov 2000 23:18:50 -0600 + +mailagent (3.68-9.1) unstable; urgency=low + + * Non-maintainer upload + * Changed debian/rules to move some needed configuration files + (setup.cf, mailagent.cf and commands) to /usr/share/mailagent + Fixes #81119 + * Fixed README to fix lintian error. + * Changed debian/rules to strip /usr/share/mailagent/filter, fixes + lintian warning. + + -- Paul Martin Sat, 17 Mar 2001 03:28:38 +0000 + +mailagent (3.68-9) unstable; urgency=low + + * Make sure all the readme files and example, as well as help files, end + up in /usr/share/doc/mailagent, rather than in /usr/share/mailagent. + Added more documentation. closes: Bug#63428 + * Clarified the mailbox locking issue some more. + + -- Manoj Srivastava Wed, 3 May 2000 04:04:06 -0500 + +mailagent (3.68-8) frozen unstable; urgency=low + + * Added more explicit documentation about why mailagent can not lock + mailbox files on Debian (making mailagent sgid anything essentially + negates any utility of having things sgid mail, a big gaping security + hole). The details are now in the FAQ, the man page, and also in a + file /usr/share/doc/mailagent/SECURITY. This issue is now also + mentioned in the long description in the Control file. + * updated example files + * There have been no code changes in this upload, just documentation + changes. Nevertheless, this closes an important bug. closes: Bug#63428 + + -- Manoj Srivastava Tue, 2 May 2000 17:43:59 -0500 + +mailagent (3.68-7) frozen unstable; urgency=low + + * merely creating sub handle_doc_link in the postinst is not good + enough; the routine should be called as well ;-). This closes an + important bug (/usr/doc symlinks are a potato requirement). + closes: Bug#62435 + + -- Manoj Srivastava Fri, 28 Apr 2000 18:04:19 -0500 + +mailagent (3.68-6) unstable; urgency=low + + * Added a line to the FAQ emphasizing the fact that leading and trailing + double quotes are an integral part of the .forward file. + + -- Manoj Srivastava Fri, 31 Mar 2000 15:50:52 -0600 + +mailagent (3.68-5) frozen unstable; urgency=low + + * Use absolute links when related links would not work, for the + /usr/doc/latex2tml symlink. + * Added a dependency on fileutiles >=4.0, since the package would fail + to install with older fileutils. + + -- Manoj Srivastava Tue, 28 Mar 2000 01:45:51 -0600 + +mailagent (3.68-4) frozen unstable; urgency=low + + * Fixed an upgrade bug when /usr/doc happens to be a symlink, and does + not point to /usr/share/doc. A couple of people were bitten by this. + + -- Manoj Srivastava Mon, 28 Feb 2000 22:27:05 -0600 + +mailagent (3.68-3) frozen unstable; urgency=low + + * Gorgot to make the last upload to frozen as well. To the release manager: + * The postinst was vulnerable to being affected by symlinks (if, for + some reason, the prerm failed). This has happended for latex2html; and + created a grave bug. + * There was a bug in the postinst in a case statement, that caused + installation to fail for certain situations. + * Also fixed an lintian warning + + -- Manoj Srivastava Wed, 9 Feb 2000 22:28:35 -0600 + +mailagent (3.68-2) unstable; urgency=low + + * The postinst was vulnerable to being affected by symlinks (if, for + some reason, the prerm failed). This has happended for latex2html; and + created a grave bug. + * There was a bug in the postinst in a case statement, that caused + installation to fail for certain situations. + * Also fixed an lintian warning + + -- Manoj Srivastava Tue, 8 Feb 2000 23:00:49 -0600 + +mailagent (3.68-1) unstable; urgency=low + + * New upstream version, with Y2K fixes. + * moved to new perl Policy + * moved to debian-policy 3.0.0 partially (no /usr/doc changes yet) + + -- Manoj Srivastava Wed, 14 Jul 1999 15:45:36 -0500 + +mailagent (3.65-2) frozen unstable; urgency=low + + * Fixed an important mail corrupting bug. Just a one line change, no + other change made. I hope this qualifies for a slink inclusion. + closes: Bug#33589 + + -- Manoj Srivastava Sun, 21 Feb 1999 23:40:27 -0600 + +mailagent (3.65-1) unstable; urgency=low + + * New upstrem bugfix release. + + -- Manoj Srivastava Tue, 26 Jan 1999 23:22:20 -0600 + +mailagent (3.63-4) unstable; urgency=low + + * Make sure that the files in the .deb are owned by root. fixes: BUG#30304 + + -- Manoj Srivastava Wed, 2 Dec 1998 23:50:24 -0600 + +mailagent (3.63-3) unstable; urgency=low + + * Added the fix from sparc to be prepared for glibc2.1 closes: BUG#30067 + + -- Manoj Srivastava Sat, 28 Nov 1998 00:16:55 -0600 + +mailagent (3.63-2) frozen unstable; urgency=low + + * Quoted the arguments to ASSIGN in the mailagent man page. The ASSIGN + command actually documented this, but the examples did need the simple + quotes. Only the man page has changed, and this may prevent some + confusion, so this may be sent to frozen. closes: BUG#29278. + + -- Manoj Srivastava Wed, 25 Nov 1998 02:09:23 -0600 + +mailagent (3.63-1.1) frozen unstable; urgency=low + + * non maintainer, sparc only upload + * fix initializer not constant bug with glibc2.1 + + -- Christian Meder Wed, 25 Nov 1998 13:29:53 +0100 + + +mailagent (3.63-1) unstable; urgency=low + + * New upstream release. + * Moved spamlist to the examples section; most of the upstream sites + have dried up, and this needs be updated to the newer sources of + information. + * Put in new versions of my rules file. The argument to ASSIGN needs be + quoted, a bug made 3.58 more tolerant. + + -- Manoj Srivastava Thu, 13 Aug 1998 13:08:15 -0500 + +mailagent (3.61-1) unstable; urgency=low + + * New upstream release. Excerpted changes: + * added "vacfixed" and "tofake" configuration parameters + * when "tofake" is turned off, disable faking of To: + * when "vacfixed" is on, forbid any change of vacation message + * new fakesend and getcost directories + * new ON command to issue commands on certain days only + * added hook for the new ON command + * added regression tests for new "ON" command + * without parameters, list all the defined variables + * the SERVER "set" command can now list defined variables + * added an example of alternate VACATION message selection + * changed "set" to dump variables when not given any argument + * typo fix in comment + * allow for missing "host1" in the Received: line parsing + * parser now allows no space between address and comment + * allow ~name expansion when specifying alternate rule files + * added -x to the sample unmime rules + * new -x and -X options to cope with accentuated letters + * added removal of ugly ?iso-8859-1?Q escapes in subject + * updated Copyright dates and canonicalized my HP e-mail address + * created 9 new files + * fixed typos + + -- Manoj Srivastava Mon, 25 May 1998 01:41:36 -0500 + +mailagent (3.58-6) unstable; urgency=low + + * lintian correctly wants the magic bytes to be #! /usr .. rather than + #!/usr.... + * Made two example scripts executable in /usr/lib to shut up lintian. + + -- Manoj Srivastava Sun, 8 Mar 1998 15:48:14 -0600 + +mailagent (3.58-5) unstable; urgency=low + + * Really fix permission. (forgot to fix permissions in the Master CVS + repository. Bah. + + -- Manoj Srivastava Fri, 13 Feb 1998 12:27:23 -0600 + +mailagent (3.58-4) unstable; urgency=low + + * Hmm. I was convinced by people that example files really should be + world readable. I also updated the examples again. + + -- Manoj Srivastava Fri, 13 Feb 1998 01:10:59 -0600 + +mailagent (3.58-3) unstable; urgency=low + + * Updated to standards version 2.4.0.0 + * mailagent contains a set of files that reflect the maintainers live + setup, which includes a number of small accesory scripts, and other + strange permissions. This annoys Lintian, but I am loth to change. So + not all lintian warning are addressed here. + * Updated the examples. + + -- Manoj Srivastava Tue, 10 Feb 1998 00:02:48 -0600 + +mailagent (3.58-2) unstable; urgency=low + + * Updated debian/rules in an attmpt to make sure the test is not run + twice. This may fix Bug#14063. + + -- Manoj Srivastava Tue, 28 Oct 1997 09:55:31 -0600 + +mailagent (3.58-1) unstable; urgency=low + + * Added a new HOWTO about settng up mailagent + * try and preserve timestamps + * clean up rules file + * New upstream release with pristine sources. Changes: + * factorized code to derive a unique filename + * added more generic file_lock() and file_unlock() routines + * new generic file_lock() and file_unlock() routines + * cosmetic change + * changed ordering of include files + * call new pmail() routine to process main message + * fixed typo in -r usage + * new -t and -f options for BEGIN and NOP + * all command options should now be output in bold + * documented _CALLOUT_ working state for callout queue + * code factorized within acs_lock() + * don't blindly chop command error message, remove trailing \n + * annotation was not performed for value "0" + * $lastcmd now global from analyze_mail() for BACK processing + * indication of relaying hosts now selectively emitted + * fixed ASSGINED -> ASSIGNED typo in log message + * implemented new -t and -f flags for BEGIN and NOP + * insert user e-mail address if no address for NOTIFY + * now clearly spot locked files in queue with a '*' + * improved Received: line parsing logic + * messages in the queue are now locked before processing + * new pmail() routine to factorize locking/processing code + * NOP now returns a status + * added -t and -f switches for BEGIN and NOP + * $lastcmd now global from analyze_mail() + * fixed overzealous unlinks + * uses an empty file instead of /dev/null + * forgot to unlink mail.lock in cp_mail() + * also handle bounced output from @SH package + * Added PATBOUNCE example + + -- Manoj Srivastava Wed, 17 Sep 1997 00:24:00 -0500 + +mailagent (3.56-8) unstable; urgency=low + + * Added a getspam script which shows how to get a list of spammers from + the net. + * Greatly updated the examples/rc stuff. Now it is a copy of my current + mailagent configuration. This could be used as a drop-in after editing + the usename and home directory location in dot.mailagent, but I + recommend looking over the files carefully. The mailagent.rules + included show how to split out Debian mailing lists, and apply spam + filters to non-mailing list mail. + * There have been reports of a possible perl bug with unpack that is + triggered by mailagent (I have not been able to reproduce this), + possibly associated with mh folders, which I hope may go away with + this version (I am building with perl 5.004.02). + + -- Manoj Srivastava Thu, 14 Aug 1997 13:26:56 -0500 + +mailagent (3.56-7) unstable; urgency=low + + * Make sure that the copyright file is not compressed, and that it + mentions the source locations. This fixes BUG#10827. + + -- Manoj Srivastava Wed, 25 Jun 1997 11:20:09 -0500 + +mailagent (3.56-6) unstable; urgency=low + + * Built with libc6 + + -- Manoj Srivastava Fri, 16 May 1997 11:43:14 -0500 + +mailagent (3.56-5) unstable; urgency=low + + * Improved the clean command. + + -- Manoj Srivastava Fri, 9 May 1997 17:27:06 -0500 + +mailagent (3.56-4) unstable; urgency=low + + * Handle all the @%$& problem with introducing more than one level of + directories and the inability of diff/patch to reconstruct the sources + by tarring, gzipping, and uuencoding the directories debian/Config and + debian/example. This fixes BUG#9605 + + -- Manoj Srivastava Fri, 9 May 1997 15:30:23 -0500 + +mailagent (3.56-3) frozen unstable; urgency=low + + * Fixed the spelling of frozen in changelog. Maybe the debian revision + did not need to be bumped up... + + -- Manoj Srivastava Thu, 17 Apr 1997 20:36:33 -0500 + +mailagent (3.56-2) forzen unstable; urgency=low + + * This fixes BUG#8604 + * Installed copyright + * Converted references to /usr/spool/mail to /var/spool/mail + * Compressed man page + + -- Manoj Srivastava Sun, 13 Apr 1997 13:37:14 -0500 + +mailagent (3.56-1) unstable; urgency=low + + * Changed maintainers email address to srivasta@debian.org. + * New upstream version. + * The upstream changes were: + * regenerated Configure for getopt() and dup2() checking. + * updated copyright notice. + * new groupsafe, execskip and lockwarn variables. + * added getopt.c and dup2.c files. + * prefer open(O_APPEND) to fopen("a") for stdio append bugs. + * now uses getopt() to parse command line switches. + * used $* variable for no purpose. + * documents new execsafe, groupsafe and lockwarn variables. + * the C filter can now redirect output via -o. + * made it explicit that /pattern/i is legal. + * made 'perl -cw' clean and fixed a couple of typos. + * removed the 'do' workaround for perl5.001. + * improved Received: header parsing. + * typo fixes and print() call cleanup to avoid run-time warnings. + * the -e un-escape was overzealous for uuencoded parts.... + * made the filter die if an error occurs to prevent feedback. + * two new files. + + -- Manoj Srivastava Fri, 21 Feb 1997 17:15:32 -0600 + +mailagent (3.54-2) unstable; urgency=low + + * Moved to standards version 2.1.2.2 + * Added error messages to failed root check + + -- Manoj Srivastava Thu, 13 Feb 1997 14:50:47 -0600 + +mailagent (3.54-1) unstable; urgency=high + + * Critical upstream upgrade. + + -- Manoj Srivastava Mon, 3 Feb 1997 14:20:50 -0600 + +mailagent (3.53-2) unstable; urgency=high + + * Upstream "unofficial" patch for critical bug. 3.54 will be released + after a testing period. + + -- Manoj Srivastava Thu, 9 Jan 1997 10:11:14 -0600 + +mailagent (3.53-1) unstable; urgency=low + + * New upstream version, various bug fixes. + * New execsafe configuration variable to disable extended exec() + checks when OFF. + + -- Manoj Srivastava Tue, 7 Jan 1997 18:43:39 -0600 + +mailagent (3.51-1) unstable; urgency=low + + * Added more examples, from both upstream sources and debian specific + rc files examples + * New upstream version with lots of patches + + -- Manoj Srivastava Mon, 30 Dec 1996 02:21:34 -0600 + +mailagent (3.44-8) unstable; urgency=low + + * Changed to the new package format. + + -- Manoj Srivastava Thu, 14 Nov 1996 00:27:29 -0600 + +Old Changelog: + +mailagent (3.44-7) unstable; urgency=low + * Changed the postinst to make /usr/bin/mailagent executable again. + This fixes bug#3432 and Bug#3504. + * Changed debian.rules to use dpkg-name. + * Changed the separators used all over to conform to the new nameing + conventions. + * Changed the postinst to refer to /usr/bin/perl, rather than /bin/perl, + to conform to an as yet unreleased guidelines. + * Changed the priority option to dchanges to conform to the new version. + + -- Manoj Srivastava + +mailagent (3.44-6) unstable; urgency=low + * There was a problem reported in that mailagent had a compiled + in domainname (mostly harmless, I think, except that the filter + reported that mail was filtered on whatever.pilgrim.umass.edu + which is not true for very many machines. Now the postinst + tries to take care of it by editing /usr/bin/mailagent on the + fly. + * A problem that still persists is that reportedly mailagent does + not honor the HOME directory when run out of root's crontab, + (I have not yet tested this) . There well may be problems with + crontab in general, this has been reported upstream, and I'll be + attending to this ASAP. + + -- Manoj Srivastava + +mailagent (3.44-5) unstable; urgency=low + * Added the Priority field to the package file name. + * Added the Source field to the package file name. + * Changed a typo in mailhook.pl that caused the CC list to be + the same as the To list. This fixes Bug#2983 + + + -- Manoj Srivastava + +mailagent (3.44-4) unstable; urgency=low + * Added the architecture field to the package file name. + * Modified maildist.1, maillist.1, and mailpatch.1 to not + contain the full path name. This fixes Bug#2798. + * point to /usr/doc/copright/Artistic rather than install + our own copy. + * Gave up trying to fix the compress tests. The fact is, we + have gzip, thinly disguised as compress, and mailagent + believes that compress should provide .Z files, not .gz, + and gets very confused. Gzipped folders work. We can't produce + .Z folders anyway. + * Fixed Configure idiocy about non-NIS domain name determination. + + -- Manoj Srivastava + +mailagent (3.44-3) unstable; urgency=low + * Added architecture header in control + * added section header + * merged the package revision header into the revision header. + * cleaned up the debian.rules. + * added the Changelog. + * Fixed the description field not to include multiple contiguous + spaces + + -- Manoj Srivastava + +mailagent (3.44-2) unstable; urgency=low + * Use /etc/news/organization instead of /etc/organization + Please note that people who installed mailagent-3.44-1 + and/or dist-3.60-2 shall have to remove /etc/organization + manually after upgrading both packages. + * gzip files in /usr/doc/examples/mailagent + + -- Manoj Srivastava + +mailagent (3.44-1) unstable; urgency=low + + * Added debian.* files + + -- Manoj Srivastava --- mailagent-3.1-81.orig/debian/clean +++ mailagent-3.1-81/debian/clean @@ -0,0 +1,20 @@ +config.over +mkdep +agent/filter/Makefile.bak +agent/pl/utmp/Makefile.bak +agent/Makefile.bak +debian/getspam.1 +Makefile +agent/Makefile +agent/examples/Makefile +agent/files/Makefile +agent/files/help/Makefile +agent/filter/Makefile +agent/man/Makefile +agent/pl/Makefile +agent/pl/termios/Makefile +agent/pl/utmp/Makefile +agent/test/Makefile +config.h +config.sh +install --- mailagent-3.1-81.orig/debian/compat +++ mailagent-3.1-81/debian/compat @@ -0,0 +1 @@ +9 --- mailagent-3.1-81.orig/debian/config.over +++ mailagent-3.1-81/debian/config.over @@ -0,0 +1,10 @@ +thisdir=`pwd` +installmansrc=$thisdir/debian/tmp/usr/share/man/man1 +installprivlib=$thisdir/debian/tmp/usr/share/doc/mailagent +installscript=$thisdir/debian/tmp/usr/bin +installbin=$thisdir/debian/tmp/usr/bin +mydomain=.Unconfigured.Mailagent.Domain +maildir='/var/spool/mail' +maildirexp='/var/spool/mail' +mailfile='/var/spool/mail/%L' + --- mailagent-3.1-81.orig/debian/control +++ mailagent-3.1-81/debian/control @@ -0,0 +1,49 @@ +Source: mailagent +VCS-Git: https://anonscm.debian.org/git/users/srivasta/debian/mailagent.git +VCS-Browser: http://anonscm.debian.org/gitweb/?p=users/srivasta/debian/mailagent.git +Section: mail +Priority: optional +Maintainer: Manoj Srivastava +Standards-Version: 3.9.6 +Build-Depends: groff-base, debhelper (>= 9.0.0), po-debconf, file, + gettext, libperl4-corelibs-perl, dpkg-dev (>= 1.16.0), + libfile-fcntllock-perl + + +Package: mailagent +Depends: ${shlibs:Depends}, ${misc:Depends}, perl, libperl4-corelibs-perl, + debconf (>= 1.2.0) | debconf-2.0, exim4 | postfix | sendmail | mail-transport-agent, + libfile-fcntllock-perl +Architecture: any +Description: automatic mail-processing tool and filter + Mailagent is a mail delivery agent, and can be programmed to + respond to mail in ways more sophisticated than a mail filtering + program like procmail. It is easy to configure, and very easy to + extend using Perl. Not only can the base functionality be + extended, new commands and processing methods can be added in a + modular fashion. + . + Obeying lex-like rulesets, mailagent can file mails to specific + folders (plain Unix-style folders and also MMDF and MH ones), + forward messages to third parties, pipe them to commands or post + them to newsgroups. The filtering commands that are executed on + the messages can be extended, and may rewrite the message headers + or body as desired. It can also create and process commands based + on key words contained in the body of the mail message. + . + Mailagent can be used as a vacation program, and can answer mail + automatically and with more flexibility than the command of that + name. A template can be provided for the body of the response, + and the frequency of vacation mails can also be specified. Simple + macro substitutions allow parts of the mail header to be recycled + into the vacation messages, for a more personalized reply. + . + Mailagent can also be used to set up a generic mail server, + without the hassle of the lower-level concerns like error + recovery, logging or command parsing. + . + Please note that on Debian systems, mailagent requires a catch-all + rule saving all mail into the user's home directory. Unlike other + Mail Delivery Agents such as procmail, mailagent is too extensible + to be safely made setgid mail, and so cannot lock /var/spool/mail + mailboxes. --- mailagent-3.1-81.orig/debian/copyright +++ mailagent-3.1-81/debian/copyright @@ -0,0 +1,45 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mailagent 3.0 +Upstream-Contact: Raphael Manfredi +Sources: https://mailagent.svn.sourceforge.net/svnroot/mailagent/trunk/mailagent +Comment: mailagent may also be found at most of the Comprehensive Perl Archive + Network sites, in the location + <$CPAN/authors/id/RAM/mailagent-3.0@73.tar.gz>. + +Files: * +Copyright: 1990-2006, 2008 Raphael Manfredi +License: Artistic + +Files: debian/* +Copyright: 1995-2009, 2014, 2016 Manoj Srivastava +License: GPL-2+ + +License: GPL-2+ + This package 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 package 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 . + . + On Debian systems, the complete text of the GNU General + Public License can be found in "/usr/share/common-licenses/GPL-2". + +License: Artistic + This program is free software; you can redistribute it and/or modify + it under the terms of the Artistic License, a copy of which can be + found with this package. + . + 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 + Artistic License for more details. + . + On Debian systems, the full text of the Artistic License can be found + in the file `/usr/share/common-licenses/Artistic'. --- mailagent-3.1-81.orig/debian/getspam +++ mailagent-3.1-81/debian/getspam @@ -0,0 +1,359 @@ +#! /usr/bin/perl +# -*- Mode: Perl -*- +# getspam --- +# Last Modified By : Manoj Srivastava +# Last Modified On : Mon Dec 1 23:36:11 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 55 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# arch-tag: b6ea6640-7276-44ef-9264-3cf557ad5484 +# +# $Id: getspam,v 1.2 1998/08/13 18:04:32 srivasta Exp $ + +# +# Copyright (c) 1997 +# Randal L. Schwartz , +# Scott Blachowicz , +# and +# Manoj Srivastava . +# All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of either: +# +# a) the GNU General Public License as published by the Free +# Software Foundation; either version 1, or (at your option) any +# later version, or +# +# b) the "Artistic License" which comes with this Kit. +# +# 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 either +# the GNU General Public License or the Artistic License for more details. +# +# You should have received a copy of the Artistic License with this +# Kit, in the file named "Artistic". If not, I'll be glad to provide one. +# +# You should also have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# + +require 5.001; + +# You need the LWP library package for this program. + +use strict; +use diagnostics; +use Carp; +use Sys::Hostname; +use URI::Escape; +use LWP::Simple; +use Getopt::Long; + + +package main; + +=head1 NAME + +getspam - A script to get the latest list of spammers. + +=cut + +=head1 SYNOPSIS + + usage: getspam [options] + where the options are: + +=over 2 + +=item --lists LISTNAME + +colon seperated list of indices into hash of URLs, currently this is +one of aol, mindspring, znet, iocom, nancynet, cyberpromo, llv) + +=item --output OUTPUT + +base prefix for split lists, filename for merged list + +=item --help + +A short usage message. + +=item --[no]split + +split lists into individual files - default is on for 'mailagent' and +off for others) + +=item --type TYPE_OF_OUTPUT + +"sendmail" or "mailagent" - default "mailagent" + +=item --[no]verbose + +verbose + +=back + +=cut + +=head1 DESCRIPTION + +This utility creates a series of lines that look like + +=over 2 + +Z<> + +C + +C + +=back + +which happen to be directly useful in .rules lines that look like this: + +=over 2 + +Z<> + +EINITIAL Envelope From Sender Relayed Reply-To: "~/.spamlist" { + +=over 4 + + ANNOTATE -d X-merlyn-spam Smells like spam from %1; + REJECT; +}; + +=back + +=back + +Alternatively, it can produce files ready for the B macro +in recent B versions, so that one may automatically keep +ones spam filter up to date. The default is mailagent format. + +This script uses the C Perl library, so you need to have that +installed as well. + +This version of the getspam utility has been podified and tweaked by +Manoj Srivastava , based entirely on the work of +Scott Blachowicz (the program structire is mostly +his), which, in turn, was inspired by and based on the script posted +to the Agent users list by Randal L. Schwartz . + +=cut + +sub main { + my $ret; + my $lists = 'ALL'; + my $spam_base = "$ENV{'HOME'}/spamlist"; + my $output_type = "mailagent"; + my $split_lists = 1; + my $verbose = 0; + my $help = 0; + my $MYNAME = ''; + + ($MYNAME = $0) =~ s|.*/||; + my $usage= < \$lists, + "output=s" => \$spam_base, + "split!" => \$split_lists, + "type=s" => \$output_type, + "verbose!" => \$verbose, + "help" => \$help); + die "$usage" unless $ret; + die "$usage" if $help; + + my $host = hostname(); + if ($host !~ /\./) { + # Try to add a domain name? + my ($name, $aliases, $addrtype, $length, @addrs) = gethostbyname($host); + my @aliases = grep(/\./,split(/\s+/,$aliases)); + $host = $aliases[0] if @aliases; + } + + my $ftpuser = "ftp:despammer%40" . uri_escape ("$host"); + +=head2 Known locations for Spam lists + +There are a number of sites on the network, either on the Web, or +anonymous ftp servers, that maintain lists of domains and email +addresses that are known to generate spam. The addresses are stored in +a hash. Currently valid keys are aol, mindspring, znet, iocom, +nancynet, cyberpromo, and llv. + +=cut + + my %urls = + ('aol', "http://www.idot.aol.com/preferredmail/", + 'mindspring', "http://www.mindspring.com/cgi-bin/spamlist.pl", + 'znet', "http://www.znet.com/spammers.txt", + ## too many bad matches: 'wsrcc', "http://www.wsrcc.com/spam/spamlist.txt", + 'iocom', "http://www.io.com/help/killspam.php", + 'nancynet', "ftp://ftp.cybernothing.org/pub/abuse/nancynet.domains", + 'cyberpromo', "ftp://ftp.cybernothing.org/pub/abuse/cyberpromo.domains", + 'llv', "ftp://ftp.cybernothing.org/pub/abuse/llv.domains", + ); + +=head2 Parsers for raw data + +There are parsers available internally for some of the sites in the +list above to massage the data into a usable format. + +=cut + + my %parsers = + ('aol', '&parse_aol($_)', + 'mindspring', '&parse_mindspring($_)', + 'iocom', '&parse_iocom($_)', + ); + +=head2 Sites that may be mistakenly blocked + +There is an internal list of sites that have been incorrectly flagged +as spamming domains. This can be used to tinker with auto generated +lists. + +=cut + + my %unspam = + ( + 'concentric.net', 'non-spam emails', #wsrcc + 'demon.net', 'non-spam emails', #wsrcc + 'hotmail.com', 'free email used by non-spammers as well', + 'interactive.net', 'non-spam emails', #znet + 'mindspring.com', 'non-spam emails', #wsrcc + 'psi.net', 'non-spam emails', #wsrcc + 'shoppingplanet.com', 'non-spam emails', + 'vnet.net', 'non-spam emails', #wsrcc + 'yoyo.com', 'non-spam emails', + ); + + if (! $split_lists) { + open OUT, ">${spam_base}" or die "create ${spam_base}: $!"; + } + + my $site; + foreach $site (keys %urls) { + print "# Processing '$site' at URL $urls{$site}\n" if $verbose; + + if ($_ = get $urls{$site}) { + if ($split_lists) { + open OUT, ">${spam_base}-$site" or + die "create ${spam_base}-$site: $!"; + } + + ## 1) Filter out duplicate sites if going to one spamlist file. + ## 2) Filter out '#'-started comments. + ## 3) Filter out blank lines. + ## 4) be sure $1 is what you want in the annotation + ## 5) if no @ char, stick a "any user/any subdomain/host" regexp in. + print OUT map {s/\#.*$//; + /\S/ && eval "\&filter_${output_type}(\$_)"; + } grep((!$unspam{$_} && + ($split_lists || !$unspam{$_}++)), + ($parsers{$site} ? + eval "$parsers{$site}" : split /\n/)); + close OUT if $split_lists; + } + else { + warn "Cannot get $urls{$site}\n"; + } + } + close OUT if !$split_lists; +} + +sub filter_mailagent { + local($_) = @_; + "/^(" . (/\@/ ? "" : "(.*[\@.])?") . "\Q$_\E)\$/i\n"; +} + +sub filter_sendmail { + local($_) = @_; + "$_ " . (/\@/ ? "SPAMMER" : "JUNK") . "\n"; +} + +sub parse_aol { + local($_) = @_; + if (! s/^[\s\S]*[^\n]*\n,,) { + warn "parse_mindspring: can't find block of hostnames"; + return (); + } + if (! s,[\s\S]*?
[^\n]*\n,,) {
+        warn "parse_mindspring: can't find block of email addresses";
+        return ();
+    }
+    s,
[\s\S]*$,,; + split /\n/; +} + +sub parse_iocom { + local($_) = @_; + if (! s,^[\s\S]*?Blocked\s*Domains[\s\S]*?]+>,,g; + split /[\s\n]+/; +} + + +=head1 BUGS + +None Known so far. + +=cut + +=head1 MAINTAINER + +Manoj Srivastava + +=cut + +&main::main(); + +__END__ + + + + + --- mailagent-3.1-81.orig/debian/mailagent.config +++ mailagent-3.1-81/debian/mailagent.config @@ -0,0 +1,84 @@ +#!/bin/sh +# -*- Mode: Sh -*- +# config --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Oct 31 21:53:31 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Mon Apr 19 01:41:21 2004 +# Last Machine Used: glaurung.internal.golden-gryphon.com +# Update Count : 16 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# arch-tag: 1c40a2eb-f28c-41b5-a423-671be2e816ed +# + +set -e + +case "$1" in + configure) + # Configure this package. If the package must prompt the user for + # information, do it here. + if [ ! -e /etc/news/organization ]; then + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_capb + ok='' + # See if the old shared question still exists. + if db_get share/news/organization; then + if [ "X$RET" != "X" ]; then + ok=1 + break + fi + fi + while [ ! "$ok" ]; do + retval=$(db_input low shared/news/organization) || true + if [ "$retval" = "30 question skipped" ]; then + ok=1 + fi + db_go || true + db_get shared/news/organization + if [ "X$RET" != "X" ]; then + ok=1 + break + fi + done + fi + fi + + ;; + reconfigure) + if [ ! -e /etc/news/organization ]; then + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_capb + ok='' + # See if the old shared question still exists. + if db_get share/news/organization; then + if [ "X$RET" != "X" ]; then + ok=1 + break + fi + fi + while [ ! "$ok" ]; do + retval=$(db_input low shared/news/organization) || true + if [ "$retval" = "30 question skipped" ]; then + ok=1 + fi + db_go || true + db_get shared/news/organization + if [ "X$RET" != "X" ]; then + ok=1 + break + fi + done + fi + fi + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0; + --- mailagent-3.1-81.orig/debian/mailagent.docs +++ mailagent-3.1-81/debian/mailagent.docs @@ -0,0 +1,7 @@ +README +Changes +FAQ +Credits +debian/README.Debian +debian/SECURITY +agent/files/help --- mailagent-3.1-81.orig/debian/mailagent.examples +++ mailagent-3.1-81/debian/mailagent.examples @@ -0,0 +1,7 @@ +misc/README +misc/shell +misc/unkit +misc/pbounce +misc/mime +misc/news +debian/rc --- mailagent-3.1-81.orig/debian/mailagent.install +++ mailagent-3.1-81/debian/mailagent.install @@ -0,0 +1,3 @@ +/usr/bin usr +/usr/lib usr +/usr/share usr --- mailagent-3.1-81.orig/debian/mailagent.manpages +++ mailagent-3.1-81/debian/mailagent.manpages @@ -0,0 +1,7 @@ +debian/tmp/usr/share/man/man1/mailpatch.1 +debian/tmp/usr/share/man/man1/maillist.1 +debian/tmp/usr/share/man/man1/mailhelp.1 +debian/tmp/usr/share/man/man1/mailagent.1 +debian/tmp/usr/share/man/man1/edusers.1 +debian/tmp/usr/share/man/man1/package.1 +debian/tmp/usr/share/man/man1/maildist.1 --- mailagent-3.1-81.orig/debian/mailagent.postinst +++ mailagent-3.1-81/debian/mailagent.postinst @@ -0,0 +1,492 @@ +#! /usr/bin/perl +# -*- Mode: Perl -*- +# debian.postinst --- +# Author : Manoj Srivastava ( srivasta@pilgrim.umass.edu ) +# Created On : Tue May 21 23:15:26 1996 +# Created On Node : melkor.pilgrim.umass.edu +# Last Modified By : Manoj Srivastava +# Last Modified On : Mon Apr 19 01:42:02 2004 +# Last Machine Used: glaurung.internal.golden-gryphon.com +# Update Count : 65 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# +# arch-tag: 5401e9ef-39cc-4aee-96a4-61dfb8f32cf7 +# + +$|=1; +# Ignore all invocations uxcept when called on to configure. +exit 0 unless $ARGV[0] =~ /configure/; + +my $have_debconf = 0; +eval {require Debconf::Client::ConfModule;}; +if ( ! $@ ) +{ + $have_debconf++; + import Debconf::Client::ConfModule ':all'; +} + +sub handle_org (){ + my $ret; + + return 1 if -f "/etc/news/organization"; + print STDERR "\n"; + print STDERR "Hmmm.. You don't seem to have an /etc/news/organization file.\n"; + print STDERR "Usually that contains the name of your organization as \n"; + print STDERR "you want it to appear on the Organization line of outgoing\n"; + print STDERR "articles/patches.\n"; + print STDERR "\n"; + if (! -d "/etc/news") { + $ret = &create_newsdir(); + if ($ret) { + warn $ret; + return 0; + } + } + if (-f "/etc/organization") { + $ret = &docopy(); + if ($ret) { + warn $ret; + return 0; + } + return 1; + } + $ret = &get_orgname(); + if ($ret) { + warn $ret; + return 0; + } + return 1; +} + +sub warn_org (){ + print STDERR "\n"; + print STDERR "There was an error setting up /etc/news/organization to\n"; + print STDERR "contain the name of your organization as you want\n"; + print STDERR "it to appear on the Organization line of outgoing\n"; + print STDERR "articles/patches. Please ensure manually that the file\n"; + print STDERR "/etc/news/organization is set up properly.\n"; + print STDERR "Please hit return to continue:"; + my $ans = ; +} + +sub docopy (){ + my $ret; + + print STDERR "But you do have /etc/organization. I'll Use that.\n"; + print STDERR "If that is not right, just edit /etc/news/organization \n"; + print STDERR "after the setup is done. (/etc/organization is deprecated.\n"; + print STDERR "You might consider removing it if nothing else uses it).\n"; + print STDERR "\n"; + $ret = system 'cp', '/etc/organization', '/etc/news/organization'; + if ($ret) { + return "Could not copy file /etc/organization to /etc/news, " . + ($ret >> 8); + } + return &set_perms(); +} + +sub get_orgname() { + return if -e "/etc/news/organization"; + my $orgname; + + if ( ! $have_debconf ) { + # No debconf + print STDERR <<"EOH"; + +Please type the name of your organization as you want it to appear on +the Organization line of outgoing articles/patches. (It's nice if +this also specifies your location. Your city name is probably +sufficient if well known.) For example: + + University of Southern North Dakota, Hoople +Type in "--none--" if you do not want to specify one. + +EOH +; + chomp ($orgname=); + } + else { + + my $ret; + my $seen; + + ($ret,$orgname) = get ("share/news/organization"); + if ($ret) { + ($ret,$seen) = fget ("share/news/organization", 'seen'); + if ($seen eq 'true') { + if ($orgname eq "--none--") { + $orgname = ''; + } + } + else { + $orgname = ''; + } + # I no longer claim this question + unregister("share/news/organization"); + } + else { + ($ret,$seen) = fget ("shared/news/organization", 'seen'); + if ($seen eq 'true') { + # The user saw and answered the question using debconf. + ($ret,$orgname) = get ("shared/news/organization"); + if ($orgname eq "--none--") { + $orgname = ''; + } + else { + print STDERR "Using org Name $orgname\n"; + } + } + else { + # Debconf did not display the question to the user. + print STDERR "Hmm. Apparently, Debconf did not display the question\n"; + print STDERR "Not setting org name\n"; + $orgname = ''; + } + } + } + if ($orgname =~ m/^--none--$/) { + $orgname = ''; + } + + if ($orgname) { + if (! open (ORGS, ">/etc/news/organization")) { + return "Could not open /etc/news/organization:$!"; + } + print ORGS "$orgname\n"; + close (ORGS); + return &set_perms(); + } + return ''; +} + +sub set_perms () { + my $ret; + my ($name,$passwd,$gid,$members); + ($name,$passwd,$gid,$members) = getgrnam("news"); + $ret = chown 0, $gid, "/etc/news/organization"; + if ($ret != 1) { + return "Could not chown /etc/news/organization:$!"; + } + $ret = chmod 0644, "/etc/news/organization"; + if ($ret != 1) { + return "Could not chmod 0644 /etc/news/organization:$!"; + } + return ''; +} + +sub create_newsdir () { + umask 0000; + my $ret = mkdir "/etc/news", 02755; + return "Could not create /etc/news:($ret)$!" if ! $ret; + my ($name,$passwd,$gid,$members); + ($name,$passwd,$gid,$members) = getgrnam("news"); + $ret = chown 0, $gid, "/etc/news"; + if ($ret != 1) { + return "Could not chown /etc/news:$!"; + } + return ''; +} + + +sub get_hostcat() { + my $hostcat = "cat /etc/hosts"; + if (-d "/var/yp" || -d "/usr/etc/yp" || -d "/etc/yp") { + if (&ask_n("Do you get the hosts file via NetInfo")) { + $hostcat="nidump hosts ."; + } + else { + my $found = ''; + #test to see if /etc/passwd contains a + line + open (PASS, "/etc/passwd") || return ''; + $found=''; + while () { + chomp; + $found++, last if /^\+/o; + } + close (PASS); + if (&ask_y("Are you getting the hosts file via yellow pages")) { + $hostcat = "ypcat hosts"; + } + } + } + return $hostcat; +} + +sub get_hostname() { + my $hostname = ''; + if (-x "/bin/hostname") { + $hostname=`/bin/hostname 2>&1`; + if ($?) { + $hostname=""; + } + else { + chomp($hostname); + $hostname =~ tr/[A-Z]/[a-z]/; + $hostname =~ s/^([^\.]+)\..*/$1/o; + return $hostname; + } + } + if (-x "/bin/uname") { + $hostname=`/bin/uname -n 2>&1`; + if ($?) { + $hostname=""; + } + else { + chomp($hostname); + $hostname =~ tr/[A-Z]/[a-z]/; + $hostname =~ s/^([^\.]+)\..*/$1/o; + return $hostname; + } + } + print STDERR "Please type the (one word) name of your host:"; + $hostname=; + chomp ($hostname); + $hostname =~ tr/[A-Z]/[a-z]/; + $hostname =~ s/^([^\.]+)\..*/$1/o; + $hostname =~ s/^(\S+).*/$1/o; + return $hostname; +} + +sub get_domainname() { + my $domainname = ''; + my $hostcat = ''; + my $hostname = ''; + + if (-x "/bin/dnsdomainname") { + $domainname = `/bin/dnsdomainname 2>&1 `; + if ($?) { + $domainname=""; + } + else { + chomp($domainname); + $domainname =~ tr/[A-Z]/[a-z]/; + return $domainname; + } + } + $hostname = &get_hostname(); + $hostcat = &get_hostcat(); + if (open (HOSTS, "$hostcat |")) { + + while () { + chomp; + if (/^[\d\.]+\s+($hostname.*)/o) { + my $rest; + my @names; + + $rest = $1; + @names = split('\s+', $rest); + for (@names) { + if (/$hostname\.(\S+)/o) { + $domainname = $1; + close (HOSTS); + return $domainname; + } + } + } + } + close (HOSTS); + } + if (-f "/etc/resolv.conf") { + if (open (RESOLV, "/etc/resolv.conf")) { + while () { + chomp; + if (/^\s*domain\s+(\S+)/o) { + $domainname = "$1"; + close (RESOLV); + return $domainname; + } + } + close (RESOLV); + } + } + + print STDERR "What is your domain name?:"; + $domainname = ; + chomp ($domainname); + return $domainname; +} + +sub ask_n { + my $answer; + print @_,"? [No] "; + $answer=; + return ( $answer =~ /^[yY].*/ ); +} + +sub ask_y { + my $answer; + print @_,"? [Yes] "; + $answer=; + return ( $answer !~ /^[Nn].*/ ); +} + +sub handle_doc_symlink { + my $linktarget = "../share/doc/mailagent"; + if (-d "/usr/doc") { + # Well, we still need to handle this, at least for the time being + if (-l "/usr/doc/mailagent") { + unlink "/usr/doc/mailagent"; + } + my $targetdir; + my $stargetdir; + + if (-x '/bin/pwd') { + chdir('/usr/doc/'); + $targetdir=`/bin/pwd`; + chdir('/usr/share/doc/'); + $stargetdir=`/bin/pwd`; + chdir('/'); + + chdir('/usr/doc'); + if (-f '../share/doc/') { + chdir('../share/doc/'); + my $ltarget=`/bin/pwd`; + if ($ltarget ne $stargetdir) { + $linktarget = "/usr/share/doc/mailagent"; + } + } + } + if ($targetdir ne $stargetdir) { + if (-d "/usr/share/doc/mailagent") { + # So the new doc dir exists, goody + if (-d "/usr/doc/mailagent") { + print STDERR "Yikes! The old directory, /usr/doc/mailagent\n"; + print STDERR "has not ben removed! This is an error; attempting\n"; + print STDERR "repairs"; + if (-f "/usr/doc/mailagent/.dhelp") { + unlink "/usr/doc/mailagent/.dhelp"; + rmdir "/usr/doc/mailagent"; + } + if (-d "/usr/doc/mailagent") { + print STDERR <<"EOFERRONE"; +Failed repairs. There are old files in /usr/doc/mailagent/ created +by you or another script. I can copy them over to the new location +/usr/share/doc/$package_name, if you wish, preserving your versions of +the files. No files shall be over written, instead, backup versions +shall be created in /usr/share/doc/$package_name as needed. + +EOFERRONE + ; + my $answer=''; + print "Shall I copy the files over [Yn]?"; + $answer=; + if ($answer =~ /^n/i) { + print "Not copying over, aborting\n"; + return 1; + } + else { + system "cp", "-a", "--backup=t", + "/usr/doc/mailagent", + "/usr/share/doc/mailagent/.." || do { + warn "Error copying files over: $?"; + return 1; + }; + + system "rm", "-rf", "/usr/doc/mailagent" || do { + warn "Error removing old directory:$?"; + return 1; + }; + + } + } + } + if (-e "/usr/doc/mailagent") { + print STDERR "/usr/doc/mailagent exists, but is not a directory\n"; + if (-l "/usr/doc/mailagent") { + print STDERR "It is a symbolic link. Overwriting\n"; + unlink "/usr/doc/mailagent"; + symlink $linktarget, "/usr/doc/mailagent"; + } + else { + print STDERR "This is an error. Aborting\n"; + return 1; + } + } + # File unexists. Free to go ahead and create link + symlink $linktarget, "/usr/doc/mailagent"; + } + } + } + else { + # Hmm. no dir. + warn "No /usr/doc directory found, no symlinks made."; + return 1; + } +} + +sub edit_mailagent(){ + my $domainname = &get_domainname(); + open (MAILAGENT, "/usr/bin/mailagent") || do { + warn "Could not open /usr/bin/mailagent executable to fix domains:$!"; + return 0; + }; + + open (NEW, ">/usr/bin/mailagent.fixed") || do { + warn "Could not create /usr/bin/mailagent.fixed to fix domains:$!"; + return 0; + }; + + while () { + chomp; + if (/^\$mydomain = \'([^\']+)\'/o) { + my $compiled_domain = $1; + if ("$compiled_domain" ne ".$domainname") { + s/^(\$mydomain = \')([^\']+)(\'.*)/$1.$domainname$3/o; + } + } + print NEW "$_\n"; + } + close (MAILAGENT); + close (NEW); + rename "/usr/bin/mailagent","/usr/bin/mailagent.old" || do { + warn "Could not rename /usr/bin/mailagent executable to fix domains:$!"; + return 0; + }; + + chmod 0755, "/usr/bin/mailagent.fixed" || do { + warn "Could not chmod 0755 /usr/bin/mailagent.fixed:$!"; + return 0; + }; + + rename "/usr/bin/mailagent.fixed","/usr/bin/mailagent" || do { + warn "Could not rename /usr/bin/mailagent.fixed to fix domains:$!"; + return 0; + }; + unlink "/usr/bin/mailagent.old"; + return 1; +} + +sub warn_agent (){ + print "\n"; + print "There was an error setting while I was trying to edit\n"; + print "your domain name into /usr/bin/mailagent. This is not\n"; + print "critical, mailagent will just report that it is being run\n"; + print "on a machine in the domain that this package was built on.\n"; + print "If you find this irritating, please edit /usr/bin/mailagent\n"; + print "and change the line\n"; + print "\$mydomain = '.blah.blah';\n"; + print "to your own domain.\n"; + print "Please hit return to continue:"; + my $ans = ; +} +sub warn_doc_symlink (){ + print "\n"; + print "There was an error setting a symbolic link from the directory\n"; + print "/usr/share/doc/mailagent to /usr/doc/mailagent. Please create\n"; + print "the symlink manually, perhaps by doing\n"; + print "the symlink manually, perhaps by doing\n"; + print "\t\t# ln -s /usr/share/doc/mailagent /usr/doc/mailagent\n"; + print "Please hit return to continue:"; + my $ans = ; +} + +&handle_org() || &warn_org(); +# &handle_doc_symlink || &warn_doc_symlink; +# &edit_mailagent() || &warn_agent(); + +#DEBHELPER# + +__END__ --- mailagent-3.1-81.orig/debian/mailagent.postrm +++ mailagent-3.1-81/debian/mailagent.postrm @@ -0,0 +1,173 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# postrm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:22:20 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Tue Dec 2 10:53:25 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 10 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 56802d51-d980-4822-85c0-28fce19ed430 +# +# 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 +# + + +# Abort if any command returns an error value +set -e + +package_name=mailagent; + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +# This script is called twice during the removal of the package; once +# after the removal of the package's files from the system, and as +# the final step in the removal of this package, after the package's +# conffiles have been removed. +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# Ensure the menu system is updated +##: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus + +case "$1" in + remove) + # This package is being removed, but its configuration has not yet + # been purged. + : + + # Remove diversion + ##: dpkg-divert --package ${package_name} --remove --rename \ + ##: --divert /usr/bin/other.real /usr/bin/other + + # ldconfig is NOT needed during removal of a library, only during + # installation + + ;; + purge) + # This package has previously been removed and is now having + # its configuration purged from the system. + : + + # we mimic dpkg as closely as possible, so we remove configuration + # files with dpkg backup extensions too: + ### Some of the following is from Tore Anderson: + ##: for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + ##: rm -f /etc/${package_name}.conf$ext + ##: done + + # remove the configuration file itself + ##: rm -f /etc/${package_name}.conf + + # and finally clear it out from the ucf database + ##: ucf --purge /etc/${package_name}.conf + + # Remove symlinks from /etc/rc?.d + ##: update-rc.d ${package_name} remove >/dev/null + + if [ -e /usr/share/debconf/confmodule ]; then + # Purge this package's data from the debconf database. + . /usr/share/debconf/confmodule + db_purge + fi + + # This package has previously been removed and is now having + # its configuration purged from the system. + ##: for flavour in emacs20 emacs21; do + ##: STARTDIR=/etc/$flavour/site-start.d; + ##: STARTFILE="${package_name}-init.el"; + ##: if [ -e "$STARTDIR/20$STARTFILE" ]; then + ##: rm -f "$STARTDIR/20$STARTFILE" + ##: fi + ##: done + + ;; + disappear) + if test "$2" != overwriter; then + echo "$0: undocumented call to \`postrm $*'" 1>&2 + exit 0 + fi + # This package has been completely overwritten by package $3 + # (version $4). All our files are already gone from the system. + # This is a special case: neither "prerm remove" nor "postrm remove" + # have been called, because dpkg didn't know that this package would + # disappear until this stage. + : + + ;; + upgrade) + # About to upgrade FROM THIS VERSION to version $2 of this package. + # "prerm upgrade" has been called for this version, and "preinst + # upgrade" has been called for the new version. Last chance to + # clean up. + : + + ;; + failed-upgrade) + # About to upgrade from version $2 of this package TO THIS VERSION. + # "prerm upgrade" has been called for the old version, and "preinst + # upgrade" has been called for this version. This is only used if + # the previous version's "postrm upgrade" couldn't handle it and + # returned non-zero. (Fix old postrm bugs here.) + : + + ;; + abort-install) + # Back out of an attempt to install this package. Undo the effects of + # "preinst install...". There are two sub-cases. + ##: + + if test "${2+set}" = set; then + # When the install was attempted, version $2's configuration + # files were still on the system. Undo the effects of "preinst + # install $2". + : + + else + # We were being installed from scratch. Undo the effects of + # "preinst install". + : + + fi ;; + abort-upgrade) + # Back out of an attempt to upgrade this package from version $2 + # TO THIS VERSION. Undo the effects of "preinst upgrade $2". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +#DEBHELPER# + +exit 0 --- mailagent-3.1-81.orig/debian/mailagent.prerm +++ mailagent-3.1-81/debian/mailagent.prerm @@ -0,0 +1,129 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# prerm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:16:39 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Tue Dec 2 10:54:38 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 11 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: a4c1a888-137d-4800-98f8-93d0365422d8 +# +# 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 +# +# + +# Abort if any command returns an error value +set -e + +package_name=mailagent + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + + +# This script is called as the first step in removing the package from +# the system. This includes cases where the user explicitly asked for +# the package to be removed, upgrade, automatic removal due to conflicts, +# and deconfiguration due to temporary removal of a depended-on package. + +# Info files should be uninstalled from the dir file in any case. +##: install-info --quiet --remove /usr/info/${package_name}.info + +case "$1" in + remove) + # This package about to be removed. + : + + # Remove package-specific directories from /usr/local. Don't try + # to remove standard directories such as /usr/local/lib. + ##: if test -d /usr/local/lib/${package_name}; then + ##: rmdir /usr/local/lib/${package_name} || true + ##: fi + + # Deactivate menu-methods script. + ##: chmod a-x /etc/menu-methods/${package_name} + + # Withdraw our version of a program. + ##: update-alternatives --remove program /usr/bin/alternative + + # Get rid of the installed docs + #if which install-docs >/dev/null 2>&1; then + # install-docs -r $package_name + #fi + + # Get rid of the byte compiled files + ##: if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then + ##: /usr/lib/emacsen-common/emacs-package-remove $package_name + ##: fi + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + # There are two sub-cases: + if test "${2+set}" = set; then + if test "$2" != in-favour; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # We are being removed because of a conflict with package $3 + # (version $4), which is now being installed. + : + + else + # The package is being removed in its own right. + : + + fi ;; + deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # Package $6 (version $7) which we depend on is being removed due + # to a conflict with package $3 (version $4), and this package is + # being deconfigured until $6 can be reinstalled. + : + + ;; + upgrade) + # Prepare to upgrade FROM THIS VERSION of this package to version $2. + : + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + ;; + failed-upgrade) + # Prepare to upgrade from version $2 of this package TO THIS VERSION. + # This is only used if the old version's prerm couldn't handle it, + # and returned non-zero. (Fix old prerm bugs here.) + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac +#DEBHELPER# +exit 0 --- mailagent-3.1-81.orig/debian/po/POTFILES.in +++ mailagent-3.1-81/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- mailagent-3.1-81.orig/debian/po/cs.po +++ mailagent-3.1-81/debian/po/cs.po @@ -0,0 +1,60 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-29 16:25+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Jméno organizace:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Soubor /etc/news/organization neexistuje. Tento soubor obsahuje jméno " +"organizace, které patří tento server. Jméno se pak objevuje u odchozích " +"Älánků, emailů nebo záplat v hlaviÄce Organization." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Zadejte prosím jméno organizace tak, jak by se mÄ›lo zobrazovat v hlaviÄce. " +"Bývá zvykem ke jménu organizace pÅ™idat i lokaci, typicky mÄ›sto. Například:\n" +" Palacky University, Olomouc" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Zadáte-li „--none--“, jméno organizace se nenastaví." --- mailagent-3.1-81.orig/debian/po/da.po +++ mailagent-3.1-81/debian/po/da.po @@ -0,0 +1,58 @@ +# Danish translation mailagent. +# Copyright (C) 2010 mailagent og nedenstÃ¥ende oversættere. +# This file is distributed under the same license as mailagent package. +# Joe Hansen , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2010-11-29 17:30+01:00\n" +"Last-Translator: Joe Hansen \n" +"Language-Team: Danish \n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Organisationsnavn for denne computer:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Filen /etc/news/organization findes ikke. Den fil indeholder navnet pÃ¥ " +"organisationen som denne computer tilhører. Dette er navnet som vil fremstÃ¥ " +"i organisationens teksthoved for udgÃ¥ende artikler, post, eller rettelser " +"(patches)." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Indtast venligst navnet pÃ¥ den organisation som du ønsker skal fremgÃ¥ i " +"teksthovedet. Det er normal kutyme at tilføje en lokation, typisk et bynavn, " +"til organisationens navn, for eksempel:\n" +" Det Tekniske Universitet, København" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" +"Hvis du indtaster »--none--«, vil der ikke blive brugt et organisationsnavn." --- mailagent-3.1-81.orig/debian/po/de.po +++ mailagent-3.1-81/debian/po/de.po @@ -0,0 +1,68 @@ +# translation of mailagent_3.73-27_de.po to German +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +# Erik Schanze , 2004-2008. +msgid "" +msgstr "" +"Project-Id-Version: mailagent_3.73-27_de\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-29 22:42+0100\n" +"Last-Translator: Erik Schanze \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Name der Organisation auf diesem Rechner:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Die Datei /etc/news/organization gibt es nicht. Diese Datei enthält den " +"Namen der Organisation, zu der dieser Rechner gehört. Der Name erscheint in " +"der Kopfzeile »Organization« von ausgehenden Artikeln, E-Mails oder Patches." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Bitte geben Sie den Namen der Organisation ein, so wie er an diesen Stellen " +"erscheinen soll. Es ist üblich, dabei auch den Standort mit anzugeben, z. " +"B.:\n" +" Hochschule für Technik und Wirtschaft (FH), Dresden" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" +"Wenn Sie »--none--« eingeben, wird kein Name für die Organisation " +"eingerichtet." --- mailagent-3.1-81.orig/debian/po/es.po +++ mailagent-3.1-81/debian/po/es.po @@ -0,0 +1,78 @@ +# mailagent translation to Spanish +# Copyright (C) 2007 Software in the Public Interest +# This file is distributed under the same license as the postfix package. +# +# Changes: +# - Initial translation +# Rudy Godoy , 2007 +# +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/coordinacion +# especialmente las notas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-02-24 17:41-0500\n" +"Last-Translator: Rudy Godoy \n" +"Language-Team: Debian l10n Spanish \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Nombre de la organización para este sistema:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"No existe el fichero «/etc/news/organization». Éste contiene el nombre de la " +"organización a la que pertenece este sistema. Dicho nombre aparecerá en la " +"cabecera «Organization» de los artículos, correos, o parches salientes." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Introduzca el nombre de la organización tal como desea que aparezca en " +"dichos encabezados. Una práctica común es colocar el nombre de su ciudad, " +"además del nombre de la organización, por ejemplo:\n" +" Universidad del Suroeste de Dakota, Hoople" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Si introduce «--none--», este valor no será definido." --- mailagent-3.1-81.orig/debian/po/eu.po +++ mailagent-3.1-81/debian/po/eu.po @@ -0,0 +1,57 @@ +# translation of mailagent-eu.po to Euskara +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Piarres Beobide , 2008. +msgid "" +msgstr "" +"Project-Id-Version: mailagent-eu\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-22 00:03+0100\n" +"Last-Translator: Piarres Beobide \n" +"Language-Team: Euskara \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Ordenagailu honek erabiliko duen erakunde izena:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"/etc/news/organization fitxategia ez dago. Fitxategi honek ordenagailu hau " +"partaide den erakunde izena eduki behar du. Hau da kanporako artikulu, posta " +"eta adabakietan agertuko den erakunde goiburuan agertuko dena." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Mesedez idatzi erakundearen izena goiburu eremu honetan agertzea nahi duzun " +"bezala. Erabilera arrunta da kokaleku izena gehitzea normalean hiri izena " +"erakundearenari, adibidez:\n" +" Euskal Hego Ipar Herriko Unibertsitatea; Nonbait" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "\"--none--\" idatziz ez da erakunde izenik konfiguratuko." --- mailagent-3.1-81.orig/debian/po/fi.po +++ mailagent-3.1-81/debian/po/fi.po @@ -0,0 +1,53 @@ +msgid "" +msgstr "" +"Project-Id-Version: mailagent\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-22 06:25+0200\n" +"Last-Translator: Esko Arajärvi \n" +"Language-Team: Finnish \n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Finnish\n" +"X-Poedit-Country: FINLAND\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Tämän koneen omistavan organisaation nimi:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Tiedostoa /etc/news/organization ei ole. Kyseinen tiedosto sisältää tämän " +"koneen omistavan organisaation nimen. Nimi esiintyy lähtevien artikkelien, " +"sähköpostien ja korjaustiedostojen â€Organizationâ€-otsikkorivillä." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Anna sen organisaation nimi, jonka haluat esiintyvän otsikkokentässä. Usein " +"organisaation nimeen lisätään paikka, tyypillisesti kaupungin nimi, " +"esimerkiksi:\n" +" Eteläisen Pohjois-Dakotan yliopisto, Hoople" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Jos syötät â€--none--â€, mitään organisaation nimeä ei aseteta." --- mailagent-3.1-81.orig/debian/po/fr.po +++ mailagent-3.1-81/debian/po/fr.po @@ -0,0 +1,60 @@ +# Translation of mailagent debconf templates to French +# Copyright (C) 2008 Florent USSEIL +# This file is distributed under the same license as the mailagent package. +# +# Eric Madesclair , 2005. +# Florent USSEIL , 2008. +msgid "" +msgstr "" +"Project-Id-Version: mailagent\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-02-26 01:42+0100\n" +"Last-Translator: Florent USSEIL \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Nom de l'organisation pour ce serveur :" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Le fichier « /etc/news/organization » n'existe pas. Ce fichier contient le " +"nom de l'« organisation » (entreprise ou autre) à laquelle appartient ce " +"serveur. Ce nom apparaîtra sur les articles, courriels ou rustines émis." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Veuillez indiquer ce nom d'« organisation » tel qu'il doit apparaître. " +"Généralement un nom de ville est adjoint au nom de l'organisation, par " +"exemple :\n" +" Institut Universitaire de Technologie, Nice Côte d'Azur" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" +"Si vous indiquez exactement « --none-- », aucun nom d'organisation ne sera " +"configuré." --- mailagent-3.1-81.orig/debian/po/gl.po +++ mailagent-3.1-81/debian/po/gl.po @@ -0,0 +1,78 @@ +# Galician translation of mailagent's debconf templates +# This file is distributed under the same license as the mailagent package. +# Jacobo Tarrio , 2007, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-22 18:44+0000\n" +"Last-Translator: Jacobo Tarrio \n" +"Language-Team: Galician \n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Nome da organización deste ordenador:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"O ficheiro /etc/news/organization non existe. Ese ficheiro contén o nome da " +"organización á que pertence este ordenador. Este nome ha aparecer na liña " +"Organization dos artigos, correo ou parches que se envíen desde el." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Introduza o nome da organización tal como quere que apareza nesa cabeceira. " +"É habitual engadir unha ubicación, normalmente o nome da cidade, ao nome da " +"organización, por exemplo:\n" +" Universidade das Altas Rías Baixas, Portozás" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" +"Se introduce \"--none--\", non se ha configurar ningún nome de organización." + +#~ msgid "Name of your organization:" +#~ msgstr "Nome da organización:" + +#~ msgid "" +#~ "You don't seem to have an /etc/news/organization file. Usually that " +#~ "contains the name of your organization as you want it to appear on the " +#~ "Organization line of outgoing articles/mail/patches. Please supply the " +#~ "name of your organization as you want it to appear in those places. (It " +#~ "would be useful if this also specifies your location. Your city name is " +#~ "probably sufficient if well known.) For example: .\n" +#~ " University of Southern North Dakota, Hoople" +#~ msgstr "" +#~ "Semella que non ten un ficheiro /etc/news/organization. Normalmente, ese " +#~ "ficheiro contén o nome da organización tal como quere que apareza na liña " +#~ "\"Organization\" dos artigos/correo/parches saíntes. Escriba o nome da " +#~ "súa organización tal como quere que apareza neses sitios. (Tamén sería " +#~ "útil se indica a localidade). Por exemplo:\n" +#~ " Universidade das Altas Rías Baixas, Portozás" + +#~ msgid "Type in \"--none--\" if you do not want to specify one." +#~ msgstr "Escriba \"--none--\" se non quere indicar unha." --- mailagent-3.1-81.orig/debian/po/it.po +++ mailagent-3.1-81/debian/po/it.po @@ -0,0 +1,59 @@ +# Italian translations of po-debconf templates for mailagent. +# Copyright (c) 2008 Software in the Public Interest +# This file is distributed under the same license as the mailagent package. +# Luca Monducci , 2008 +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-05-25 20:53+0200\n" +"Last-Translator: Luca Monducci \n" +"Language-Team: Italian \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Nome dell'organizzazione per questo computer:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Il file /etc/news/organization non esiste. Quel file contiene il nome " +"dell'organizzazione a cui appartiene questo computer. Questo è il nome che " +"apparità nel campo Organization dell'intestazione degli articoli, mail o " +"patch in uscita." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Inserire il nome dell'organizzazione che si vuole far apparire in quel campo " +"dell'intestazione. È una pratica comune aggiungere al nome " +"dell'organizzazione una località, solitamente il nome della città, per " +"esempio:\n" +" University of Southern North Dakota, Hoople" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" +"Inserendo \"--none--\", non viene impostato nessun nome per l'organizzazione." --- mailagent-3.1-81.orig/debian/po/ja.po +++ mailagent-3.1-81/debian/po/ja.po @@ -0,0 +1,64 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73-27\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-23 19:52+0900\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "ã“ã®ã‚³ãƒ³ãƒ”ュータã®çµ„ç¹”å:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"/etc/news/organization ファイルãŒã‚ã‚Šã¾ã›ã‚“。ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã«ã¯ã“ã®ã‚³ãƒ³ãƒ”ュータ" +"ãŒæ‰€å±žã—ã¦ã„る組織ã®åå‰ãŒå«ã¾ã‚Œã¦ã„ã¾ã™ã€‚ã“ã‚Œã¯å¤–部ã¸é€ä¿¡ã•ã‚Œã‚‹è¨˜äº‹ãƒ»ãƒ¡ãƒ¼" +"ル・パッãƒã®ãƒ˜ãƒƒãƒ€ã® Organization è¡Œã«è¡¨è¨˜ã•ã‚Œã‚‹åå‰ã§ã™ã€‚" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"ヘッダ行ã«è¡¨ç¤ºã—ãŸã„組織åを入力ã—ã¦ãã ã•ã„。大抵ã¯éƒ½å¸‚ãªã©ã®å ´æ‰€ã®åå‰ã‚’組" +"ç¹”åã«ä»˜ã‘加ãˆã‚‹ã®ãŒä¸€èˆ¬çš„ãªæ…£ç¿’ã§ã™ã€‚例ãˆã°ã“ã®æ§˜ãªå½¢ã§ã™:\n" +" UN Special Agency Nerv, Tokyo-3" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "\"--none--\" ã¨å…¥åŠ›ã—ãŸå ´åˆã€çµ„ç¹”åã¯ç©ºã®çŠ¶æ…‹ã«è¨­å®šã•ã‚Œã¾ã™ã€‚" --- mailagent-3.1-81.orig/debian/po/nb.po +++ mailagent-3.1-81/debian/po/nb.po @@ -0,0 +1,58 @@ +# translation of mailagent_nb.po to +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Bjørn Steensrud , 2008. +# Bjørn Steensrud , 2008. +msgid "" +msgstr "" +"Project-Id-Version: mailagent_nb\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-22 11:21+0100\n" +"Last-Translator: Bjørn Steensrud \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Organisasjonsnavn for denne datamaskinen:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Fila /etc/news/organization finnes ikke. Den fila inneholder navnet pÃ¥ den " +"organisasjonen som denne tjeneren tilhører. Dette er navnet som synes pÃ¥ " +"linja «Organization» pÃ¥ utgÃ¥ende artikler, e-post og lapper." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Oppgi navn pÃ¥ organisasjonen slik du vil at det skal vises pÃ¥ den tekstlinja." +"Det er vanlig praksis Ã¥ legge til navnet pÃ¥ en by til navnet, for " +"eksempel: \n" +"NTNU, Trondheim" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Hvis du oppgir «--none--» sÃ¥ blir det ikke satt noe organisasjonsnavn." --- mailagent-3.1-81.orig/debian/po/nl.po +++ mailagent-3.1-81/debian/po/nl.po @@ -0,0 +1,53 @@ +msgid "" +msgstr "" +"Project-Id-Version: mailagent\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-28 14:29+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Organisatienaam voor deze computer:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Het bestand /etc/news/organization bestaat niet. Dit bestand bevat " +"gewoonlijk de naam van de organisatie waartoe deze server behoort, zodat dit " +"weergegeven kan worden in de 'Organization'-header van uitgaande artikelen, " +"e-mails, en patches." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Welke naam wilt u in de header voor uw organisatie weergeven? Het is de " +"gewoonte om hier de stadsnaam bij de organisatienaam toe te voegen. " +"Bijvoorbeeld:\n" +" ACME Productions, Amsterdam" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Als u '--none--' ingeeft wordt er geen organisatienaam ingesteld." --- mailagent-3.1-81.orig/debian/po/pt.po +++ mailagent-3.1-81/debian/po/pt.po @@ -0,0 +1,79 @@ +# Portuguese translation for mailagent debconf package +# Copyright (C) 2007 Pedro Ribeiro +# This file is distributed under the same license as the mailagent package. +# Pedro Ribeiro , 2007 +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73-28\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-04-23 18:24+0000\n" +"Last-Translator: Pedro Ribeiro \n" +"Language-Team: Portuguese \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Nome da organização para este computador:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"O ficheiro /etc/news/organization não existe. Esse ficheiro contém o nome da " +"organização a que este servidor pertence, de modo que apareça na linha " +"Organization de artigos enviados, e-mail ou patches." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Por favor escreva o nome da organização tal como quer que apareça nesses " +"sítios. É pratica comum acrescentar o nome da cidade ao nome da organização, " +"por exemplo:\n" +" Universidade de Aveiro, Aveiro" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Se escrever \"--none--\", não será definido nome de organização." + +#~ msgid "Name of your organization:" +#~ msgstr "Nome da sua organização:" + +#~ msgid "" +#~ "You don't seem to have an /etc/news/organization file. Usually that " +#~ "contains the name of your organization as you want it to appear on the " +#~ "Organization line of outgoing articles/mail/patches. Please supply the " +#~ "name of your organization as you want it to appear in those places. (It " +#~ "would be useful if this also specifies your location. Your city name is " +#~ "probably sufficient if well known.) For example: .\n" +#~ " University of Southern North Dakota, Hoople" +#~ msgstr "" +#~ "Não parece ter um ficheiro /etc/news/organization. Normalmente este " +#~ "ficheiro contém o nome da sua organização tal como deve aparecer na linha " +#~ "Organização dos mails/artigos que são enviados. Por favor, coloque o nome " +#~ "da sua organização tal como queira que apareça nesses sítios. (Seria útil " +#~ "que esta linha indicasse também a sua localização geográfica. O nome da " +#~ "sua cidade é talvez suficiente.) Por exemplo: .\n" +#~ " Universidade de Aveiro, Aveiro" + +#~ msgid "Type in \"--none--\" if you do not want to specify one." +#~ msgstr "Escreva \"--none--\" se não quer uma linha destas." --- mailagent-3.1-81.orig/debian/po/pt_BR.po +++ mailagent-3.1-81/debian/po/pt_BR.po @@ -0,0 +1,82 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73-16\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2005-05-26 02:58-0300\n" +"Last-Translator: Guilherme de S. Pastore \n" +"Language-Team: Debian-BR \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" + +#~ msgid "Name of your organization:" +#~ msgstr "Nome da sua organização:" + +#, fuzzy +#~ msgid "" +#~ "You don't seem to have an /etc/news/organization file. Usually that " +#~ "contains the name of your organization as you want it to appear on the " +#~ "Organization line of outgoing articles/mail/patches. Please supply the " +#~ "name of your organization as you want it to appear in those places. (It " +#~ "would be useful if this also specifies your location. Your city name is " +#~ "probably sufficient if well known.) For example: .\n" +#~ " University of Southern North Dakota, Hoople" +#~ msgstr "" +#~ "Você não parece ter um arquivo /etc/news/organization. Normalmente, ele " +#~ "contém o nome da sua organização da forma que você quer que ele apareça " +#~ "na linha Organização de artigos/e-mail/patches enviados. Por favor, " +#~ "forneça o nome da sua organização da forma que você quer que ela apareça " +#~ "na linha Organização de artigos/patches enviados. (Também é bom que isso " +#~ "especifique a sua localização: o nome da sua cidade provavelmente é " +#~ "suficiente, se ela for conhecida). Por exemplo:" + +#~ msgid "Type in \"--none--\" if you do not want to specify one." +#~ msgstr "Escreva \"--none--\" se você não quiser especificar uma." + +#~ msgid " University of Southern North Dakota, Hoople" +#~ msgstr " Universidade do Sul da Dakota do Norte, Hoople" --- mailagent-3.1-81.orig/debian/po/ru.po +++ mailagent-3.1-81/debian/po/ru.po @@ -0,0 +1,60 @@ +# translation of ru.po to Russian +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the mailagent package. +# +# Yuri Kozlov , 2008. +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73-27\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-23 08:28+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Ðазвание организации:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Файл /etc/news/organization не ÑущеÑтвует. Ð’ Ñтом файле ÑодержитÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ðµ " +"организации, которой принадлежит данный компьютер. Ðазвание организации " +"вÑтавлÑетÑÑ Ð² Ñтроку Organization заголовка иÑходÑщих новоÑтных Ñтатей, " +"Ñлектронных пиÑем и заплаток." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Введите название организации, которое вы бы хотели подÑтавить в Ñто поле " +"заголовка. Обычно, к названию организации допиÑывают город, например:\n" +" МГУ, МоÑква" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" +"ЕÑли вы введёте \"--none--\", то название организации наÑтроено не будет." --- mailagent-3.1-81.orig/debian/po/sv.po +++ mailagent-3.1-81/debian/po/sv.po @@ -0,0 +1,85 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# , fuzzy +# +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73-19\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-07-21 19:25+0100\n" +"Last-Translator: Martin Bagge \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Datorns organisationsnamn:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Filen /etc/news/organization saknas. I filen anges vilken organisation " +"datorn tillhör. Detta namn hamnar sedan i fältet Organization i huvudet på " +"utgående artiklar, e-post och lagningsfiler." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Ange namnet på organisationen så som du vill att det ska stå i huvudfältet. " +"Det är vanligt att slå ihop namnet med en plats, exempelvis en stad.\n" +"Exempel: Blekinge Tekniska Högskola, Ronneby" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Om du anger \"--none--\" kommer ingen organisation att ställas in." + +#~ msgid "Name of your organization:" +#~ msgstr "Namnet på din organisation:" + +#~ msgid "" +#~ "You don't seem to have an /etc/news/organization file. Usually that " +#~ "contains the name of your organization as you want it to appear on the " +#~ "Organization line of outgoing articles/mail/patches. Please supply the " +#~ "name of your organization as you want it to appear in those places. (It " +#~ "would be useful if this also specifies your location. Your city name is " +#~ "probably sufficient if well known.) For example: .\n" +#~ " University of Southern North Dakota, Hoople" +#~ msgstr "" +#~ "Du verkar inte ha en fil kallad /etc/news/organization. Normalt " +#~ "innehåller den namnet på din organisation som du vill ska synas på raden " +#~ "Organisation på utgående artiklar/epost/patchar. Vänligen ange namnet på " +#~ "din organisation som du vill ska synas på den platsen. (Det är " +#~ "användbart om denna också reflekterar din geografiska position. Namnet " +#~ "på din stad är tillräckligt om den är välkänd.) Till exempel: \n" +#~ " Kungliga Tekniska Lekstugan, Stockholm" + +#~ msgid "Type in \"--none--\" if you do not want to specify one." +#~ msgstr "Skriv in \"--none--\" om du inte vill specificera en." --- mailagent-3.1-81.orig/debian/po/templates.pot +++ mailagent-3.1-81/debian/po/templates.pot @@ -0,0 +1,49 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "" --- mailagent-3.1-81.orig/debian/po/vi.po +++ mailagent-3.1-81/debian/po/vi.po @@ -0,0 +1,56 @@ +# Vietnamese Translation for mailagent. +# Copyright © 2008 Free Software Foundation, Inc. +# Clytie Siddall , 2005-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: mailagent 3.73-27\n" +"Report-Msgid-Bugs-To: mailagent@packages.debian.org\n" +"POT-Creation-Date: 2009-10-31 03:26-0500\n" +"PO-Revision-Date: 2008-03-30 19:55+1030\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: LocFactoryEditor 1.7b3\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "Organization name for this computer:" +msgstr "Tên tổ chức cho máy tính này:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"The /etc/news/organization file does not exist. That file contains the name " +"of the organization this computer belongs to. This is the name that will " +"appear in the Organization header field of outgoing articles, mail, or " +"patches." +msgstr "" +"Tập tin « /etc/news/organization » không tồn tại. Tập tin này chứa tên của " +"tổ chức sở hữu máy tính này. Äây là tên sẽ xuất hiện trong dòng đầu Tổ Chức " +"(Organization) của các bài, thÆ° và đắp vá đã gá»­i Ä‘i." + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"Please enter the name of the organization as you want it to appear in that " +"header field. It is common practice to add a location, typically a city " +"name, to the organization's name, for instance:\n" +" University of Southern North Dakota, Hoople" +msgstr "" +"Hãy nhập tên của tổ chức bạn muốn thấy trên dòng đầu đó. ThÆ°á»ng thêm tên " +"thành phố, v.d.:\n" +"Äại há»c Quốc gia Thành phố Hồ Chí Minh, Việt Nam" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "If you enter \"--none--\", no organization name will be setup." +msgstr "Nhấp « --none-- » (không có) thì không đặt tên tổ chức." --- mailagent-3.1-81.orig/debian/rc/dot.mailagent +++ mailagent-3.1-81/debian/rc/dot.mailagent @@ -0,0 +1,180 @@ +# +# Configuration file for mailagent +# + +# $Id: dot.mailagent,v 1.5 2003/05/29 15:54:05 srivasta Exp $ +# +# Copyright (c) 1990-1993, Raphael Manfredi +# +# You may redistribute only under the terms of the Artistic License, +# as specified in the README file that comes with the distribution. +# You may reuse parts of this distribution only within the terms of +# that same Artistic License; a copy of which may be found at the root +# of the source tree for mailagent 3.0. +# +# $Log: dot.mailagent,v $ +# +# Revision 3.0 1993/11/29 13:48:02 ram +# Baseline for mailagent 3.0 netwide release. +# + +# +# Configuration section +# + +# Paramters likely to change +home : /home/srivasta # Home directory (must be correctly set) +level : 3 # Logging level +tmpdir : ~/tmp # Temporary directory to be used +emergdir : $home/tmp/lost+mail # Emergency directory (for dumps) +track : OFF # Track matches on stdout (on/off) + +# Minimum path to ensure and path depending on the machine +path : /home/srivasta/bin:/bin:/sbin:/usr/bin:/usr/sbin:/home/srivasta/sbin + +# User who runs mailagent +user : srivasta +name : Manoj +email : srivasta@debian.org +tome : srivasta@datasync.com,srivasta@golden-gryphon.com # Alternate logins for me + +# Vacation mode (on/off), vacation file and period +vacation : OFF # Vacation mode on/off +vacfile : $home/etc/vacation # File to be sent back +vacperiod: 1d # Period between two vacation messages +vacfixed : OFF # Turn to on to solely allow vacfile message + +# Mail and news transport agents +# By default, values for sendmail and sendnews are determined at configuration +# time. The default mailopt is -odq when sendmail is used. The -h option is +# always added to the sendnews program to indicate headers are already present. +sendmail : /usr/sbin/sendmail +sendnews : /usr/bin/inews +mailopt : -odq +newsopt : -h +fromesc : ON + + +# +# Parameters which should not change very often +# + +# Define main configuration parameters +umask : 077 # Default umask +spool : ~/var/spool/agent # Spool directory +queue : $spool/queue # Queue directory (must exist) +logdir : $home/var/log # Where logfile is stored +context : $spool/context # Mailagent's context file +callout : $spool/callout # Callout queue +log : agentlog # Log file is in $logdir +seq : .seq # Seq file is in $spool +timezone : EST5EDT # Time zone location +statfile : $spool/mailagent.st # Statistics file +rules : ~/etc/mailagent.rules # Filter's rules location (optional) +rulecache: $spool/rulecache # Cache for compiled rules (optional) +secure : OFF # Make extended checks on sensitive files +linkdirs : ON # Also carefully check symlinks to dirs +execsafe : OFF # Make extended checks on exec()ed files +groupsafe: ON # Allow group-writable files when OFF +execskip : OFF # Turn to ON to avoid all checks on exec() + +# Mailbox parameters +##maildrop : /usr/spool/mail # System mail drop directory (optional) +##mailbox : $user # Mailbox file name (optional) +mmdf : OFF # Allow MMDF-style mailbox delivery +mmdfbox : OFF # Force new folders to MMDF format +maildrop : /var/spool/mail # System mail drop directory (optional) +mailbox : $user # Mailbox file name (optional) +mboxlock : %f.lock # Lock mailbox with .lock file +fromall : OFF # Escape all From, even within paragraph +fromfake : ON # Attempt creation of From: header when missing +tofake : ON # Fake a To: line when missing + +# Biffing support +biff : ON # Whether biff is wanted +biffhead : From, To, Subject # Which header fields should be printed +bifflen : 560 # Maximum body length printed anyway +bifflines: 7 # Maximum body lines printed +biffnl : ON # Turn to OFF to avoid blank body lines +biffmsg : ~/etc/biffmsg # Template format for biff (optional) +bifftrim : ON # Whether trim info should be part of biffing +bifftrlen: 2 # Minimal trimming length, in lines +biffquote: ON # Whether the attribution line should be shown +biffmh : OFF # Compact biffing message ala MH +biffnice : OFF # Whether compacted body should be reformatted + +# MH-style folders +#mhprofile: $home/etc/.mh_profile # Name of the MH profile file (optional) +msgprefix: .msg_prefix # File containing message name prefix + +# Locking parameters +lockmax : 20 # Maximum number of locking attempts +lockdelay: 2 # Amount of seconds between two lock attempts +lockhold : 3600 # Amount of seconds before breaking lock +locksafe : ON # Locking style on mailboxes +lockwarn : 20,300 # Warn on busy locks after 20s, then every 300 +nfslock : ON # NFS-secure locking (optional) + + +# Timeout parameters +queuewait: 60 # Delay for filter before calling mailagent +queuehold: 1800 # Amount of seconds queued mail remains skipped +queuelost: 86400 # Timeout before flagging old queued mail +runmax : 3600 # Timeout for RUN command and friends + + +# Optional parameters (for experts...) +# Folder compression +#compress : ~/.compress # Folder compression list +compspecs: $spool/compressors # Compression progs config file +comptag : compress # Default compression tag + + +# Optional parameters (for experts...) +#newcmd : $spool/newcmd # Definition of new filtering commands +#perlib : pl # Extended perl library search path +#rulemac : ON # Macro substitution in rule patterns + +# Database hashing directory (in $spool) and other controls +hash : dbr # Hashing directory +cleanlaps: 1M # Laps between cleanings +autoclean: ON # Turn periodic cleaning on/off +agemax : 1y # Maximum lifetime for entries + +# +# Parameters for SERVER +# + +comserver: $spool/server # Valid server commands +servdir : $spool/cmds # Default path for perl server commands +servshell: /bin/sh # Shell used to spawn shell commands (optional) +maxerrors: 10 # Allow at most ten errors before flushing +maxcmds : 10 # Allow maximum of ten commands in one request +scriptcc : ON # Send copy of sesssion transcripts to user? +bqueue : $spool/batch # Batch queue (not implemented yet) +powers : $spool/powers # Directory for power administration +powerlog : $logdir/powerlog # Log requests for new powers +powerlist: $powers/aliases # Mapping of powers to filename in powerdir +powerdir : $powers/clearance # Directory listing user clearances for powers +passwd : $powers/passwd # Power passwords +helpdir : $spool/help # Help directory for server commands + +# +# Parameters for PROCESS +# + +comfile : $spool/commands # Valid commands +distlist : $spool/distribs # Distribution list +proglist : $spool/proglist # Program description list +maxsize : 150000 # Maximum size before kiting +plsave : $spool/plsave # Where patchlevels are saved +authfile : $spool/auth # Remote sending authorizations (not yet) + + + +# +# Extra variables added to configuration -- version 3.0 PL73 +# + +domain : golden-gryphon.com # Your domain name (no leading '.') +hidenet : ON # Prefix domain with hostname when OFF --- mailagent-3.1-81.orig/debian/rc/etc/KNOWN +++ mailagent-3.1-81/debian/rc/etc/KNOWN @@ -0,0 +1,2 @@ +/^(gerd)@gnu.org$/i + --- mailagent-3.1-81.orig/debian/rc/etc/README.dot.spamlist +++ mailagent-3.1-81/debian/rc/etc/README.dot.spamlist @@ -0,0 +1,5 @@ +The exmple files here are placeholders for real spam address files. +Look at ../bin/get-spamlist to see how to generate a real copy of these +lists. Since these sites are frequently updated, I do not want to hard +wire the list into this package. Also, there are liability issues about +censorship if we actually ship these lists. --- mailagent-3.1-81.orig/debian/rc/etc/SPAM +++ mailagent-3.1-81/debian/rc/etc/SPAM @@ -0,0 +1,2 @@ +/^((.*[@.])?www.evilspammer.com)$/i +/^(spammer)@evildomain.net$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-aol +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-aol @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-cyberpromo +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-cyberpromo @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-iocom +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-iocom @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-llv +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-llv @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-mindspring +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-mindspring @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-nancynet +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-nancynet @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/dot.spamlist-znet +++ mailagent-3.1-81/debian/rc/etc/dot.spamlist-znet @@ -0,0 +1 @@ +/^((.*[@.])?I\.Am\.A\.Spammer\.com)$/i --- mailagent-3.1-81.orig/debian/rc/etc/mailagent.rules +++ mailagent-3.1-81/debian/rc/etc/mailagent.rules @@ -0,0 +1,1410 @@ +###################################################################### +###################################################################### +# # +# Rule file for mailagent # +# # +###################################################################### +###################################################################### + + +###################################################################### +###################################################################### +# # +# Global variables # +# # +###################################################################### +###################################################################### + +# The 'maildir' variable tells the mailagent where the folders are located. +# By default, it is set to ~/Mail (because it is a convention used by other +# mail-related programs), but the author prefers to use ~/mail. + +maildir = ~/var/spool/mail; + +# The 'mailfilter' variable points to the place where all the loaded files +# are stored (e.g. loaded patterns or addresses) and is used only when a +# relative path is specified. + +mailfilter = ~/etc; + +###################################################################### +##################################################################### +# # +# Command and server stuff # +# # +###################################################################### +###################################################################### + + +X-Spam-Status: /Yes/ { REJECT SPAM }; + X-Spam-Value: /([1-9]\d\.\d)/ + { UNIQUE -a (SPAM); ANNOTATE -d X-RealSpam '%1'; SAVE realspam; }; + + +# Remove all the crm114 and spamassassin headers from upstream +#All: /./ +# { STRIP X-CRM114-Status X-CRM114-Version X-Spam-Value X-Spam-Status +# X-Spam-Checker-Version; REJECT; }; +# /./ { FEED /usr/bin/spamassassin -a 2>>$HOME/var/log/assassin; +# RESYNC; REJECT; }; +#All: /./ +# { FEED /usr/bin/crm114 -u $HOME/var/lib/crm114 mailfilter.crm 2>>$HOME/var/log/crm; +# RESYNC; REJECT; }; +#X-CRM114-Status: /SPAM\s+.\s+pR: \-(\d\d\d)/ +# { UNIQUE -a (SPAM); ANNOTATE -d X-RealSpam '%1'; SAVE realspam; }; +# /./ +# { FEED /usr/bin/spamc -f 2>>$HOME/var/log/assassin; RESYNC; REJECT; }; + +# Make sure spamassassin sees this +# !X-Spam-Status: /No/ +# { ANNOTATE -d X-Spam Again; +# FEED /usr/bin/spamc -f 2>>$HOME/var/log/assassin2; +# RESYNC; REJECT; }; +# X-Spam-Status: /Yes/ { REJECT SPAM }; +# X-Spam-Value: /(1[5-9]\.\d)/ +# { UNIQUE -a (SPAM); ANNOTATE -d X-RealSpam '%1'; SAVE realspam; }; +# X-SBClass:/Spam/ { REJECT SPAM }; +# X-Spam-Status: /autolearn=ham/ { SAVE ham; REJECT }; +# X-Spam-Status: /autolearn=spam/ { SAVE realspam; REJECT }; +#Subject: /^[Cc]ommand\s*$/ { VACATION off; BEGIN CMD; REJECT }; +#Subject: /CFV: Proposal/ { VACATION off; REJECT VOTE; }; +#Body <1,3>: /^Subject:\s*[Cc]ommand\s*$/ { VACATION off; BEGIN CMD; REJECT }; +#All: /^Subject:\s*[Cc]ommand/ { VACATION off; BEGIN CMD; REJECT }; +# * { STRIP Received; SAVE admin; PROCESS }; +#Subject: /glaurung: snort daily report/ { VACATION off; SAVE admin }; + + +###################################################################### +###################################################################### +# # +# Adminstrative stuff, not to be recorded below # +# # +###################################################################### +###################################################################### + Subject: /±¤°í|ks_c_5601-|GB2312|EUC-KR/ { REJECT SPAM }; + Content-Type: /charset=.*ks_c_5601-/ { REJECT SPAM }; + + From: Mailer-Daemon, + Subject: /Mail delivery failed: returning message/, + { REJECT BOUNCED }; + +# The machine is called tiamat + From: news, From: root, To: usenet { REJECT ADMIN }; + Subject: /Cron \/ { REJECT ADMIN }; + From: root, To: root { BEGIN ADMIN; REJECT }; + From: john.doe, Subject: /lurkftp output/ { REJECT ADMIN }; + From: /root\@.+\.internal\.bar\.com/ + { REJECT ADMIN }; + From: /daemon\@.+\.internal\.bar\.com/ + { REJECT ADMIN }; + From: /root\@bar.com/ { REJECT ADMIN }; + From: /root\@ladon\.bar.com/ { REJECT ADMIN }; + From: Majordomo { REJECT ADMIN }; + From: uucp { REJECT ADMIN }; + From: /mailman-owner\@lists.sourceforge.net/ { REJECT ADMIN }; + From: arpwatch { REJECT ADMIN }; + From: Calamaris { REJECT ADMIN }; + Subject: /^\s*\[SNORT] / { REJECT ADMIN }; + From: /support\@isp.com/ { REJECT ADMIN }; + From: /scheduledmaintenance\@isp.com/ { REJECT ADMIN }; + From: /support-portal\@isp.com/ { REJECT ADMIN }; +#From: /listar\@bar.com/ { REJECT ADMIN }; +#To: faxmaster { REJECT ADMIN }; + +# If I was just on the CC list, do not send vacation messages + Cc: john.doe { VACATION off; REJECT }; + +### Save this -- before getting indexed and all + From: /nagios\@.+\.internal\.bar\.com/, + From: /nagios\@artemis\.foo\.com/, + From: /nagios\@smtp\.foo\.com/ + { VACATION off; SAVE nagios.log }; + From: /logcheck\@.+\.internal\.bar\.com/ + { VACATION off; SAVE logcheck.log }; + From: /buildmeister\@foo\.com/i, + To: /manoj\.john.doeva\@foo\.com/i + { VACATION off; SAVE cabie.log }; + + +###################################################################### +###################################################################### +# # +# Main Section # +# # +###################################################################### +###################################################################### + +# All that enter here get logged +All: /./ { PERL sbin/mailagent.log.pl}; + +## Just annotate the body, and stop +# All: /./ { PERL sbin/anno.pl; LEAVE } ; +# anno.pl contains +# $header{'Body'} = " --- HEADER ---\n" . $header{'Body'} . " --- FOOTER ---\n"; +# $header{'All'} = $header{'Head'} . $header{'Body'}; # vital! +# +# Variaqnt using PASS +# All: /./ { PASS sbin/anno.pl; LEAVE } ; +# anno.pl contains +# #! /usr/bin/perl +# print " --- HEADER ---\n"; +# while (<>) +# { +# print; +# } +# print " --- FOOTER ---\n"; + + + +# +## From: /:IN/ {PURIFY ~/sbin/mailagent.decnet.pl; RESYNC; REJECT }; + + Subject: /Your signed PGP key 0x21BADABBBF24424C/i + { VACATION off; UNIQUE -a (keys); SAVE signed-keys }; + +###################################################################### +###################################################################### +# # +# Debian Secretary # +# # +###################################################################### +###################################################################### + + From: /secretary\@debian.org/, + Subject: /Acknowledgement for your vote/ + { VACATION off; UNIQUE -a (vote); SAVE ~/mail/acks }; + From: /secretary\@debian.org/, + Subject: /Error report for your vote/ + { VACATION off; UNIQUE -a (vote); SAVE ~/mail/nacks }; + From: /john.doe\@master.debian.org/, + Subject: /Error report for your vote/ + { VACATION off; UNIQUE -a (vote); SAVE ~/mail/nacks }; + To: /ballot\@vote.debian.org/ + { VACATION off; UNIQUE -a (vote); SAVE ~/mail/ballot }; + To: /vote.debian.org/ + { VACATION off; DELETE; }; + + +## From: /debian-ctte-request\@lists.debian.org/, +## Subject: /\[debian-ctte\] COMMAND DISCARD/ +## { VACATION off; UNIQUE -a (moderate); SAVE moderate }; + +###################################################################### +###################################################################### +# # +# Job Related # +# # +###################################################################### +###################################################################### + To Cc Sender X-Mailing-List X-Loop X-MDMailing-List Resent-From Envelope: + /(analog-team)\@baz\.com/i, + /(analog-others)\@baz\.com/i, + /(analog-pmo)\@baz\.com/i, + /(analog-support)\@baz\.com/i, + /(analog-pi)\@baz\.com/i + { ANNOTATE -d X-Agent-list '%1'; ASSIGN list '%1'; + TR #list /A-Z/a-z/; + REJECT MailingList }; + +# Office broadcast lists +#To Cc Sender: /owner-useg_consult/ +# { VACATION off; UNIQUE -a (bcast); SAVE bcast }; +#To Cc Sender: /useg_gcif/ +# { VACATION off; UNIQUE -a (bcast); SAVE bcast }; +#To Cc Sender: /dceunix_ext/, +# /dceunix/, +# /kamlia-admin/, +# /kamlia-users/, +# /uegts/, +# /owner-useg/, /usg/, +# /kv_reports/, +# /useg\@.*zk3.bar.com/, +# /dcev3submits\@.*bar.com/, +# /tunnel-announce\@ecom.bar.com/ +# { VACATION off; UNIQUE -a (bcast); SAVE bcast }; + +# Huge word docs that I really do not want to see +# From: /Thomas@gab.com/i, +# /Thomas@gab.com/i, +# Subject: /Weekly Report and Conference Call Announcement/i, +# { VACATION off; DELETE }; + +# Subject: /case\s+(\S+)/i { +# ASSIGN list '%1'; TR #list /A-Z/a-z/; +# ANNOTATE -d X-Case %#list; REJECT }; +# +# { VACATION off; UNIQUE -a (digital); SAVE digital }; +# +# Subject: /case\s+(\S+)/i { +# ASSIGN list '%1'; TR #list /A-Z/a-z/; +# ANNOTATE -d X-Case %#list; REJECT }; +# +# { VACATION off; UNIQUE -a (gcif); SAVE gcifcases }; + + From: /bacula@foo.com/ + { ANNOTATE -d X-Agent-list 'bacula'; + ASSIGN list bacula; + REJECT MailingList }; + + + From: /emailupgrade\@foo-bar.net/, + To: /foo\@foo-bar\.net/ + { ANNOTATE -d X-Agent-list 'foo-bar notice'; + ASSIGN list foo; + REJECT MailingList }; + + From: /specialoffers\@foo-bar.net/, + To: /foo\@foo-bar\.net/ + { ANNOTATE -d X-Agent-list 'foo-bar notice'; + ASSIGN list foo; + REJECT MailingList }; + + To Cc Sender X-Mailing-List X-Loop X-MDMailing-List Resent-From Envelope: + /jane.doe\@(foo).com/ + { ANNOTATE -d X-Agent-list '%1'; + ASSIGN list foo; + REJECT MailingList }; + + Envelope Relayed From Reply-To Message-Id: "KNOWN" { + ANNOTATE -d X-Spam Non-spam from %1; + REJECT ADDRESSED; +}; + +###################################################################### +###################################################################### +# # +# Debian # +# # +###################################################################### +###################################################################### +###################################################################### + X-PTS-Package: /([-\w]+)/ + { ANNOTATE -d X-Agent-list 'pkg-%1'; + ASSIGN list 'pkg-%1'; + REJECT MailingList }; +# X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc + X-Loop: /debian-devel-changes/i { DELETE; }; + +# Do not wish to see acks for bug reports + From: /owner\@bugs.debian.org/, Subject: /Bug#\d+: Acknowledgement / + { DELETE }; + +# These have little information really + From: /owner\@bugs.debian.org/, Subject: /Bug#\d+: Info received/i + { REJECT ClosedBugs }; + + X-Loop: /debian-bugs-dist/i { REJECT DEBIANBUGS }; + X-Loop: /owner\@bugs.debian.org/i { REJECT DEBIANBUGS }; + + From Envelope: /discard-all\@chiark.greenend.org.uk/ + { REJECT DEBIAN }; + + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /lists.debian.org/i { REJECT DEBIAN }; + + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /debian-ctte/i { REJECT DEBIAN }; + + X-Loop: /deity/i { ASSIGN list deity; REJECT MailingList }; + + Sender From: /installer\@ftp-master.debian.org/ + { ASSIGN list 'installed'; REJECT MailingList }; + + + X-BeenThere List-Id: /lists.spi-inc.org/i { REJECT SPI }; + + + X-BeenThere List-Id: /freestandards.org/i, /lsb-/ + { REJECT LSB }; + +###################################################################### +###################################################################### +# # +# The mailing lists I subscribe to: # +# # +###################################################################### +###################################################################### +# Do not wish to see acks for bug reports + From: /owner\@bugs.debian.org/, Subject: /Bug#\d+: Acknowledgement / + { DELETE }; + + Subject: /\[Soc-coordination\]/ + { ANNOTATE -d X-Agent-list 'soc'; + ASSIGN list 'soc'; + REJECT MailingList }; + + To Cc Sender X-Mn-Key Envelope: + /customerservice\@mail.walgreens.com/ { REJECT MEDICAL }; + + Subject: /Your prescription is not ready for pick up/ + { REJECT ADDRESSED }; + + All: /./ { ANNOTATE -d X-Agent-list 'walgreens'; + ASSIGN list 'walgreens'; + REJECT MailingList }; + + Subject: /\[Tome\]/i, To: /\@t-o-m-e.net/i + { ANNOTATE -d X-Agent-list 'tome'; ASSIGN list 'tome'; + REJECT MailingList }; +# Mailing list moved + To: /PernAngband\@yahoogroups.com/i + { REJECT SPAM }; + + Subject: /MIGRATED to testing/ + { ANNOTATE -d X-Agent-list 'testing'; ASSIGN list 'testing'; + REJECT MailingList }; + To Cc Sender X-Mn-Key Envelope: + /majordom\@aunet.org/i + { ASSIGN list 'linux-india'; REJECT MailingList }; + + To Cc Sender X-Mn-Key Envelope: + /careermag.com/, + /geowebinc.com/ + { ASSIGN list 'jobs'; REJECT MailingList }; + + From Sender X-Mn-Key Envelope: + /(xandros)\@reply.exacttarget.com/i + { + ASSIGN list Xandros-Mailinglist; + BOUNCE jshardo@mail.bar.com; + VACATION off; TR #list /A-Z/a-z/; + ANNOTATE -d X-MYLIST %#list.spool; + UNIQUE -a (%#list); + SAVE %#list.spool + }; + + From Sender X-Mn-Key Envelope X-BeenThere: + /custserv\@(burpee)\.com/i + { + VACATION off; + ANNOTATE -d X-Disposition Burpee-Mailinglist; + BOUNCE jshardo@mail.bar.com; + ASSIGN list '%1'; + TR #list /A-Z/a-z/; + UNIQUE -a (%#list); SAVE %#list.spool + }; + + From Sender Envelope: BizBuzz { VACATION: OFF; DELETE }; + +# +# all known mailing list expression +# + +# Work + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(arms)\@opengroup.org/i, + /discuss\@(globus).org/i, + /(omg-list)-errors\@amethyst\.omg\.org/i, + /(opendce)\@opengroup.org/i, + /(analog)-info\@eagle-link\.org/i, + /(analog)\&harm\@eagle-link\.org/i, + /(ul-\w+)\@ultralog.net/i + { + ANNOTATE -d X-Disposition Work-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Debian Conference + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(debconf)-announce-bounces\@lists\.debconf\.org/i, + /(debconf)-discuss-bounces\@lists\.debconf\.org/i, + /(debconf)-discuss\@lists\.debconf\.org/i, + /(debconf)-team\@lists\.debconf\.org/i, + /debconf6-speaker-bounces\@lists\.(debconf)\.org/i, + /(debianbook)-announce-bounces\@lists\.debianbook\.info/i, + /(debianbook)-announce\@lists\.madduck\.net/i, + /(dmup)\@bar.com/i + { + ANNOTATE -d X-Disposition Debian-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Applications + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere List-Post: + /(agent)-users/i, + /(bbdb)-announce/i, + /(bbdb)-info/i, + /(blosxom)\@yahoogroups\.com/i, + /(c2man)\@research/i, + /owner-(c2man)/i, + /(cryptoapi-devel)-admin\@kerneli.org/i, + /(crm114-general)\@lists\.sourceforge\.net/i, + /(crm114-general)-bounces\@lists\.sourceforge\.net/i, + /(docbook-tools)\@bazar.conectiva.com.br/i, + /(ding)-owner\@gnus\.org/i, + /(ding)-owner\@lists\.math\.uh\.edu/i, + /(ding)-announce-owner\@lists\.math\.uh\.edu/i, + /(ding)-patches\@/i, + /(ding)-request/i, + /(ding)\@gnus\.org/i, + /(ding)-announce\@gnus\.org/i, + /(ding)\@hpc.uh.edu/i, + /(ding)\@ifi\.uio\.no/i, + /(ding)\@lists\.math\.uh\.edu/i, + /(emacs-pretest)ers\@gnu\.org/i, + /(fvwm-themes-devel)-admin\@lists.sourceforge.net/i, + /(fvwm)-owner\@lists\.math\.uh\.edu/i, + /(fvwm)\@fvwm.org/i, + /(fvwm)\@lists\.math\.uh\.edu/i, + /(fvwm-announce)-owner\@lists\.math\.uh\.edu/i, + /(fvwm-announce)\@fvwm\.org/i, + /(fvwm-announce)\@lists\.math\.uh\.edu/i, + /(fvwm-workers)-owner\@lists\.math\.uh\.edu/i, + /(fvwm-workers)\@fvwm.org/i, + /(fvwm-workers)\@lists\.math\.uh\.edu/i, + /owner-(fvwm)\@fvwm.org/i, + /owner-(fvwm-announce)\@fvwm\.org/i, + /owner-(fvwm-workers)\@fvwm.org/i, + /(gnu-arch-dev)-request\@gnu.org/i, + /(gnu-arch-dev)\@gnu.org/i, + /(gnu-arch-users)-request\@gnu.org/i, + /(gnu-arch-users)\@gnu.org/i, + /(listar)-announce\@listar.org/i, + /(listar)-support\@listar.org/i, + /(log4perl-devel)-admin\@lists.sourceforge.net/i, + /(mason-devel)\@geek-speak.net/i, + /(mason-devel)\@mail.ists.dartmouth.edu/i, + /(mason-help)\@geek-speak.net/i, + /(mason-help)\@mail.ists.dartmouth.edu/i, + /owner-(mason-devel)\@geek-speak.net/i, + /owner-(mason-help)\@geek-speak.net/i, + /(multi-tty)-bounces\@lists\.fnord\.hu/i, + /(pcgen)-users\@lists.sourceforge.net/i, + /(psgml-devel)-admin\@lists.sourceforge.net/i, + /(psgml-devel)\@lists.sourceforge.net/i, + /(psgml-user)-admin\@lists.sourceforge.net/i, + /(psgml-user)\@lists.sourceforge.net/i, + /linux-(diald)\@vger\.rutgers\.edu/i, + /noreply\@noreply\.(calorieking)\.com/i, + /owner-updates\@lists.(spambouncer).org/i, + /(rt-users)\@lists\.bestpractical\.com/i, + /(rt-users)-bounces\@lists\.bestpractical\.com/i, + /(rt-devel)\@lists\.bestpractical\.com/i, + /(rt-devel)-bounces\@lists\.bestpractical\.com/i, + /updates\@lists.(spambouncer).org/i, + /(vdt-discuss)-request\@LISTSERV\.FNAL\.GOV/i, + /(vdt-support)\@OPENSCIENCEGRID\.ORG/i, + /owner-(vdt-discuss)\@OPENSCIENCEGRID\.ORG/i, + /owner-(vdt-support)\@OPENSCIENCEGRID\.ORG/i, + /(ddt)-announce-admin\@lists.sourceforge.net/i, + /(ddt)-user-admin\@lists.sourceforge.net/i, + /(latex2html)/i, + /announce-bounces\@www1\.(codeweavers)\.com/i, + /info-(bbdb)/i, + /(dist)-users/i, + /owner-(dist)-users/i + { + ANNOTATE -d X-Disposition App-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Social + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(newmembers)\@batchmates\.com/i, + /administrator\@alumni\.(iitkgp)\.ernet\.in/i, + /all-alumni-bounces\@oit\.(umass)\.edu/i, + /alumnikgp\@alumni\.(iitkgp)\.ernet\.in/i, + /alumni\@hijli.(iitkgp).ernet.in/i, + /directory\@(iitfoundation).org/i, + /annualfund\@admin\.(umass)\.edu/i, + /newsletter\@(alumni)\.net/i, + /(summer-admin)-announce-2006\@googlegroups\.com/i, + /umalumni\@admin\.(umass)\.edu/i + { + ANNOTATE -d X-Disposition Alumni-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Trade mags + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /\@(computerworld)\.com/i, + /\@cwflyris\.(computerworld)\.com/i, + /\@cwonline\.(computerworld)\.com/i, + /apc\@(apc)\.chtah\.com/i, + /\@(bzmedia)\.com/i, + /\@info\.(cmptech)direct\.com/i, + /(ddj)\@newsletters\.sdmediagroup\.com/i, + /(cmpmedia)\@newsletter\.smallbizresource\.com/i, + /(itworld)\@.*itwpub1.com/i, + /\@itwonline\.(itworld).com/i, + /(networkworld)\@nwwsubscribe\.com/i, + /infosecnewswire\@(scmagazine)\.com/i, + /nwinfo\@(networkworld)\.info/i, + /(sysadmin)magazine\@newsletters\.sdmediagroup\.com/i, + /(sysadmin)\@promos\.sdmediagroup\.com/i, + /(unixreview)\@newsletters\.sdmediagroup\.com/i, + /(wbg)\@enews\.webbuyersguide\.com/i, + /ciominute\@enews\.(cioinsight)\.com/i, + /\@eletters\.(whatsnewnow)\.com/i, + /ITworld.com\@itw\.(itworld)\.com/i, + /\@(networksolutions)\.com/i, + /InfoWeek\@update\.(informationweek)\.com/i, + /IK\@events\.(informationweek)\.com/i, + /(informationweek)\@.*\.cmptechnetwork\.com/i, + /\@.*\.(cmptech)network\.com/i, + /NC\@events\.(networkcomputing)\.com/i, + /NetworkComputing\@update.(networkcomputing)\.com/i, + /bestofeweek\@(eweek)-zannounce\.com/i, + /(crn)\@onlineevents\.cmptechnetwork\.com/i, + /subscribe\@(eweek)-info\.com/i, + /newsletters\@(scmagazine)us\.com/i, + /\@enews\.(eweek)\.com/i, + /(swmg)\@e-circ\.net/i, + /\@(eweek)-zannounce\.com/i, + /\@newsletter\.(infoworld)\.com/i, + /\@ifwonline\.(infoworld)\.com/i, + /\@ifwonline\.newsletters\.(infoworld)\.com/i, + /\@ifnewsletters\.newsletters\.(infoworld)\.com/i, + /enewsandviews\@enews\.(eweek)\.com/i, + /enterprisestrategies\@newsletter\.(infoworld)\.com/i, + /from_the_analysts\@newsletter\.(infoworld)\.com/i, + /government\@enews\.(eweek)\.com/i, + /\@(ifw)-media\.com/i, + /iwdaily\@newsletter\.(infoworld)\.com/i, + /iwdaily\@newsletter\.(infoworld)\.com/i, + /linuxreport\@newsletter\.(infoworld)\.com/i, + /news\@(idevnews)\.com/i, + /nwinfo\@(networkworld)\.info/i, + /openenterprise\@newsletter\.(infoworld)\.com/i, + /realitycheck\@newsletter\.(infoworld)\.com/i, + /voip\@enews\.(eweek)\.com/i + { + ANNOTATE -d X-Disposition Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +#Linux + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(linux-dce)-list\@bu.edu/i, + /(linux-india)\@lists\.linux-india\.org/i, + /(linux-kernel)-digest/, + /(linux-kernel)-owner\@vger.kernel.org/, + /(linux-kernel)/, + /(linux-kernel)\@vger.kernel.org/, + /(vcs-pkg)\@lists\.madduck\.net/i, + /(backports-users)\@lists\.backports\.org/i, + /owner-(linux-india-general)\@aunet\.org/i, + /owner-(linux-kernel)-digest\@vger.rutgers.edu/, + /(linux-india)\@aunet\.org/i, + /(linux-india-\w+)\@lists\.linux-india\.org/i, + /(linux-india-general)\@aunet\.org/i, + /owner-(linux-india)\@aunet.org/i + { + ANNOTATE -d X-Disposition Linux-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Security +# Cryptogram + Sender Reply-To: /schneier\@SCHNEIER.COM/i, + /schneier\@COUNTERPANE.COM/i, + Subject: /CRYPTO-GRAM/ + { + ANNOTATE -d X-Disposition Security-Mailinglist; + ASSIGN list 'crypto-gram'; + REJECT MailingList + }; + + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(cert)-advisory\@.*cert\.org/i, + /(infosec)newswire\@westcoast\.com/i, + /\@(sans)\.org/i, + /(crypto-gram)-list\@listserv\.modwest\.com/i, + /(crypto-gram)-list\@schneier\.com/i, + /(labeled-nfs)\@linux-nfs\.org/i, + /(labeled-nfs)-bounces\@linux-nfs\.org/i, + /(selinux-devel)-bounces\@lists\.alioth\.debian\.org/i, + /(selinux-devel)\@lists\.alioth\.debian\.org/i, + /(selinux-user)-bounces\@lists\.alioth\.debian\.org/i, + /(selinux-user)\@lists\.alioth\.debian\.org/i, + /owner-(selinux)\@tycho.nsa.gov/i, + /(selinux)\@tycho\.nsa\.gov/i, + /announce-bounces\@(selinux-symposium)\.org/i, + /paper-committee\@(selinux-symposium)\.org/i, + /ConsensusSecurityVulnerabilityAlert\@(sans)\.org/i, + /security\@enews\.(eweek)\.com/i, + /securityadviser\@newsletter\.(infoworld)\.com/i, + /announce\@(selinux-symposium)\.org/i, + /bounce\@mailings\.(sans)\.org/i, + /summit-bounces\@(selinux-symposium)\.org/i, + /summit\@(selinux-symposium)\.org/i + { + ANNOTATE -d X-Disposition Security-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Societies + From X-Sender To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(acm)-pdc-announce\@ACM.ORG/i, + /(acm)bulletin\@ACM\.ORG/i, + /pervasive\@(computer)\.org/i, + /membernet\@hq\.(acm)\.org/i, + /mn-subscribers\@listserv\.(acm)\.org/i, + /(acm)-bulletin\@ACM\.ORG/i, + /(ieee)-enotice\@ieee\.org/i, + /conference-services\@(ieee)\.org/i, + /careernavigator\@(ieee)\.org/i, + /special-mailing\@(ieee)\.org/i, + /IEEE-Annual-Election\@(ieee)\.org/i, + /(ieee)-enotice\@ieee\.org/i, + /(techalert)@ieee\.org/i, + /l\.book\@(ieee)\.org/i, + /owner-(ieee)-e-notice\@bmsmail3.ieee.org/i, + /owner-theinstitute-news\@bmsmail3\.(ieee)\.org/i, + /the-institute\@(ieee).org/i, + /owner-(ieee-centraltn)-members\@list\.vanderbilt\.edu/i, + /owner-institute-news\@boldfish\.(ieee)\.org/i, + /membernet\@hq\.(acm)\.org/i, + /Anne_Dickison\@(usenix)\.org/i, + /Mike_Swift\@(usenix)\.org/i, + /Jeff_Chase\@(usenix)\.org/i, + /Paul_Anderson\@(usenix)\.org/i, + /office\@(usenix)\.org/i, + /pd\@(acm)\.org/i, + /(technews)\@.acm\.org/i, + /(technews)\@.*\.acm\.org/i, + /the-institute\@(ieee)\.org/i, + /tipservice\@(acm)\.org/i + { + ANNOTATE -d X-Disposition prof-soc-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + + +# Charities + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /redcross-email\@usa.(redcross).org/i, + /chapter\@hot-(redcross)\.org/i, + /sierraclub\.giving\@(sierraclub).org/i, + /membership\.services\@(sierraclub)\.org/i, + /newsletter\@(mercycorps)\.org/i, + /\@(joslin)\.harvard\.edu/i, + /\@(secondharvest)\.org/i, + /newsletter\@(tnc)\.org/i, + /ecomments\@(wwf)us\.org/i, + /member\@(tnc)\.org/i, + /email\@(unicef)usa\.org/i, + /insider\@(sierraclub).org/i + { + ANNOTATE -d X-Disposition prof-soc-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /showtime\@(sho)\.delivery\.net/i + { + ASSIGN list sho; + BOUNCE jshardo@mail.bar.com; + VACATION off; TR #list /A-Z/a-z/; + ANNOTATE -d X-MYLIST %#list.spool; + UNIQUE -a (%#list); + SAVE %#list.spool + }; + + +# Services + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /customercare\@(relianceindiacall)\.com/i, + /\@(hertz)\.com/i, + /service\@(kayak)\.com/i, + /(discovercard)\@service\.discovercard\.com/i, + /(discovercard)\@email\.discovercard\.com/i, + /\@offers.(brookstone).com/i, + /\@.*\.(united)\.com/i, + /support\@(pragprog)\.com/i, + /Support\@(creditsecure)\.com/i, + /\@email.(gemoney).com/i, + /(drsimon)@websystem2\.com/i, + /\@(fandango)\.com/i, + /PalmInc\@News\.(palm)newsletters\.com/i, + /noreply\@(sourceforge)\.net/i, + /no-reply\@mailer\.(last)\.fm/i, + /Directv\@(directv)\.com/i, + /Directv\@(directv)\.quris\.net/i, + /noreply-(orkut)\@google\.com/i, + /ebill\@(directv)\.com/i, + /ebpp\@(dtccom)\.net/i, + /hhonors\@h2\.(hilton)hhonors\.com/i, + /hhonors\@(hilton)hhonors\.net/i, + /hiltonhotels\@(hilton)resconfirm\.com/i, + /\@(tiaa-cref)\.org/i, + /\@messaging\.(tiaa-cref)\.org/i, + /(fool)\@foolsubs\.com/i, + /\@(ProxyVote)\.com/i, + /(googlealerts)-noreply\@google\.com/i, + /discship\@(netflix)\.com/i, + /discship\@(netflix)\.com/i, + /\@(geico)mail\.com/i, + /customerservice\@cards.(bankofamerica)\.com/i, + /bankofamerica\@replies\.em\.(bankofamerica)\.com/i, + /billpay\@billpay.(bankofamerica)\.com/i, + /OnlineServices\@(americanexpress)\.com\.au/i, + /\@ecerts\.(americanexpress)\.com/i, + /\@email\.(americanexpress)\.com/i, + /SiteUpdate\@(myuhc)\.1nc030\.com/i, + /info\@(netflix)\.com/i, + /newsletter\@my(treo)\.net/i, + /newsletter\@(treo)central-mailings\.com/i, + /newsletter\@(hometheater)mag\.email\.primedia\.com/i, + /(hometheater)\@primediamags\.chtah\.com/i, + /\@(profantasy)\.com/i, + /travelercare\@(orbitz)\.com/i, + /paypal\@notifications\.(paypal)\.com/i, + /\@email\.(countrywide)\.com/i, + /CountrywideSubscriptionServices\@(countrywide)\.com/i, + /(tigerdirect)\@promo\.tigeronline\.com/i, + /usmail\@(expedia)mail\.com/i, + /\@aadvantage\.info\.(aa)\.com/i, + /\@info\.(aa)\.com/i, + /\@checkin\.info\.(aa)\.com/i, + /mytoyota\@(toyota)partsandservice\.com/i, + /webmaster\@(relianceindiacall)\.com/i, + /Customercare\@(relianceindiacall)\.com/i, + /eAccountNotify\@(verizon)wireless\.com/i, + /newsletters\@(boston)\.com/i, + /alerter\@(my-cast)\.com/i + { + ANNOTATE -d X-Disposition Services-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Sales + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(rediff-shopping)-noreply\@listserver\.rediff\.com/i, + /AbtElectronics\@newsletter\.(abtelectronics)\.com/i, + /BarnesandNoble_Membership\@email\.(bn)\.com/i, + /BarnesandNobleEmail\@email\.(bn)\.com/i, + /dell\@outletbusiness\.(dell)\.com/i, + /Dell_Automated_Email\@(dell)\.com/i, + /eBags\@.*\.(eBags)\.com/i, + /(foodnetwork)store\@foodnewsletters\.com/i, + /FoodNetworkStore\.com\@email-(foodnetwork)store\.com/i, + /\@shop\.(hammacher)\.com/i, + /Hammacher\.custcare\@(hammacher)\.com/i, + /firststreet\@email\.(firststreet)online\.com/i, + /\@email\.(foodnetwork)store\.com/i, + /email\@(firststreet)\.messages1\.com/i, + /(harmony)\@corp\.shopharmony\.com/i, + /(improvements)\@e\.improvementscatalog\.com/i, + /winzip-announce\@(winzip)\.com/i, + /specials\@email\.(officedepot)\.com/i, + /specials\@(officedepot)\.com/i, + /support\@email\.(officedepot)\.com/i, + /(gentleware)_AG\@mail\.vresp\.com/i, + /Marketing\@(extendedstay)hotels\.com/i, + /\@(drsfostersmith)\.com/i, + /(fogcreek)\@.*whatcounts\.com/i, + /(homefocus)\@e.homefocuscatalog.com/i, + /support\@(officedepot).chtah.com/i, + /\@.*\.the(planet)\.com/i, + /hm1\@(handmark).net/i, + /promo\@email\.(newegg)\.com/i, + /info\@newegg\.com/i, + /mailing\@(handmark).com/i, + /(josabank)\@shop.josbank.com/i, + /News\@mail\.(crutchfield)\.com/i, + /News\@messages\.(crutchfield)\.com/i, + /greatdeals\@rent\.(thrifty)email\.net/i, + /(Thermador)\@xmr3\.com/i, + /support\@(softwaremag)\.com/i, + /\@.*\.(verizonwireless).com/i, + /\@info1\.(quicken)\.com/i, + /TechSaver\@eletters\.(ztechsaver)\.com/i + { + ANNOTATE -d X-Disposition Sales-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +# Lugs and such + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /(nashdl)\@googlegroups\.com/i, + /(nlug)-request\@linuxlists.org/i, + /(nlug)\@linuxlists.org/i, + /(nlug-biz)-request\@linuxlists.org/i, + /(nlug-biz)\@linuxlists.org/i, + /(nlug-newbies)-request\@linuxlists.org/i, + /(nlug-newbies)\@linuxlists.org/i, + /(nlugsc)-request\@linuxlists.org/i, + /(nlugsc)\@linuxlists.org/i + { + ANNOTATE -d X-Disposition LUG-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + +#Misc + From To Cc Sender X-Mn-Key Envelope Delivered-To X-BeenThere: + /announce\@crossover\.(codeweavers)\.com/i, + /announce-bounces\@crossover\.(codeweavers)\.com/i, + /mobile_(gaming)\@egroups.com/i + { + ANNOTATE -d X-Disposition Misc-Mailinglist; + ASSIGN list '%1'; + REJECT MailingList + }; + + /./ { ANNOTATE -d X-Lost Retry; REJECT LOST }; + +# related mails sent off the list + Subject: + /\[LIH\]/ { ASSIGN list linux-india-help; + ASSIGN subject '%s'; + STRIP Subject; + RESYNC; + SUBST #subject /\[LIH\]/[LIH] [PERSONAL]/i; + RESYNC; + REJECT MailingList }; + Subject: + /\[LIG\]/ { ASSIGN list linux-india-general; + ASSIGN subject '%s'; + STRIP Subject; + RESYNC; + SUBST #subject /\[LIG\]/[LIG] [PERSONAL]/i; + RESYNC; + REJECT MailingList }; + + +# Miscellaneous stuff + From To Cc Sender X-Mn-Key Envelope: + /perl5-porters/i { ASSIGN list dist; REJECT MailingList } + /linux-alert/i { ASSIGN list security; REJECT MailingList } + /infophil.com/i { ASSIGN list misc; REJECT MailingList } + ; + + + Return-Path: /ding-request/i { ASSIGN list ding; + REJECT MailingList }; + +# { ASSIGN subject '%s'; +# STRIP Subject; +# RESYNC; +# SUBST #subject /^\(agent-users\s\d+\)//i; +# ANNOTATE -d Subject %#subject; +# RESYNC; +# REJECT ML}; + +### This is a work related mail +## From: /dce\@spseg.ENET.bar.com/i { REJECT DigitalDCE }; +## From: /ctg\@spseg.ENET.bar.com/i { REJECT DigitalDCE }; +## From: /usg_osf\@unifix.ENET.bar.com/i { REJECT GCIF }; +## From: /\"UNIFIX::USG_OSF\"\@unifix.ENET.bar.com/i { REJECT GCIF }; +## From: /UNIFIX::USG_OSF/i { REJECT GCIF }; +## From: /\@unifix.ENET.bar.com/i { REJECT GCIF }; +### Anything else goes to the bcast address +## To Cc Sender: /sdt_reports/, /spseg/ +## { VACATION off; UNIQUE -a (bcast); SAVE bcast }; + + Subject: /CFV: Proposal/ { REJECT VOTE }; + + X-SBClass:/Admin/ { REJECT ADMIN }; + + X-Loop: /\d+\@bugs.debian.org/i { REJECT DEBIANBUGS }; + Sender: /debbugs\@master.debian.org/ { REJECT DEBIAN }; + + +###################################################################### +###################################################################### +# # +# Handle Debian Related Mail # +# # +###################################################################### +###################################################################### +# Handle My own bugs + To Resent-CC: /Manoj Srivastava/ + { REJECT MYBUGS }; + + X-Debian-PR-Package: /([-\w]+)/ + { ANNOTATE -d X-Agent-list 'pkg-%1'; + ASSIGN list 'pkg-%1'; + REJECT MailingList }; + +# Resent-To: Manoj Srivastava is for bugs I reported + /./ + { ASSIGN list 'debian'; + ANNOTATE -d X-Agent-list unknown-bug-list; + REJECT MailingList; + }; + +#handle policy bugs + X-Debian-PR-Package: /debian-policy/ + { ASSIGN list 'debian-policy'; + ANNOTATE -d X-Agent-list debian-list; + REJECT MailingList; + }; + + X-Debian-PR-Package: /general/ + { ASSIGN list 'debian-devel'; + ANNOTATE -d X-Agent-list general-bugs; + REJECT MailingList; + }; + + X-Debian-PR-Package: /wnpp/ + { ASSIGN list 'wnpp'; + ANNOTATE -d X-Agent-list debian-list; + REJECT MailingList; + }; + + Subject: /\[proposal\]/i, X-Debian-PR-Package: /debian-policy/ + { ASSIGN list 'debian-policy'; + ANNOTATE -d X-Agent-list debian-list; + REJECT MailingList; + }; + + All: /./ { VACATION OFF; SAVE debian-bugs.spool; }; + + X-Loop: + /(debian-bugs-(closed|forwarded))(-(request|dist))?\@lists.debian.org/i + { REJECT ClosedBugs }; + + + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc : + /(debian-ctte+)(-(request|dist|private))?\@debian.org/gi + { ASSIGN list '%1'; + ANNOTATE -d X-Agent-list debian-list; + REJECT MailingList; + }; + + + Subject: /CFV: Proposal/, X-Loop: /debian-vote/ { REJECT VOTE }; + + X-Loop: /(debian-[\w-]+)(-(request|dist))?\@lists.debian.org/gi + { ASSIGN list '%1'; + SUBST #list /-(digest|request|dist)//gi; + SUBST #list /devel-changes/changes/i; + ANNOTATE -d X-Agent-list debian-list; + REJECT MailingList; + }; + + Body: /^\s*I vote\s+\w+\s+on/i + { UNIQUE -a (vote); VACATION off; MESSAGE ~/etc/voteack; + SAVE vote; }; + All: /./ { REJECT DEBIAN }; + + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc : + /(debian-[\w-]+)(-(request|dist))?\@lists.debian.org/gi + { ASSIGN list '%1'; + SUBST #list /-(digest|request|dist)//gi; + SUBST #list /devel-changes/changes/i; + ANNOTATE -d X-Agent-list debian-list; + REJECT MailingList; + }; + + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /john.doe/ { ANNOTATE -d X-Agent-list Unknown; + ASSIGN list 'debian'; REJECT MailingList }; + + All: /./ { ANNOTATE -d X-Agent-list Unknown; + REJECT RETRY}; + + { +## construct text string suitable for single-quoting + ASSIGN temp %[From]%_=>%_%[Envelope-To]%_(%[Subject]); + SUBST #temp /['\\\\]/\\\\$1/g; +## now write the log + DO add_log ("[$mfile]%_".'%#temp'); + PERL sbin/mailagent.deblog.pl; + }; + + Sender List-Id X-BeenThere: /(lsb-[\w-]+)(-(request|dist))?\@/gi + { ASSIGN list '%1'; + SUBST #list /-(digest|request|dist)//gi; + SUBST #list /devel-changes/changes/i; + ANNOTATE -d X-Agent-list lsb-list; + REJECT MailingList; + }; + Sender List-Id X-BeenThere: /(spi-[\w-]+)(-(request|dist))?\@/gi + { ASSIGN list '%1'; + SUBST #list /-(digest|request|dist)//gi; + ANNOTATE -d X-Agent-list spi-list; + REJECT MailingList; + }; +#### +#### Ok, so this is not from a mailing list. +#### + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /john.doe\@debian.org/i { ANNOTATE -d X-Agent-list Unknown; + ASSIGN list debian; REJECT MailingList }; + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /secretary\@debian.org/i { ANNOTATE -d X-Agent-list Secretary; + ASSIGN list 'secretary'; REJECT MailingList }; + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /\@packages.debian.org/i { ANNOTATE -d X-Agent-list Unknown; + ASSIGN list debian; REJECT MailingList }; + + X-SBClass:/Blocked/ { REJECT BLOCKED }; + + + From: john.doe { ANNOTATE -d X-Agent-list me; VACATION off; + REJECT SRIVASTA }; + + Subject: /Test Vacation/i { MESSAGE ~/etc/vacation }; + Subject: /LurkFTP Output/i { SAVE admin }; + { ASSIGN list outgoing; + ANNOTATE -d X-Agent-list Outgoing; + REJECT MailingList }; +# !X-Spam-Status: /No/ +# { ANNOTATE -d X-MYLIST %#list.spool; ANNOTATE -d X-Lost MailingList; REJECT LOST }; + +###################################################################### +###################################################################### +# # +# All non mailing list mail # +# # +###################################################################### +###################################################################### + From: dhaley { REJECT ADDRESSED }; + + Subject: /get pgp key/i { SAVE admin; MESSAGE ~/.pgpkey }; + Subject: /get gpg key/i { SAVE admin; MESSAGE ~/.gpgkey }; + +<_SEEN_> { STRIP X-Filter; REJECT post_process }; + { VACATION off; SAVE test; }; + +###################################################################### +###################################################################### +# # +# Newsletters and all # +# # +###################################################################### +###################################################################### + + X-Loop X-Mailing-List To Resent-From Resent-To Resent-Reply-To Cc: + /john.doe\@ieee.org/i { ANNOTATE -d X-List Newsletters; + REJECT NEWSLETTERS }; + + Relayed From Reply-To Sender: + /AppDevTrends\@bdcimail.com/i, + /AppDevTrends\@101communications-news\.com/i, + /Data_Packet\@newsletters.theneteconomy.com/i, + /Ent\@101communications-news\.com/i, + /FareTracker.*\@faretracker.expedia.customer-email.com/i, + /IQUpdate\@bdcimail.com/i, + /\@update.informationweek.com/i, + /LinuxReport\@bdcimail.com/i, + /LinuxWorld\@emailch.com/i, + /MSNHotOffers_\d+\@msnnewsletters.customer-email.com/i, + /MyGarage\@AlconeMarketing.com/i, + /news\@letters.infogate.com/i, + /NetworkComputing\@events.cmp.netline.com/i, + /OpenSource\@bdcimail.com/i, + /ScoopHelp\@Bellevue.com/i, + /SecurityAlert\@bdcimail.com/i, + /SecurityWatch\@bdcimail.com/i, + /SoftwareMagazine\@emailch.com/i, + /SoftwareMagazine\@processrequest.com/i, + /Semiconbayinfo-owner\@listbot.com/i, + /The_InfoWorld_Scoop\@.*com/i, + /Williams-Sonoma\@service\.williams-sonoma\.com/i, + /\@.*\.americanexpress.com/i, + /\@.*\.computerworld.com/i, + /\@.*\.iomega.com/i, + /\@deerfield.com/, + /\@directsolutionsinc.com/i, + /\@etrade.0mm.com/i, + /\@garden.m0.net/i, + /\@ieee.org/i, + /\@kgpnet.org/i, + /\@members.clickrewards.com/i, + /\@msgexpress.net/i, + /\@news.clickrewards.com/i, + /\@softwaremag.com/i, + /\@suretrade.com/i, + /\@travelocity.com/i, + /\@usenix.org/i, + /all\@dtccom.net/i, + /barnesandnoble.com/i, + /betweenthelines\@daily.informationweek.com/i, + /burpeeseed\@burpeeseed.ve1.biz/i, + /chhedis\@kgpnet.org/i, + /Connection\@administaff.com/i, + /theneteconomy\@eletters1.ziffdavis.com/i, + /cujnews\@cuj.email-publisher.com/i, + /custserv\@burpee\.com/i, + /developerWorks\@ibm.ihost.com/i, + /electronics-news\@amazon\.com/i, + /EthicsMatters\@bdcimail.com/i, + /free\@arttoday.com/i, + /googlealerts-noreply\@google\.com/i, + /heimdal-announce\@sics.se/i, + /imaginemedia.com/i, + /itnews\@.*itwpub1.com/i, + /\@iqmailer.net/i, + /linuxworld\@.*itwpub1.com/i, + /members\@batchmates.com/i, + /memberservices\@travelocity.m0.net/, + /michael\@omg.org/i, + /mobicon\@mobicon.org/i, + /lw_ent\@idg.email-sr\@dsizone\d*\.net/i, + /smail\@dsi-sigs.net/i, + /the-institute\@ieee\.org/i, + /tools-news\@amazon\.com/i, + /urnews\@cmp.com/i, + /unixreview\@dsizone\d*\.net/i, + /urnews\@unixreview\.email-publisher\.com/i, + /updates\@rhinosoft.com/i, + /Williams_Sonoma\@.*\.customer-contact\.net/i, + /vmwarenews\@vmware.m0.net/i, + /.*travelocity.com/i, + /sans\@sans.org/i, + /dana\@omg.org/i, + /SLED/i, /pppcom/i, + /\@insider.cheaptickets.com/, + /\@intuit\.0mm\.com/, + /altavista-software.com/, + /compare.net/, + /\@TigerDirect.com/i, + /lists.sierra.com/, + /(rails)\.Book\.Buyers\@pragprog\.com/i, + /news.quicken.com/, + /InformationWeek\@update.informationweek.com/i, + /SDonlineUpdate\@softwaredevelopment.email-publisher.com/i, + /policyinfo\@HQ.ACM.ORG/i, + /quicken_newsletters\@newsletter.quicken.com/i, + /quickenmortgage/ + { ANNOTATE -d X-List Newsletters; REJECT NEWSLETTERS }; + + +###################################################################### +###################################################################### +# # +# Now, take care of spammers. # +# # +###################################################################### +###################################################################### +# X-SBClass: /Spam/i { +# ANNOTATE -d X-Spam Smells like spam blocked by spambounce; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: "SPAM" { +# ANNOTATE -d X-Spam Smells like spam from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-aol" { +# ANNOTATE -d X-Spam Smells like spam-aol from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-cyberpromo" { +# ANNOTATE -d X-Spam Smells like spam-cyberpromo" from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-iocom" { +# ANNOTATE -d X-Spam Smells like spam-iocom from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-llv" { +# ANNOTATE -d X-Spam Smells like spam-llv" from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-mindspring" { +# ANNOTATE -d X-Spam Smells like spam-mindspring from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-nancynet" { +# ANNOTATE -d X-Spam Smells like spam-nancynet from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: ".spamlist-znet" { +# ANNOTATE -d X-Spam Smells like spam-znet from %1; +# REJECT SPAM }; + +# To Envelope Relayed From Reply-To Message-Id: +# "/var/spamdb/mailagent.sp" { +# ANNOTATE -d X-Spam Smells like spam-db from %1; +# REJECT SPAM }; + +# X-[0-9]: /cyberpromo\.com/i { +# ANNOTATE -d X-Spam Smells like spam from cyberpromo; +# REJECT SPAM }; + +# X-Mailer: /floodgate/i { +# ANNOTATE -d X-Spam Smells like spam from floodgate; +# REJECT SPAM }; + + +# The message id should really match this. +# Message-id: !/\@([-a-zA-Z0-9]+\.)+[a-zA-Z]{2,3}\>\s*$/ { REJECT MAY_SPAM }; + +# Message-ID: /\<[^\@]*\>/, /\@.*\@/ { +# ANNOTATE -d X-Spam Smells like a bogus message ID; +# REJECT SPAM }; + + +# Comments: /^Authenticated sender/i { +# ANNOTATE -d X-Spam Smells like spam; +# REJECT SPAM }; + + From: /\@.*\.com\.ar/ + { ANNOTATE -d X-List Spam from argentina; REJECT spam }; + + Comments: /^Authenticated sender/i { REJECT MAY_SPAM }; + + Subject: /money/i { ANNOTATE -d X-Spam Money; REJECT SPAM }; + X-Uidl: /^\w+$/i { ANNOTATE -d X-Spam X-Uidl; REJECT SPAM }; + Precedence: /^bulk/i { ANNOTATE -d X-Spam Bulk; REJECT SPAM }; + { REJECT INITIAL }; + + From: postmaster, mailer-daemon, uucp { VACATION off; REJECT BAD }; + + Body: /^X-Mailer: dist/ { REJECT BAD_AGENT }; + Body: /^Precedence: bulk/, /^Subject: .*patch/i { DELETE }; + !X-Spam-Status: /No/ { ANNOTATE -d X-Lost Bad; REJECT LOST }; + { REJECT BOUNCED }; + +###################################################################### +###################################################################### +# # +# Dispose of Mail # +# # +###################################################################### +###################################################################### +# !X-Spam-Status: /No/ { ANNOTATE -d X-Lost Admin; REJECT LOST }; + All: /./ { PERL sbin/mailagent.archive.pl Admin %H %Y %m}; + { VACATION off; SAVE admin }; + + From: /plaistedg\@erols.com/, /67_camaro\@charter.net/ + { ANNOTATE -d X-List Known; REJECT ADDRESSED }; + + All: /./ { PERL sbin/mailagent.archive.pl bounced %H %Y %m}; + { SAVE bounced.spool }; + + + All: /./ + { TR #list /A-Z/a-z/; PERL sbin/mailagent.archive.pl %#list %H %Y %m}; + { VACATION off; TR #list /A-Z/a-z/; + ANNOTATE -d X-MYLIST %#list.spool; + UNIQUE -a (%#list); SAVE %#list.spool }; + Relayed From Reply-To Sender: + /skymall_information\@skymall.com/i, + /orders\@amazon.com/i + { VACATION off; UNIQUE -a (orders); SAVE orders }; + + { VACATION off; SAVE spam }; +#ONCE (%r, spammessage, 1d) MESSAGE ~/etc/spam; + +# The rest is potentially personal mail +## X-SBClass:/OK/ { REJECT ADDRESSED }; + To Cc Sender: + /john.doe\@debian\.org/, + /john.doe\@acm\.org/, + /john.doe\@datasync\.com/, + /john.doe\@bar\.com/, + /john.doe\@.+\.internal\.bar\.com/, + /m\.john.doeva\@opengroup\.org/, + /foo.com/i { ANNOTATE -d X-List Work; REJECT ADDRESSED } + ; + +# Not explicitely for me. Mail lost or bcc'ed. + !To !Cc: /john.doe/i { ANNOTATE -d X-Lost Not-me; REJECT LOST }; + + + !X-Spam-Status: /No/ { ANNOTATE -d X-Lost Initial; REJECT LOST }; + X-SBPass: /Legitimate Mailing List/ { REJECT INITIAL }; + +###################################################################### +###################################################################### +# # +# This mail comes to me # +# # +###################################################################### +###################################################################### +# By default, beep three times for mail ending up in my mailbox +# +{ BEEP 3; REJECT }; + !X-Spam-Status: /No/ { ANNOTATE -d X-Lost Addressed; REJECT LOST }; + +# From: /spammer\@/ { MESSAGE ~/etc/lamb; REJECT spam }; + To Cc Sender Subject: /analog/ + { + ASSIGN list analog; + ANNOTATE -d X-MYLIST analog.spool; + PERL sbin/mailagent.archive.pl analog %H %Y %m + }; + To Cc Sender Subject: /analog/ + { + VACATION off; + UNIQUE -a (analog); + SAVE analog.spool + }; +# There is too much mail ending up in the S/TDC folder that really +# belongs in the analog folder. This is not optimal, but the hueristic +# is to default mail to foo.spool only if it comes from s/tdc +# employees or processes + To Cc Sender: /joe.sixpack\@foo.com/i, + From: /\@foo.com/i + { + ASSIGN list foo; + ANNOTATE -d X-MYLIST foo.spool; + PERL sbin/mailagent.archive.pl foo %H %Y %m; + }; + To Cc Sender: /joe.sixpack\@foo.com/i, + From: /\@foo.com/i + { + VACATION off; + UNIQUE -a (foo); + SAVE foo.spool + }; +# Let teh default be analog. + To Cc Sender: /joe.sixpack\@foo.com/i + { + ASSIGN list analog; + ANNOTATE -d X-MYLIST analog.spool; + PERL sbin/mailagent.archive.pl analog %H %Y %m; + }; + To Cc Sender: /joe.sixpack\@foo.com/i + { + VACATION off; + UNIQUE -a (analog); + SAVE analog.spool + }; + X-SBClass: /Blocked/ { UNIQUE -a (misc); SAVE misc }; + X-SBNote: /FROM_DAEMON\/Listserv/ { REJECT NEWSLETTERS }; + To Cc Sender: /john.doe\@ieee.org/ { REJECT NEWSLETTERS }; + + All: /./ { PERL sbin/mailagent.archive.pl important %H %Y %m}; + { UNIQUE -a (addressed); ANNOTATE -d X-Spam Addressed; + SAVE important }; + + !X-Spam-Status: /No/ { ANNOTATE -d X-Lost Newsletters; REJECT LOST }; + { VACATION off; UNIQUE -a (newsletters); SAVE newsletters.spool }; + + + +###################################################################### +###################################################################### +# # +# final default rule # +# # +###################################################################### +###################################################################### +#probably spam +{ + ANNOTATE -d X-Lost Unknown; + REJECT LOST +}; + + Subject: /Ballot for / { UNIQUE -a; VACATION off; DELETE; }; + + /./ { UNIQUE -a (lost); VACATION off; + ANNOTATE -d X-Spam lost; SAVE lost.spool }; + + +###################################################################### +###################################################################### +# # +# End of mailagent rules # +# # +###################################################################### +###################################################################### + + --- mailagent-3.1-81.orig/debian/rc/etc/sample.mailrules +++ mailagent-3.1-81/debian/rc/etc/sample.mailrules @@ -0,0 +1,250 @@ +Well, I'm not doing really anything clever necessarily (I don't +have enough time to play :-), but here's a snippet from a .rules-thing +that logs some fields of the email directly into the log: + + { + ## construct text string suitable for single-quoting + ASSIGN temp %[From]%_=>%_%[Envelope-To]%_(%[Subject]); + SUBST #temp /['\\\\]/\\\\$1/g; + ## now write the log + DO add_log ("[$mfile]%_".'%#temp'); + REJECT; +}; + +And here's my current .rules file, which depends on the fact that I +convinced Teleport staff to pass "envelope to" through to my +procmailrc (don't ask, it's a long story), which then stuffs it into +the header as "Envelope-To". I've stripped a few secret things out, +but for the most part, it's what I'm running right now. I'm handling +about 300 pieces of incoming mail a day, and I must say, mailagent +rules are pretty "do what I mean" when you've played with them for a +while. Good job, ram! + + +## stupid workaround so I can get one rule with vacation on... :-( +{ VACATION off; REJECT; }; + +### initial sorting based on any available envelope-to +### requires the cooperation of Envelope-to: addition in .procmailrc + + Envelope-to: + //i { + ## ahhh, fors-discuss or fors-announce + PIPE /home/j_r_hacker/.mail/fors-discuss-SAVE; + ## but also operate on it: + REJECT TO_J_R_HACKER; + } + /<([ph]ostmaster|j_r_hacker(\.[a-z0-9-]+)+)\@myhost.com>/i { + ANNOTATE X-j_r_hacker-alter %1; + SAVE +inbag; + } + //i { + ANNOTATE X-j_r_hacker-alter usual-suspects-request; + SAVE +inbag; + } + //i { + ## process for everyone else via separate copy + ## this keeps my copy with all trace headers + AFTER (now) + KEEP Message-Id Reply-To From Subject Date To Cc\; + ANNOTATE -d Errors-To usual-suspects-request@myhost.com\; + BOUNCE "~/.usual-suspects-list"\; + ; + ## send my copy my way + REJECT TO_J_R_HACKER; + } + //i + { REJECT TO_J_R_HACKER; } + //i + { REJECT TO_FUND; } + //i + { REJECT TO_CLPA; } + /<(u2i|u2o)\@myhost.com>/i + { SAVE +%1; } + //i { + ONCE (%r, pti, 1d) MESSAGE ~/.message.pti; + ANNOTATE X-perl-training info %r; + SAVE +pti; + } + //i { + ONCE (%r, pt, 1d) MESSAGE ~/.message.pt; + ANNOTATE X-perl-training human %r; + ## he sees these: + BOUNCE maxtrade; + SAVE +pt; + } + ## add other myhost addresses here + /<(\S+)\@myhost.com>/i { + ASSIGN unknown_myhost_user "%1"; + REJECT TO_UNKNOWN_MYHOST; + } + /(.*)/i { + ## no clue? + ASSIGN unknown_envelope_to "%1"; + ANNOTATE X-unknown-envelope-to %#unknown_envelope_to; + REJECT TO_J_R_HACKER; + } +; + +### sort mail for J_R_HACKER + +## only one of these + { UNIQUE -a; REJECT; }; + +## to me and from me? +## warning: this regex appears twice + From: /j_r_hacker\@([a-z0-9-]+\.)*(((portal|myhost|ora|rdrop|perl|pobox|eworld|gorca|jeffrey\.vip\.best)\.com)|reed\.edu)/i { + REJECT TO_AND_FROM_J_R_HACKER; +}; + +## recognize old-style request for legal defense fund + Body: /^\s*\@FUND\s*$/ { + REJECT TO_FUND; +}; + +## handle llama example: + + Apparently-To To: /j_r_hacker\@ora.com/i, + Body: /^bad news\s*:/i +{ + ONCE (%r, llama, 1d) REJECT SEND_LLAMA; + ## ignore redundant Llama mail + DELETE; +}; + +## actually send the llama stuff + { + MESSAGE ~/.message.llama; + SAVE +llama; +}; + +## from clipper or any newsgroup + + Newsgroups: /\S/, + Path: /\S/ +{ + SAVE +clip; +}; + +## idiots at tenon with new mailing list thing (yuck) + Sender: /machten\@tenon.com/ { + SAVE +inbag; +}; + +## to me and visibly addressed to me +## warning: this regex appears twice + To Cc: /j_r_hacker(\.[a-z0-9-]+)*\@([a-z0-9-]+\.)*(((portal|myhost|ora|rdrop|perl|pobox|eworld|gorca|jeffrey\.vip\.best)\.com)|reed\.edu)/i { + REJECT TO_J_R_HACKER_DIRECTLY; +}; + +## to me, but not visibly addressed to me (probably a mailing list) + { + SAVE +inbag; +}; + +### sort mail addressed directly to me + +## aub cron jobs + + Subject: /Output from "cron" command/, + From: root@portal.com +{ + SAVE +inbag; +}; + +## nclip cron jobs + + Subject: /^Cron/, + From: root@angora.drop.com +{ + SAVE +inbag; +}; + +## from anon.penet.fi: just leave in spool (reply would disclose me) + From Reply-To: /anon\.penet\.fi/ { + LEAVE; + ## SAVE +inbox; +}; + +## all others: send vacation mail, and leave in spool ("you have mail") + { + MACRO -r busyout = (Busy, PROGC); + VACATION -l on; + LEAVE; + ## SAVE +inbox; +}; + +### sort mail to me and from me + +## to and from me, not otherwise handled + { + SAVE +outbox; +}; + +### sort mail for CLPA + +## from anon.penet.fi: just reject it (reply would disclose me) + From Reply-To: /anon\.penet\.fi/ { + DELETE; +}; + +## process moderated news posting + { + MESSAGE ~/.message.clpa; + SAVE +clpa; +}; + +### sort mail for FUND + +## from anon.penet.fi: just reject it (reply would disclose me) + From Reply-To: /anon\.penet\.fi/ { + DELETE; +}; + +## fund has been requested: + { + # only send out one message per hour + ONCE (%r, fund, 1h) REJECT SEND_FUND; + ## nope, once failed, must be too early + ANNOTATE X-fund NO %r; + ## maybe this should just be tossed? but for now: + SAVE +fund; +}; + +## send fund: + { + # send fund message + MESSAGE ~/.message.fund; + # and note that we did this + ANNOTATE X-fund YES %r; + SAVE +fund; +}; + +### sort mail for UNKNOWN MYHOST + +## from anon.penet.fi: just reject it (reply would disclose me) + From Reply-To: /anon\.penet\.fi/ { + DELETE; +}; + +## unknown myhost: + { + MESSAGE ~/.message.unknown; + ANNOTATE X-auto-sent: no such myhost: %#unknown_myhost_user; + SAVE +inbag; +}; + +### final default rule for things _SEEN_ +<_SEEN_> { + ANNOTATE X-mailagent-note PREVIOUSLY_SEEN; + SAVE +inbag; + ## eventually, just DELETE; +}; + +### final default rule +{ + ANNOTATE X-mailagent-note UNKNOWN; + SAVE +inbag; +}; + + --- mailagent-3.1-81.orig/debian/rc/etc/vacation +++ mailagent-3.1-81/debian/rc/etc/vacation @@ -0,0 +1,24 @@ +Subject: This is a recording... [Re: %R] +Organization: %o +Precedence: bulk +Cc: username + +[This is a recording -- Last revision made on %T] + +Dear %N: + + I've received your message of %[Date], regarding + "%R". + + I'm out of town at the moment. It will be read as soon as I + come back from vacation. + + I will send you such an acknowledgment only once a day. (Your + mail was received by a program, not by a person, in case you wonder.) + + Sincerely, + + mailagent speaking for %U + +-- + --- mailagent-3.1-81.orig/debian/rc/sbin/lookup.pl +++ mailagent-3.1-81/debian/rc/sbin/lookup.pl @@ -0,0 +1,156 @@ +# From: "Ralf E. Stranzenbach" +# Subject: (agent-users 436) a simple but useful extension to mailagent +# To: agent-users@foretune.co.jp +# Date: Thu, 24 Aug 95 00:21:13 +0200 +# Reply-To: agent-users@foretune.co.jp +# X-From-Line: owner-agent-users@foretune.co.jp Wed Aug 23 19:02:03 1995 +# Received: from lizard.foretune.co.jp (lizard.foretune.co.jp [133.123.1.2]) by plymouth.pilgrim.umass.edu (8.6.12/8.6.12) with ESMTP id TAA15650 for ; Wed, 23 Aug 1995 19:01:59 -0400 +# Received: (from shigeya@localhost) by lizard.foretune.co.jp (8.6.12+2.5Wb7/3.3W4-lizard950703) id HAA13906; Thu, 24 Aug 1995 07:56:31 +0900 +# Message-Id: +# Content-Type: text/plain +# MIME-Version: 1.0 (NeXT Mail 3.3 v118.2) +# Precedence: list +# X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19] +# X-Sequence: agent-users 436 +# Errors-To: owner-agent-users@foretune.co.jp +# Sender: owner-agent-users@foretune.co.jp +# X-Filter: mailagent [version 3.0 PL41] for srivasta@pilgrim.umass.edu +# Message-ID: +# Lines: 127 +# Xref: belthil.pilgrim.umass.edu agent:96 +# +# Hi, +# +# here it is: a simple extension module for "mailagent" (my first one). +# +# At work, i have to track the state of some (a still increasing +# count) of our customers systems and i've installed mailagent to get +# those mails sorted for me. This worked well but i begun to worry as +# i reached my 160-th filter rule. +# +# So i started using my brain and this is my result: i've added a +# LOOKUP command to mailagent to map system names and customer numbers +# to their mailboxes. +# +# This LOOKUP command takes three parameters; the first names a +# variable (either local or persistent), the second the map-file and +# the third the key. The map-file consists of lines with key/valye +# pairs, delimited by one or more white-space characters. +# +# If "key" is listed in the map-file, the value will be assigned to +# the named "variable" and LOOKUP succeeds. In any other case LOOKUP +# "fails" --- so you may use "REJECT -f" or something like this after +# LOOKUP. +# +# It's a very simple addition. It would be much more interesing to +# set-up some sort of SQL-LOOKUP thus using the SQL databases to get +# those mappings... Using perl5, this should be possible require-ing +# Sybperl.pm in the middle of the execution... +# +# Anyway, the code below works with mailagent-3.0@41 (perl5.001l) and +# with slight modifications (replace :: with ') with mailagent-3.0@23 +# (perl4.036). +# +# If you'll find this code useful in any way, feel free to get and +# use it. but drop me a mail if you do so: i'm just interested if it's +# useable for anyone but me. +# +# - ralf +# +# P.S.: You've to add the line +# LOOKUP ~/somewhere/lookup.pl lookup true true +# tou your "newcmd" file. +# +# --- +# Ralf E. Stranzenbach +# at Home: +49 2302 / 96200-3 +# at Work: +49 231 / 75892-15 +# +# Object-oriented means that the objects displayed on the screen - such +# as buttons, boxes or lists - mean something to the operating system, +# just as words mean something to DOS. +# - Ron White, How Software Works +# +#---- CODE STARTS HERE +# +# (c)1995 Ralf E. Stranzenbach +# +# $Id: lookup.pl,v 1.2 1998/08/13 18:12:36 srivasta Exp $ +# +# $Log: lookup.pl,v $ +# Revision 1.2 1998/08/13 18:12:36 srivasta +# Added comments about required modules +# +# Revision 1.1 1997/08/13 19:13:51 srivasta +# Updated example +# +# Revision 1.2 1995/08/23 21:58:45 ralf +# released to public domain after some final checking +# +# Revision 1.1 1995/08/23 21:54:49 ralf +# Initial revision +# +# + +sub lookup { # maps a KEY string to some other values + # using map-Files. + # It's a *very* simple imlementation but + # this solution drops my rule count from + # something around 150 to 6 --- and this + # makes my mailagent run *much* better. + # + # Use it like this + # { LOOKUP mailbox num_to_mbox %1; + # REJECT -f punknown; + # SAVE %#mailbox; + # DELETE }; + # { LEAVE }; + + # check the arg-count + if ($#ARGV != 3) { + &::add_log ("ERROR: insufficient number of args.") if $::loglvl; + &::add_log ("USAGE: LOOKUP var table key") if $::loglvl; + return 1; + } + + # guess the file's name + local ($file) = + ($ARGV[2] =~ /^\//) ? $ARGV [2] : ($cf::spool . '/' . $ARGV[2]); + + # open the data file + unless (open (LOOKUPF, "< $file")) { + &::add_log ("ERROR: LOOKUP can't open file $file") if $::loglvl; + return 1; + } + &::add_log ("LOOKUP: reading from $file") if $::loglvl == 20; + + # read the lines + while () { + next if /^\s*#/; + next if /^\s*$/; + next unless /^(\S+)\s+(.*)$/; + + # is this the key we've searched for ? + if ($1 eq $ARGV[3]) { + # yup, it is.. + if ($ARGV[1] =~ /^:/) { + # set a persistent variable + &extern::set ($ARGV[1], $2); + } else { + # set a simple "internal" variable + $::Variable{$ARGV[1]} = $2; + } + &::add_log ("LOOKUP matched $1 -> $2") if $::loglvl == 20; + close (LOOKUPF); + return 0; + } + } + # no math found... + &::add_log ("LOOKUP no match found for $ARGV[3]") if $::loglvl == 20; + close (LOOKUPF); + return 1; +} +1; +---- CODE ENDS HERE + + --- mailagent-3.1-81.orig/debian/rc/sbin/mailagent.archive.pl +++ mailagent-3.1-81/debian/rc/sbin/mailagent.archive.pl @@ -0,0 +1,55 @@ +#!/usr/bin/perl -w +# -*- Mode: Cperl -*- +# mailagent.archive.pl --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Sat Oct 4 12:36:30 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Sat Oct 4 14:09:13 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 13 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# +%Discard_lists = + ( + "debian-boot" => 1, + "debian-bugs" => 1, + "debian-bugs-rc" => 1, + "debian-changes" => 1, + "debian-curiosa" => 1, + "debian-firewall" => 1, + "lsb-test" => 1, + "newsletters" => 1, + "outgoing" => 1, + "linux-kernel" => 1, + ); + +my $archive_root = "/backup/mail"; + +if ($ARGV[1]) { + my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); + $year +=1900; + $mon = sprintf("%02d", $mon + 1); + + if ($#ARGV >= 3) { + $year = $ARGV[3]; + } + + if ($#ARGV >= 4) { + $mon = $ARGV[4]; + } + + if ($ARGV[2] =~ /anzu/io) { + if (!(defined $Discard_lists{$ARGV[1]})) { + if (! -d "$archive_root/$ARGV[1]") { + mkdir "$archive_root/$ARGV[1]" + } + &save("$archive_root/$ARGV[1]/${year}_$mon"); + } + } +} + +&reject; --- mailagent-3.1-81.orig/debian/rc/sbin/mailagent.ctrlM.pl +++ mailagent-3.1-81/debian/rc/sbin/mailagent.ctrlM.pl @@ -0,0 +1,20 @@ +#! /usr/bin/perl +# -*- Mode: Perl -*- +# mailagent.decnet.pl --- +# Author : Manoj Srivastava ( srivasta@graceland ) +# Created On : Wed Dec 15 10:48:28 1993 +# Created On Node : graceland +# Last Modified By : Manoj Srivastava +# Last Modified On : Sun Mar 8 15:42:42 1998 +# Last Machine Used: tiamat.datasync.com +# Update Count : 17 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# + +$header{'All'} =~ s/ //og; + +&reject; +&exit(0); --- mailagent-3.1-81.orig/debian/rc/sbin/mailagent.deblog.pl +++ mailagent-3.1-81/debian/rc/sbin/mailagent.deblog.pl @@ -0,0 +1,35 @@ +#!/usr/bin/perl +# -*- Mode: Perl -*- +# mailagent.log.pl --- +# Author : Manoj Srivastava ( srivasta@graceland ) +# Created On : Tue Dec 14 19:47:25 1993 +# Created On Node : graceland +# Last Modified By : Manoj Srivastava +# Last Modified On : Tue May 27 15:57:55 1997 +# Last Machine Used: tiamat.datasync.com +# Update Count : 21 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# + +@Month_Name = + ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', + 'Nov', 'Dec', ); + +($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = + localtime(time); + $year +=1900; + +$message = "\nFrom: $from $friendly\nSender: $header{Sender}\n" . + "To: $header{To}\nSubject: $subject\n"; + +&usrlog'new ('DEBBUGS', "bugClosed.$year.$Month_Name[$mon]", 0); #'; +&main'usr_log( #'; + 'DEBBUGS', + "$message" + ); + + +&delete; --- mailagent-3.1-81.orig/debian/rc/sbin/mailagent.decnet.pl +++ mailagent-3.1-81/debian/rc/sbin/mailagent.decnet.pl @@ -0,0 +1,21 @@ +#! /usr/bin/perl +# -*- Mode: Perl -*- +# mailagent.decnet.pl --- +# Author : Manoj Srivastava ( srivasta@graceland ) +# Created On : Wed Dec 15 10:48:28 1993 +# Created On Node : graceland +# Last Modified By : Manoj Srivastava +# Last Modified On : Sun Mar 8 15:43:00 1998 +# Last Machine Used: tiamat.datasync.com +# Update Count : 16 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# + +while (<>){ + chop; + s/\w+:+IN.\"([^\"]+)\"\s*\(?([^\)]+)\)?\s*/"$2" <$1>/g; + print "$_\n"; +} --- mailagent-3.1-81.orig/debian/rc/sbin/mailagent.log.pl +++ mailagent-3.1-81/debian/rc/sbin/mailagent.log.pl @@ -0,0 +1,34 @@ +#!/usr/bin/perl +# -*- Mode: Perl -*- +# mailagent.log.pl --- +# Author : Manoj Srivastava ( srivasta@graceland ) +# Created On : Tue Dec 14 19:47:25 1993 +# Created On Node : graceland +# Last Modified By : Manoj Srivastava +# Last Modified On : Fri Jan 3 12:26:18 1997 +# Last Machine Used: tiamat.datasync.com +# Update Count : 14 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# + +@Month_Name = + ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', + 'Nov', 'Dec', ); + +($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); +$year +=1900; +$mon++; + + +$message = "\nFrom: $from\nSender: $header{Sender}\n" . + "To: $header{To}\nSubject: $subject\n"; +$message .= "Message-ID: $header{Message-id}\n" if defined $header{Message-id}; +#&usrlog::new ('INCOMING', "$year$Month_Name[$mon].inc", 0); #'; +&usrlog::new ('INCOMING', "$year.$mon.inc", 0); #'; +&main::usr_log( 'INCOMING', "$message" ); + + +&reject; --- mailagent-3.1-81.orig/debian/rc/sbin/unmime +++ mailagent-3.1-81/debian/rc/sbin/unmime @@ -0,0 +1,231 @@ +#!/usr/bin/perl +# $Id: unmime,v 1.4 2000/11/22 05:15:17 srivasta Exp $ +# +# Copyright (c) 1990-1993, Raphael Manfredi +# +# You may redistribute only under the terms of the Artistic License, +# as specified in the README file that comes with the distribution. +# You may reuse parts of this distribution only within the terms of +# that same Artistic License; a copy of which may be found at the root +# of the source tree for mailagent 3.0. +# +# Original Author: Eryq / eryq@rhine.gsfc.nasa.gov +# +# Integrated into mailagent and modified with Eryq's permission. +# +# $Log: unmime,v $ +# Revision 1.4 2000/11/22 05:15:17 srivasta +# new version +# +# Revision 3.0.1.3 1998/03/31 15:31:34 ram +# patch59: new -x and -X options to cope with accentuated letters +# patch59: added removal of ugly ?iso-8859-1?Q escapes in subject +# +# Revision 3.0.1.2 1997/02/20 11:49:29 ram +# patch55: the -e un-escape was overzealous for uuencoded parts... +# patch55: made the filter die if an error occurs to prevent feedback +# +# Revision 3.0.1.1 1996/12/24 15:04:50 ram +# patch45: created +# + +# Un-MIME regular message from stdin. +# Non-text version saved in directory ~/mail/MIME and proper indication is +# left in the dumped message. Text is otherwise dumped and deleted from there. +# +# Intended to be used with mailagent thanks to the following incantation rule: +# +# Mime-Version: /^\d/ { SAVE +mime; FEED ~/mail/unmime; RESYNC; REJECT }; +# +# Actually, that is just the basic idea. The real set of rules I use for +# this can be found in misc/mime/rules, in the mailagent distribution. +# +# WARNING: copy this script to ~/mail/unmime only when you're done with +# it since mailagent can pop up and use it anytime once the above is plugged. +# +# Options: +# -e: pass the quoted-printable decoder over the message and that's it. +# -x: translate chars not understood by some iso8859-1 fonts. +# -X: translate all accents to non-accentuated letters (plain ASCII). + +($me = $0) =~ s|.*/(.*)|$1|; + +require "getopts.pl"; +Getopts('exX'); + +$opt_x++ if $opt_X; # -X implies -x + +$TMPDIR = "$ENV{HOME}/var/tmp/MIME"; + +use MIME::Parser; + +#------------------------------------------------------------ +# dump_entity - idempotent routine for dumping an entity +#------------------------------------------------------------ + +sub dump_entity { + my ($entity) = @_; + my $IO; + my $not_first_part = 0; + + # Print the header, converting accents if any + my $head = $entity->head->original_text; + $head =~ s/^(Subject:.*)/no_iso_markup($1)/me + if $head =~ /^Subject:.*=\?iso-8859-1\?Q\?/mi; + print $head, "\n"; + + # Output the body: + my @parts = $entity->parts; + if (@parts) { # multipart... + my $i; + foreach $i (0 .. $#parts) { # dump each part... + dump_entity($parts[$i]); + } + } else { # single part... + # Get MIME type, and display accordingly... + my ($type, $subtype) = split('/', $entity->head->mime_type); + #print STDERR "type - $type\n"; + + my $body = $entity->bodyhandle; + my $path = $body->path; + if ($type =~ /^(text|message)$/ || -T $path) { # text: display it... + if ($IO = $body->open("r")) { + print "\n" if $not_first_part++; + print to_ascii($_) while (defined($_ = $IO->getline)); + $IO->close; + + # If message is text/message, chances that we did the right + # thing are extremely high. So unlink the message if lying on + # the disk... -- RAM, 19/11/96 + + unlink($path) or warn "$me: can't unlink $path: $!\n" + if defined $path && -f $path; + + } else { # d'oh! + die "$me: couldn't find/open '$file': $!"; + } + } else { # binary: just summarize it... + my $size = ($path ? (-s $path) : '???'); + print ">>> This is a non-text message, $size bytes long.\n"; + print ">>> It is stored in ", ($path ? "'$path'" : 'core'),".\n\n"; + } + } + print "\n"; + + 1; +} + +#------------------------------------------------------------ +# smart_pack +#------------------------------------------------------------ +sub smart_pack { + my ($hexa) = @_; + my $val = hex($hexa); + return "=$hexa" if $val >= 128; # We're smart right there! + return pack('C', $val); +} + +#------------------------------------------------------------ +# no_accent +#------------------------------------------------------------ +sub no_accent { + local ($_) = @_; + tr/\xab\xbb\xe0\xe2\xe7\xe8\xe9\xea\xee\xef\xf4\xf9\xfb/""aaceeeiiouu/; + return $_; +} + +#------------------------------------------------------------ +# to_ascii +#------------------------------------------------------------ +sub to_ascii { + my ($l) = @_; + return $l unless $opt_x; # Don't loose info unless -x or -X + $l =~ tr/\x92/'/ if $opt_x; # '; + $l = no_accent($l) if $opt_X; + return $l; +} + +#------------------------------------------------------------ +# to_txt -- combines =xx packing with no_accent() +#------------------------------------------------------------ +sub to_txt { + my ($l) = @_; + $l =~ s/=([\da-fA-F]{2})/pack('C', hex($1))/ge; + return no_accent($l); +} + +#------------------------------------------------------------ +# no_iso_markup -- removes ugly ?iso-8859-1?Q escapes +#------------------------------------------------------------ +sub no_iso_markup { + local ($_) = @_; + s/^(.*?)=\?iso-8859-1\?Q\?(.*)\?=/$1 . to_txt($2)/ie; + s/_/ /g; + return $_; +} + +#------------------------------------------------------------ +# unquote_stdin +#------------------------------------------------------------ +sub unquote_stdin { + local $_; + my $encoded = 0; + my $in_header = 1; + while () { + $in_header = 0 if /^\s*$/; + + # All Subject: line with accents to be "un-mimed" as well. + s/^(Subject:.*)/no_iso_markup($1)/e + if $in_header && /^Subject:.*=\?iso-8859-1\?Q\?/i; + + # Avoid decoding inlined uuencoded/btoa stuff... since they might + # accidentally bear valid =xx escapes... The leading \w character + # is there in case the thing is shar'ed... + # Likewise, all the lines longer than 60 chars and with no space + # in them are treated as being encoded iff they begin with M. + + $encoded = 1 if /^\w?begin\s+\d+\s+\S+\s*$/ || /^\w?xbtoa Begin\s*$/; + $encoded = 0 if /^\w?end\s*$/ || /^\w?xbtoa End/; + + if ($encoded || (length > 60 && !/ / && /^M/)) { + print $_; + } else { + # Can't use decode_qp from MIME::QuotedPrint because we might not + # face a real quoted-printable message... + # Inline an alternate version. + + s/\s+(\r?\n)/$1/g; # Trailing white spaces + s/^=\r?\n//; # Soft line breaks + s/([^=])=\r?\n/$1/; # Soft line breaks, but not for trailing == + s/=([\da-fA-F]{2})/smart_pack($1)/ge; # Hehe + print to_ascii($_); + } + } + return 1; # OK +} + +#------------------------------------------------------------ +# main +#------------------------------------------------------------ + +sub main { + return &unquote_stdin if $opt_e; + + # Create a new MIME parser: + my $parser = new MIME::Parser; + + # Create and set the output directory: + $parser->output_dir($TMPDIR); + + # Read the MIME message: + $entity = $parser->read(\*STDIN) or + die "$me: couldn't parse MIME stream"; + + # Dump it out: + dump_entity($entity); +} + +exit(&main ? 0 : -1); + +#------------------------------------------------------------ +1; --- mailagent-3.1-81.orig/debian/rc/tmp/lost+mail/README +++ mailagent-3.1-81/debian/rc/tmp/lost+mail/README @@ -0,0 +1,6 @@ +This directory shall hold a backup copy of the mail while it +is being processed by mailagent. Mailagent tries very hard +to always keep one copy of email on disl, so loss of power +during processing should not result in lost data. + +arch-tag: 9cef74eb-d55f-4bff-81b3-e9042f81dc04 --- mailagent-3.1-81.orig/debian/rc/var/log/README +++ mailagent-3.1-81/debian/rc/var/log/README @@ -0,0 +1,4 @@ +This directory is where the example configuration uses to store log +messages. + +arch-tag: 6cfe1ceb-ee1c-4372-9c61-ea674e357b53 --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/agenthelp +++ mailagent-3.1-81/debian/rc/var/spool/agent/agenthelp @@ -0,0 +1,170 @@ +The purpose of the mail agent is to enable me answer some of your +requests, even if it's early in the morning and I've just gone to bed ! :-) + +For instance, you need Larry Wall's patch program or Rich Salz's cshar. +I have them and I use them in my own kits. So you may ask me to send them +to you. Of course, you could send me a mail saying "Please, could you +send me the cshar distribution kit ?", but I certainly won't be able to do +it at once , either because I am not there when the mail arrives, or +because someone else asked before you... + +With the mail agent, there are no problems. You simply (!) send me a mail +of the following form: + + Subject: Command + @SH maildist =DEST= cshar 3.0 + +and you will get version 3.0 of cshar. + + +Here are the possible commands: + + - mailhelp PATH + # sends some help + + - maillist PATH + # sends a list of what is available + + - mailpatch PATH SYSTEM VERSION LIST + # sends patches for a system + + - maildist PATH SYSTEM VERSION + # sends a whole distribution kit (latest patchlevel) + +where PATH is a return path FROM ME TO YOU either in Internet notation +or in bang notation from some well-known host. As far as you are +concerned, it appears to be =DEST=. + +PATH may be omitted for mailhelp and maillist, in which case the return +address found in the mail header will be used. + +SYSTEM is the system's name and VERSION is the version number. For +systems that are not maintained, the version number has no sense and +thus may be omitted (for maildist). A '-' stands for the latest version. + +The LIST for mailpatch is the number of one or more patches you need, +separated by spaces, commas, and/or hyphens. For instance: + + 2,3 4-7,10- + +asks for patches 2 and 3, then 4 to 7, and from 10 to the end, while + + -5 10 11 + +requests patches up to 5, then 10 and 11. + + +Commands must be preceded by the token "@SH" at the beginning of a line. +Do not put spaces/tabs in front of "@SH". In the mail examples I give, +I do put one, but it is only for clarity purpose. + +In the same way, the line "Subject: Command" must be left-justified. +Note that the subject of the mail does not need to be "Command", as long +as you put the "Subject: Command" line in the body of your message, +before your commands. You may use either "Command" or "command". + +Once the "Subject: Command" line appears in your mail, either in the +header or in the body, you may put as many commands as necessary. +For example: + + Subject: Command + + @SH maillist =DEST= + @SH maildist =DEST= cshar 3.0 + + +If you are in doubt of what is the return path, you may put "PATH" or a +single '-' instead of your address, and the mail agent will replace it +with the return path it finds in the mail header. In case you do not +trust your mail headers, you may force the return path with the "@PATH" +command. The mail agent reads the whole message before actually +processing it, so the location of this command does not really matters. +Here is an example: + + Subject: Command + + @SH mailhelp + @SH mailpatch - kit 2.0 4,5 + @PATH =DEST= + + +When you ask for files to be sent, the mail agent makes shell archives or +kit archives, depending on the amount of bytes that are to be returned. +If it exceeds an arbitrary-fixed limit of =MAXSIZE= bytes, files are sent +as kit archives. Otherwise, they will be sent as shell archives provided +that no file is greater than the maximum allowed for a single shell +archive. This is called the "auto" packing mode. + +The "@PACK" command forces the distribution mode, which is "auto" by +default. The specified packing mode is used, until another "@PACK" +command is found. Valid parameters are "auto", "kit" and "shar". +Note that forcing mode to "shar" may well result in a failure if one +of the files to be sent is bigger than the maximum size allowed for a +shell-archive (around 50000 bytes). However, the mail agent does its +best: it will split large files and uuencode non-ASCII ones. + +When you use maildist, please do not request for "shar" mode, as "kit" will +be more efficient and safer. Note that when the packing mode is "auto" and +the mailagent has to kit the files, a minikit is included. Hence you may +unkit the distribution even if you do not have kit. But it will always be +simpler with kit anyway. + +"Kit" is a binary tar-mailer that you must own in order to unkit +the kit archives which do not include a 'minikit'. If you do not have it, +send me the following mail: + + Subject: Command + @SH maildist =DEST= kit - + +and you will get the latest release of "kit". + +Here is another example that uses the "@PACK" request (the following +package names, revision numbers and patchlevels are here for the purpose +of demonstration only. Reality may -- and often will -- be completely +different): + + Subject: Command + + -- Set the return path, so that we can use '-' without fear. + @PATH =DEST= + -- Request patches for kit 2.0, sent in "auto" packing mode. + -- Note that the '-' actually stands for the return path. + -- We could also have said: + -- @SH mailpatch =DEST= kit 2.0 3- + -- but as long as we have more than one command in the file, + -- it would be cumbersome to repeat the address each time. + @SH mailpatch - kit 2.0 3- + -- Force packing mode to "shar", as we don't want to kit 'kit'. + -- We don't know what the latest version is, so we put a '-'. + -- Maildist will send the version at its highest patchlevel. + @PACK shar + @SH maildist - kit - + -- Kit is more reliable and will greatly reduce the amount of + -- transmitted data (typical gain is 50% for sources). + @PACK kit + -- We want version 2.0 for dist and nothing else. + @SH maildist - dist 2.0 + -- Request all patches for the latest version of matrix + @SH mailpatch - matrix - 1- + + +A nice thing with the mail agent is that you can ask for a receipt, in +order to be sure that I received your mail. You may do so by placing +the "@RR" command at the beginning of any line in the body of your +message. A receipt will then be sent to the return path extracted from +the header. You may force the receipt to be sent to a given address by +giving it after the @RR token. Saying "@RR PATH" or "@RR -" is possible +but not very different from a single "@RR" !! + +Here are valid requests: + + @RR + @RR =DEST= + @RR login@cpu.domain.top + +Note that no "Subject: Command" line is necessary for that, so you may +ask for receipts in every mail. + + +If this help file is not clear enough, or if you have suggestions/questions, +feel free to ask me. --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/commands +++ mailagent-3.1-81/debian/rc/var/spool/agent/commands @@ -0,0 +1,5 @@ +mailpatch +mailhelp +maillist +maildist +package --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/context +++ mailagent-3.1-81/debian/rc/var/spool/agent/context @@ -0,0 +1,2 @@ +# Mailagent context, last updated Thu Jan 24 18:27:17 EST 2008 +last-clean: 1201217237 --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/distribs +++ mailagent-3.1-81/debian/rc/var/spool/agent/distribs @@ -0,0 +1,19 @@ +# Distributions (under vi, use ':set ts=4') + +# prog version path archiv .Z patches + +kit 2.0 /src/misc/archive/kit-2.28 y y n +dist 3.0 /src/misc/archive/dist-3.58 y y n +cshar 3.0 /src/misc/archive/cshar-3.14 y y n +rcs 5.7 /src/gnu/archive/rcs-5.7 y y n +cops 104 /src/misc/archive/cops_104 y y n +flex 2.4 /src/gnu/archive/flex-2.4.5 y y n +less 177 /src/gnu/archive/less-177 y y n +perl 4.0 /src/misc/archive/perl-4.036 y y p +patch 2.0 /src/gnu/archive/patch-2.1 y y n +MOMspider 1.0 /www/pub/misc/MOMspider-1.00a y y n +MHonArc 1.1 /www/pub/misc/MHonArc1.1 y y n +Watcher 1.0 /www/pub/misc/Watcher y y n +logtools 1.0 /www/pub/misc/logtools-1.06a y y n +gmake 4.7 /www/pub/misc/make-3.74 y y n +guestbook 3.0 /src/packages/guestbook.3.0 y n y --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/nocmds +++ mailagent-3.1-81/debian/rc/var/spool/agent/nocmds @@ -0,0 +1,12 @@ +[This is a recording -- Last revision was made on %T] + +Dear %N: + +I have received your command mail dated %[Date]. + +I am truly sorry, but the mailagent access has been denied to you for various +reasons. Your mail however was not lost but filtered normally, which means +I will have a look at it. I may eventually execute the command myself, if +necessary and needed. + +Thank you for your understanding. --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/plsave +++ mailagent-3.1-81/debian/rc/var/spool/agent/plsave @@ -0,0 +1,16 @@ +# This file was automatically generated by maillist. +# It records the archived distributions, their patch level if any, and +# the modification time of the archive, so that these informations can +# be updated when necessary. Do not edit this file. + +less 177 -2 704049978 +Pilgrims_Progress --- -2 756067473 +cshar 3.0 14 755004155 +kit 2.0 28 755087467 +Papers --- -2 756067550 +perl 4.0 36 729461570 +dist 3.0 15 755974349 +rcs 5.6 -2 743476897 +flex 2.4 -2 755804974 +patch 2.0 -2 740536487 +cops 104 4 723611076 --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/proglist +++ mailagent-3.1-81/debian/rc/var/spool/agent/proglist @@ -0,0 +1,97 @@ +# Small descriptions for programs + +* cshar +The useful shell-archive maker. Raphael Manfredi modified the original +slightly to add a Configure script. +--- + +* kit +A simple binary tarmailer. This is used by the mail agent when +mailing big sets of files. You presently need cshar (from +Rich Salz) to use kit. +--- + +* dist +Larry Wall's dist package, modified. It contains: + - metaconfig, a Configure script generator + - a patch generator + - a distribution maker +It comes from version Larry's dist 2.0 PL 2 package, but has +quite a few extensions (I worked especially on the patch +generating tools and metaconfig itself). The units used by +metaconfig have been manually ripped off from some recently +posted Configure scripts (elm 2.3, perl 3.0). +--- + +* rcs +GNU Revision Control System. You need RCS to use Larry's +dist package (patch generating tools). +--- + +* cops +Security analysis tools. May be useful to find holes in +your system. +--- + +* less +The pager that is more than more(1). +--- + +* flex +Fast lex. Needed for the xfmt package, because lex is not +powerful enough. +--- + +* perl +Larry Wall's Practical Extraction and Report Language. It +combines the best features of C, awk, sed and sh. +You need it to use the dist package. +--- + +* patch +The useful utility to apply diff files on a distribution. You could +of course apply them by hand, but it may well be a long procedure ! +Written by Larry Wall. +--- + +* Watcher +Kerberos version 4 patch9 tar'ed, compressed vms saveset. +--- + +* logtools +Combined Log System was designed to enable the automatic handling of +log files generated by infosystems daemons (ftp, gopher, CERN / NCSA +http, archie, ...) for Internet archives. It does this by providing +a combined format for the transfers, and converting each of the raw +log files into this combined format. The results are then stored by +date/time, summarized and compressed. +--- + +* gmake +The GNU `make' utility automatically determines which pieces of a +large program need to be recompiled, and issues the commands to +recompile them. +--- + +* MOMspider +MOMspider is a web-roaming robot that specializes in the +maintenance of distributed hypertext infostructures (i.e. +wide-area webs). The program is written in Perl and, once +customized for your site, should work on any UNIX-based +system with Perl. +--- + +* MHonArc +MHonArc is a Perl program for converting e-mail messages as specified +in RFC 822 and RFC 1521 (MIME) to HTML. +--- + +* guestbook +Guestbook is a package containing a flexible, security conscious, +cgi-bin script and support files that enables any user on a site to +maintain a guestbook. In fact, there may be no limit on the number of +guest books, one could run a number of them. The script is smart +enough to generate a HTML 2.0 compliant fill-out form on the fly, +complete with navigation icons. +--- + --- mailagent-3.1-81.orig/debian/rc/var/spool/agent/queue/README +++ mailagent-3.1-81/debian/rc/var/spool/agent/queue/README @@ -0,0 +1,9 @@ +This is where the filter drops the incoming email before calling the +rest of the mailagent for processing it. The filter, is small, fast, +and is called for every incoming mail; and is written in C. The rest +of mailagent is written in perl, and can be slow, and only one +instance is run for a whole batch of incoming mail. So, the filter +delivers mail here, where mailagent processes it, and delivers it into +the user spool. + +arch-tag: b84bcad3-baef-4c57-b8bb-6fbfd50b46ff --- mailagent-3.1-81.orig/debian/rc/var/spool/mail/README +++ mailagent-3.1-81/debian/rc/var/spool/mail/README @@ -0,0 +1,5 @@ +This directory is where the mail is spooled by the mailagent after +processing, to be picked up by the user's mail reader (mail user +agent). + +arch-tag: 3db167ee-a170-4389-9d62-05043834535d --- mailagent-3.1-81.orig/debian/rules +++ mailagent-3.1-81/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 +package:=mailagent +SRCTOP:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) +INSTALL = install +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +install_file = $(INSTALL) -p -o root -g root -m 644 +install_program = $(INSTALL) -p -o root -g root -m 755 +install_script = $(INSTALL) -p -o root -g root -m 755 +make_directory = $(INSTALL) -p -d -o root -g root -m 755 +email := srivasta@debian.org +TMPTOP:=debian/tmp +DOCDIR=debian/$(package)/usr/share/doc/$(package) +DEBDOCDIR=$(TMPTOP)/usr/share/doc/$(package) +DEBLIBDIR=$(TMPTOP)/usr/lib/$(package) +PKG_DIR = $(TMPTOP)/usr/share/$(package) +MAN1DIR = $(TMPTOP)/usr/share/man/man1 + +DPKG_ARCH := dpkg-architecture +export DEB_HOST_MULTIARCH := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_MULTIARCH) + +%: + dh $@ + +override_dh_auto_configure: + /bin/cp -rpf debian/Config .config && \ + /bin/cp -pf debian/config.over config.over && \ + touch .config/nomail && \ + eval "$(dpkg-buildflags --export=sh)" && \ + sh ./Configure \ + -de \ + -D prefix=$(PREFIX) \ + -D orgname=/etc/news/organization \ + -D myhostname=localhost \ + -D mydomain=localdomain \ + -D defeditor=/usr/ae \ + -D usenm=no \ + -D privlib=/usr/share/$(package) \ + -D utmp="/var/run/utmp" \ + -D optimize="$(CFLAGS)" \ + -D ldflags="$(LDFLAGS)" \ + -D cf_email='$(email)' \ + -D d_berknames='define' + + +override_dh_auto_build: + dh_auto_build + pod2man debian/getspam > debian/getspam.1 + perl -wc debian/mailagent.postinst + bash -n debian/mailagent.config + bash -n debian/mailagent.postrm + bash -n debian/mailagent.prerm + +override_dh_installdocs: + dh_installdocs + $(install_file) agent/README $(DOCDIR)/README.agent + $(install_file) agent/filter/README $(DOCDIR)/README.filter + $(install_file) agent/files/README $(DOCDIR)/README.shell + $(install_file) agent/files/help/README $(DOCDIR)/README.server + find $(DOCDIR)/help -name \*.SH -exec rm {} \; + find $(DOCDIR)/help -name \*Makefile -exec rm {} \; + +override_dh_install: + test -d $(MAN1DIR) || $(make_directory) $(MAN1DIR) + $(make_directory) $(PKG_DIR) + $(make_directory) $(DEBLIBDIR) + $(MAKE) install + $(MAKE) install.man + test ! -f $(DEBDOCDIR)/filter || \ + $(install_program) $(DEBDOCDIR)/filter $(DEBLIBDIR)/filter + test ! -f $(DEBDOCDIR)/filter || rm $(DEBDOCDIR)/filter + for i in chkagent.sh filter.sh setup.cf mailagent.cf commands; do \ + test ! -f $(DEBDOCDIR)/$$i || mv $(DEBDOCDIR)/$$i $(PKG_DIR); \ + done + test ! -f $(PKG_DIR)/chkagent.sh || chmod ugo+x $(PKG_DIR)/chkagent.sh + test ! -f $(PKG_DIR)/filter.sh || chmod ugo+x $(PKG_DIR)/filter.sh + dh_install + dh_link usr/share/mailagent/filter.sh usr/lib/mailagent/filter.sh + +override_dh_clean: + dh_clean + test ! -d .config || rm -rf .config + +#Local variables: +#mode: makefile +#End: --- mailagent-3.1-81.orig/debian/source/format +++ mailagent-3.1-81/debian/source/format @@ -0,0 +1 @@ +1.0 --- mailagent-3.1-81.orig/debian/templates +++ mailagent-3.1-81/debian/templates @@ -0,0 +1,15 @@ +Template: shared/news/organization +Type: string +Default: --none-- +_Description: Organization name for this computer: + The /etc/news/organization file does not exist. That file contains + the name of the organization this computer belongs to. This is the + name that will appear in the Organization header field of outgoing + articles, mail, or patches. + . + Please enter the name of the organization as you want it to appear in + that header field. It is common practice to add a location, typically + a city name, to the organization's name, for instance: + University of Southern North Dakota, Hoople + . + If you enter "--none--", no organization name will be setup. --- mailagent-3.1-81.orig/debian/watch +++ mailagent-3.1-81/debian/watch @@ -0,0 +1,2 @@ +# This is maintained as a subversion repository upstream. +# svn checkout svn://svn.code.sf.net/p/mailagent/code/trunk mailagent-code