🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12463

Re: Automatizar envío de mensaje a grupo de noticias

#12463
From: Juanjo Álvarez
Date: Fri, 20 Jul 2001 05:09
30 lines
1715 bytes
Benjam�n Albi�ana P�rez dijo sobre Re: Automatizar env�o de mensaje a grupo de noticias,
en fecha: 19 Jul 2001 15:08:32 GMT

|>Mirate el modulo de python nntplib, algo como lo que tu
|>quieres se hace en tres lineas.
|   
|   Pues yo no he sabido hacerlo en menos de 7:
| 
| import nntplib
| 
| c=nntplib.NNTP('localhost')
| f=open('mensaje', 'r')
| c.mode('reader')
| c.post(f)
| f.close()
| c.quit()
| 
|   A ver esas tres l�neas. 

import nntplib

c = nntplib.NNTP('localhost')
c.post( open('mensaje', 'r') )
c.quit()

Casiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii!

-- 
http://www.escomposlinux.org/fer_y_juanjo/
Nick IRC: Kane
Technical Details
Message-ID: <slrn9lff82.9ll.juanjux@pascual.mired>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213.4.16.123!not-for-mail
References: <slrn9lav18.fa6.david@fangorn.net> <slrn9lbjpm.14a.amphora@desdemona.net.dhis.org> <slrn9ldtve.hqi.benjamin@lamanonegra.net.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,ad771018b84aca70,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-07-20 06:11:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213.4.16.123!not-for-mail
From: juanjux@yahoo.es (Juanjo Álvarez)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Automatizar envío de mensaje a grupo de noticias
Date: Fri, 20 Jul 2001 07:09:22 +0200
Lines: 30
Message-ID: <slrn9lff82.9ll.juanjux@pascual.mired>
References: <slrn9lav18.fa6.david@fangorn.net> <slrn9lbjpm.14a.amphora@desdemona.net.dhis.org> <slrn9ldtve.hqi.benjamin@lamanonegra.net.dhis.org>
Reply-To: juanjux@yahoo.es
NNTP-Posting-Host: 213.4.16.123
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 995634707 23955307 213.4.16.123 (16 [60040])
X-Orig-Path: 127.0.0.1!nobody
User-Agent: slrn/0.9.7.1 (Linux)