Article View: news.software.readers
Article #108529[slrn] fido7 posting, X-Comment-To, quotation and followup prefix
From: Igor Ivanov
Date: Sun, 01 Sep 2002 06:47
Date: Sun, 01 Sep 2002 06:47
87 lines
3895 bytes
3895 bytes
Slrn 0.9.7.4 [2002-03-13], S-Lang: 1.4.5,
USENET+fido7 http://www.fido7.ru/ config:
---------------------------------- ~/.slrnrc ---------------------------
ignore_quotes "^ ? ? ?[^ >]?[^ >]?[^ >]?[^ >]?>"
set use_mime 1
set wrap_flags 7
set quote_string ">"
set mime_charset "koi8-r"
set non_Xbrowser "lynx %s"
set followup_string "%r wrote:"
interpret ".slrn.sl"
---------------------------------- ~/.slrn.sl --------------------------
definekey("pipe_to_gnupg", "G", "article");
define get_key() {
variable key, fp = popen("gpg -o - ~/.slrn.key", "r");
() = fgets(&key, fp); () = pclose(fp);
return key;
}
variable
Default_Keyword = get_key(),
Default_Realname = get_variable_value("realname"),
Default_Quote_String = get_variable_value("quote_string"),
Default_Custom_Headers = get_variable_value("custom_headers"),
Default_Followup_String = get_variable_value("followup_string"),
Default_Followup_Headers = get_variable_value("followup_custom_headers");
define pipe_to_gnupg () { pipe_article("gpg | $PAGER"); }
define get_first(s) {
return substr(s, 1, 1);
}
define get_initial(s) {
return strup(strjoin(array_map(String_Type, &get_first,
strchop(str_delete_chars(s, "\"'()"), ' ', '\\')), ""));
}
define make_from_string_hook() {
variable h = Default_Realname;
!if(strncmp(current_newsgroup(), "fido7.", 6))
h = sprintf("%s %s", h, Default_Keyword);
return sprintf("%s <%s@%s>", h, get_variable_value("username"),
get_variable_value("hostname"));
}
define post_hook() {
variable h = Default_Custom_Headers;
!if(strncmp(current_newsgroup(), "fido7.", 6))
h = sprintf("%s\nX-Comment-To: All", h);
set_string_variable("custom_headers", h);
}
define followup_hook() {
variable q = Default_Quote_String, f = Default_Followup_String,
h = Default_Followup_Headers;
!if(strncmp(current_newsgroup(), "fido7.", 6)) {
variable from;
foreach(["Reply-To", "From"]) {
variable header = ();
from = extract_displayed_article_header(header);
if(strlen(from)) break;
}
foreach(["\"\\(.+\\)\" <[^ ]+>", "[^ ]+ (\\(.+\\))", "\\(.+\\) [^ ]+"]) {
variable pattern = ();
if(string_match(from, pattern, 1)) {
variable pos, len;
(pos, len) = string_match_nth(1);
from = substr(from, pos+1, len);
q = sprintf(" %s%s", get_initial(from), q);
break;
}
}
variable to = extract_displayed_article_header("X-Comment-To");
!if(strlen(to)) to = "All";
f = sprintf("%%r ����� %s:", to);
h = sprintf("%s\nX-Comment-To: %s", h, from);
}
set_string_variable("quote_string", q);
set_string_variable("followup_string", f);
set_string_variable("followup_custom_headers", h);
}
Technical Details
Message-ID:
<slrnan3e0f.137.i+usenet@gambit.com.ru>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.gamma.ru!Gamma.RU!news.telekom.ru!gambit.com.ru!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrnan3e0f.137.i+usenet@gambit.com.ru> Subject: [slrn] fido7 posting, X-Comment-To, quotation and followup prefix Date: Sun, 01 Sep 2002 06:47:46 +0000 From: Igor Ivanov <i+usenet@gambit.com.ru> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.gamma.ru!Gamma.RU!news.telekom.ru!gambit.com.ru!not-for-mail Newsgroups: news.software.readers Supersedes: <slrnan2emf.5e5.i+usenet@gambit.com.ru> Followup-To: news.software.readers Organization: http://www.slrn.org/ Lines: 86 NNTP-Posting-Host: peru.gambit.com.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Trace: berkeley.gambit.com.ru 1030862866 60659 194.190.206.62 (1 Sep 2002 06:47:46 GMT) X-Complaints-To: abuse@gambit.com.ru NNTP-Posting-Date: 1 Sep 2002 06:47:46 GMT User-Agent: slrn/0.9.7.4 (FreeBSD)