🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Michael Drach Sun, 27 Jun 2004 10:59
[XNEWS] How to save tread in one txt file?
#150771
Author: Michael Drach
Date: Sun, 27 Jun 2004 10:59
7 lines
1255 bytes
I have asked this question even before but I don't think I got straight 
answer. Is it possible to save selected messages from a thread in one text 
file with desired header information included? For example only FROM, 
SUBJECT and DATE fields! How am I supposed to do so?

Thanks,
MD
Re: [XNEWS] How to save tread in one txt file?
#150780
Author: Mike Yetto
Date: Sun, 27 Jun 2004 14:19
20 lines
1984 bytes
While talking to the fat hobbitses Michael Drach said...

> I have asked this question even before but I don't think I got
> straight answer. Is it possible to save selected messages from a
> thread in one text file with desired header information
> included? For example only FROM, SUBJECT and DATE fields! How am
> I supposed to do so? 
> 

If you want to save only filtered data you will need to do this in 
multiple steps.  Save the messages in one file (the instructions were 
posted the last time you asked) and then run it through a script 
(Perl, Rexx, Python...) to extract the desired information. 

    	Mike "you will have to do something" Yetto
-- 
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
    - John Adams 
Re: [XNEWS] How to save tread in one txt file?
#150793
Author: MartinS
Date: Sun, 27 Jun 2004 17:14
21 lines
1791 bytes
Michael Drach <mursa5@hotmail.com> wrote:

> I have asked this question even before but I don't think I got
> straight answer. Is it possible to save selected messages from a
> thread in one text file with desired header information included?
> For example only FROM, SUBJECT and DATE fields! How am I supposed to
> do so? 

There is no straight, easy answer. You can copy them with *all* headers, 
then edit out what you don't want.

Another way I can think of to do it (manually) is to open your messages 
one at a time with the desired headers (specified in Setup|Display) and 
select all, copy & paste into a text file you have opened in a Notepad 
or Wordpad window (Ctrl+A, Ctrl+C, Alt+Tab, Ctrl+V).

You could also display a thread in Google Groups and copy from there, 
but you'd have to edit that too.

-- 
Martin S.
Re: [XNEWS] How to save tread in one txt file?
#150799
Author: Michael Drach
Date: Sun, 27 Jun 2004 17:41
21 lines
1675 bytes
Thank you guys for you answer!

Well, I found my question a logical one and I find XNEWS very good
news reader, so I am surprised even more when I see that there is no
easy way to do it! It there are way to ask the author to add this
feature in a latter version?

Sincerely,
MD

On Sun, 27 Jun 2004 10:59:02 +0000 (UTC), Michael Drach
<mursa5@hotmail.com> wrote:

>I have asked this question even before but I don't think I got straight 
>answer. Is it possible to save selected messages from a thread in one text 
>file with desired header information included? For example only FROM, 
>SUBJECT and DATE fields! How am I supposed to do so?
>
>Thanks,
>MD
Re: [XNEWS] How to save tread in one txt file?
#150800
Author: »Q«
Date: Sun, 27 Jun 2004 18:04
15 lines
1802 bytes
Michael Drach <mursa5@hotmail.com> wrote in
<news:ij1ud0du3vpma17madqvfuv10jf5nf4s5f@4ax.com>:

> Well, I found my question a logical one and I find XNEWS very good
> news reader, so I am surprised even more when I see that there is no
> easy way to do it! It there are way to ask the author to add this
> feature in a latter version?

You can ask him here, but he is no longer adding new features, so I
don't think you will have much luck.

Also, please don't top-post in this newsgroup.  Thanks.

-- 
»Q«
Re: [XNEWS] How to save tread in one txt file?
#150812
Author: Guy
Date: Sun, 27 Jun 2004 22:30
41 lines
3173 bytes
Michael Drach wrote:

> I have asked this question even before but I don't think I got
> straight answer. Is it possible to save selected messages from a
> thread in one text file with desired header information included?
> For example only FROM, SUBJECT and DATE fields! 
> How am I supposed to do so? 
> 

Save the messages to one file then "grep -v" them out.

Ready?[*] You need Grep and to create a PATTERN file.

Highlight the collapsed thread, Article > Save As (or press F6).
Change the filename "Auto" to something like "saved.txt".
Open "saved.txt" in an editor and determine which headers you want
to remove. Put them in a PATTERN file i.e. "remove.dat" as one long
string with a backslash and a pipe(\|) between each.

PROMPT>type saved.txt | grep -v -f remove.dat - > saved.txt

Open the new "saved.txt" file and check, you may need to add more
headers to the PATTERN file, if so add them and run the command again.
Be wary to only match headers and not any body text.

I just tried the above method with the 30 post thread entitled:
"[Xnews] How can I use fonts, colors, bolding, etc. when composing?"
and it cleanup just fine.

Example PATTERN file(remove.dat):
>From ???\|Path\|Newsgroups\|References\|Organization\|Reply-To\|Mime-Version\|Lines\|Message-ID\|NNTP-Posting\|Content-Type\|Content-Transfer-Encoding\|X-Newsreader\|X-Orig\|X-Trace\|X-Complain\|User-Agent\|X-Face\|Xref\|X-DMCA\|X-Abuse\|X-Postfilter\|X-No-Archive\|Archive:\|Distribution:\|Mail-Copies-To\|X-Sent-From 


  [*] Probably not! ;~)

-- 
Regards,
Guy

Xnews "XP" Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads