🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #192

Re: QuotedPrintable->plain

#192
From: Bartosz Jakubski
Date: Tue, 07 Sep 1999 19:04
26 lines
1367 bytes
Piotr "Macki" Kaminski napisał(a):
>Witam !
>
>Szukam funkcji, biblioteki wykonujacej konwersje z QP na plain 
>text, która by oprócz =XX, rozpoznawala takze =?iso-bleeee 
Ależ proszę bardzo! :-)

sub decodeqp {
    my $t = shift;
    $t =~ s/=([\da-fA-F]{2})/chr hex $1/ge;
    $t =~ s/\_/\ /g;
    return $t ;
}
sub decode {
    my $qp = shift;
    $qp =~ s/=\?iso-8859-.\?Q\?(.*?)\?=/decodeqp($1)/egi;
    return $qp;
}
I proszę mi nie mówić, że to nie programowanie! To powyżej to kawał świetnego
kodu! ;-)))


-- 
-- *Bartosz Jakubski*                   _Sosnowiec_ --
-- Free software is a matter of liberty, not price. --
--     http://www.fsf.org/philosophy                --
Technical Details
Message-ID: <slrn7taoe8.r6.migo@localhost.localdomain>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!news.onet.pl!polsl.gliwice.pl!localhost.localdomain!migo
References: <37d51562.152538@news.icm.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!news.onet.pl!polsl.gliwice.pl!localhost.localdomain!migo
From: migo@zse.edu.pl (Bartosz Jakubski)
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: QuotedPrintable->plain
Date: 7 Sep 1999 19:04:40 GMT
Organization: A poorly-installed InterNetNews site
Lines: 26
Message-ID: <slrn7taoe8.r6.migo@localhost.localdomain>
References: <37d51562.152538@news.icm.edu.pl>
NNTP-Posting-Host: pc39.katowice.ppp.tpnet.pl
Mime-Version: 1.0
User-Agent: slrn/0.9.5.7 (UNIX)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit