diff --git a/slrn/approved.sl b/slrn/approved.sl new file mode 100644 index 0000000..5e614c9 --- /dev/null +++ b/slrn/approved.sl @@ -0,0 +1,30 @@ +% This variable will hold the followup_custom_headers as defined in the +% .slrnrc file. +variable Default_Followup_Headers; + +Default_Followup_Headers = get_variable_value ("followup_custom_headers"); +define followup_hook () +{ + variable h; + + h = Default_Followup_Headers; + + if ((0 == strncmp (current_newsgroup, "alt.sysadmin.recovery", 21)) | + (0 == strncmp (current_newsgroup, "alt.tech-support.recovery", 25)) | + (0 == strncmp (current_newsgroup, "bofh.", 5)) + ) + { + % Generate Approved header + h = sprintf ("%sApproved: probably not\n", h); + } + + if ((0 != strncmp(current_newsgroup, "comp.", 5)) & + (0 != strncmp(current_newsgroup, "rec.", 4)) & + (0 != strncmp(current_newsgroup, "bofh.", 5)) + ) + { + h = sprintf("%sX-No-Archive: Yes\n", h); + } + + set_string_variable ("followup_custom_headers", h); +} diff --git a/slrnrc b/slrnrc index 566e4a7..2fabe05 100644 --- a/slrnrc +++ b/slrnrc @@ -160,9 +160,9 @@ set save_replies "News/Sent_Emails" % The sendmail command allows you to substitute another mailer. Be sure that % it implements the same interface as sendmail! -set sendmail_command "/usr/lib/sendmail -oi -t -oem -odb" +%set sendmail_command "/usr/lib/sendmail -oi -t -oem -odb" %set sendmail_command "/usr/exim/bin/exim -oi -t -oem -odb" - +set sendmail_command "~/bin/mymuttmsmtp -a Fastmail" % Name of score file (relative to HOME directory) set scorefile "News/Score" @@ -521,4 +521,5 @@ setkey readline trim "\e/" % Trim whitespace setkey readline quoted_insert "^Q" % Quoted insert %interpret /usr/local/share/slrn/search.sl -interpret ~/.slrn/approved.sl +% Path is relative to $HOME +interpret .slrn/approved.sl