Article View: news.software.nn
Article #8841Re: How to split saved articles?
From: Sven Guckes
Date: Tue, 02 Dec 1997 00:00
Date: Tue, 02 Dec 1997 00:00
53 lines
2988 bytes
2988 bytes
paulcs@netcom.com (Paul C. Sorenson):
> >Assuming you have been saving the articles with nn and with headers
> >then these shuld be in "mailbox format", ie each headers starts with
> >a "From_" line (where the _ stands for a space).
> Did you mean "From:_", rather than "From_"?
No - I meant "From_" (without a colon).
At least I remember NN prepending such a line when saving in mailbox format.
The manual of NN says under "SAVING ARTICLES":
Articles can optionally be saved in MAIL or MMDF compatible
format by setting the mail-format and mmdf-format variables.
These variables only specify the format used when creating a
new folder, while appending to an existing folder will be
done in the format of the folder (unless folder-format-check
is false).
So, use "mail-format" or "mmdf-format" in your "init" file!
> In any case, if it's safe to assume that there will always be a "\nFrom:_"
> field *somewhere* in the header. I could do a vi macro (or whatever) that
> would insert a dilimiter string (such as "--\n", or whatever) at the top of
> each paragraph that contains "\nFrom:_".
Well, assuming mial-format style, you could use this macro with Vim:
ab FROM From comp.mail.elm Tue Dec 2 11:39:17 1997
map ## /^From: <C-M>{oFROM<ESC>}
Explanation:
The abbreviation just defines a pseudo-From_ header line for insertion.
The mappings jumps to the next From: line (most probably a header),
goes back before the current paragraph, Opens a line and inserts the
pseudo From_ line; and them jumps behind the paragraph (header).
Remember: With Vim you can write macros with the "angle notation",
so you can copy&paste them from screen into the vimrc. :-)
Then again, once a folder has the From_ line at the start,
it should also rewrite folders in the given format.
Try this and give use some feedback, ok? :-)
Sven
--
Sven Guckes guckes@vim.org | VIM Latest versions| AmigaOS, Atari MiNT, BeOS,
VIM Home: http://www.vim.org/ | VIM-4.6 [970212] | DOS, MacOS, OS/2, UNIX,
New features: syntax coloring,| VIM-5.0r [971124] | VMS, Win95+WinNT.
ex mode, conditional statements, Perl interface, WindowsGUI; more ports!
Technical Details
Message-ID:
<slrn687pmg.n0g.guckes@banach.math.fu-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<paulcsEKHDnG.J1L@netcom.com> <slrn685e5a.knb.guckes@banach.math.fu-berlin.de> <paulcsEKIvDM.81z@netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn687pmg.n0g.guckes@banach.math.fu-berlin.de> Subject: Re: How to split saved articles? Date: Tue, 02 Dec 1997 00:00:00 +0000 From: guckes@math.fu-berlin.de (Sven Guckes) References: <paulcsEKHDnG.J1L@netcom.com> <slrn685e5a.knb.guckes@banach.math.fu-berlin.de> <paulcsEKIvDM.81z@netcom.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 294478788 X-Newsreader-Info: http://www.math.fu-berlin.de/~guckes/slrn/ Organization: Freie Universitaet Berlin X-Access: 16 17 19 Reply-To: guckes@math.fu-berlin.de Newsgroups: news.software.nn