🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #5508

Using NN as a mailer (Was: Mailing list as pseudo-newsgroup?)

#5508
From: Nancy McGough
Date: Thu, 24 Feb 1994 01:51
118 lines
4002 bytes
sardella@entrprse.gsfc.nasa.gov (Tom Sardella) writes:
>However, I
>would like to use nn to read mail folders, as well, but can't figure out
>how to delete messages.  How do you do that?  Could you post your macros?

In nn to delete a message from a folder you "cancel" it using the C
command.  The macros I've got for deleting (invoked with D on the menu 
and d in reading mode) actually save the message to a folder named 
ToDelete, but I've included the code (commented out) for really deleting 
the message.

I also have save macros (S and s) which copy a message to another folder 
and then delete the message from the current folder.  If you want to copy 
a message without deleting it use the C macro.  If you want to bounce a 
message you can use the B macro.  See below for the details.

Since I'm an Elm user I've used commands similar to Elm's.

I'd love to hear feedback.

Enjoy,
Nancy


--- BEGIN ~/.nn/init.folders ---
# Filename: init.folders
# To load at startup:       nn -Iinit,init.folders -gr
# To load on the fly:      :load init.folders


# FOLDER VARIABLES

# Needed: Way to show To and Cc headers
set header-lines FRONW*Y

# Next is default but with D instead of # for canceled/deleted
# set attributes \ .,+=D! **

# Next is kind of Elm-like
set attributes N OL!DK?+*

# The Elm-like attributes look better if you use the next 2 settings:
set layout 3
set counter-delim-left \ [

# On means sort folders by subject
# Off means sort in order saved
# To change on the fly use :sort command
# Default: on 
set fsort on

# Default: 2
set from-line-parsing 0


# KEY MAPPINGS THAT ARE ELM LIKE
map menu 1 page=1
map menu = page=1
map menu * page=$
map show i goto-menu


# FOLDER MACROS

# Next 2 lines help when debugging macros
# set macro-debug on
# set confirm-messages on


# Saving from the menu
map menu S (
	?folder save-full input input cancel input break
	?group save-full
)

# Saving while reading
map show s (
	?folder save-full input cancel yes next-article break
	?group save-full
)

# Copy message to another folder and don't delete from current folder
map both C (
	save-full
)

# Deleting from the menu 
# I like to put deleted messages in a file named +ToDelete
# If you really want to delete them uncomment the first line
#   and remove the next line.
map menu D (
#	?folder cancel input break
	?folder save-full "+ToDelete" input cancel input break
	?group macro 0
) 

# Deleting while reading
# I like to put deleted messages in a file named +ToDelete
# If you really want to delete it uncomment the first line
#   and remove the next line.
map show d (
#	?folder cancel yes next-article break
	?folder save-full "+ToDelete" cancel yes next-article break
	?group macro 0
) 


# Bounce a message and preserve headers
map both B (
	:set folder-save-file |/usr/bin/mail\
	save-full prompt "Type email address" input input
	?menu input
	prompt ""
	:set folder-save-file +\
)
--- END ~/.nn/init.folders ---

Technical Details
Message-ID: <nancym.762050870@connected.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.sprintlink.net!connected.com!connected.com!nancym
References: <2k5id0$45m@usenet.rpi.edu> <2k6jfh$ebi@nwfocus.wa.com> <sardella.761863745@entrprse>

Show Full Headers
Complete Article Headers
Message-ID: <nancym.762050870@connected.com>
Subject: Using NN as a mailer (Was: Mailing list as pseudo-newsgroup?)
Date: Thu, 24 Feb 1994 01:51:46 +0000
From: Nancy McGough <nancym@ii.com>
References: <2k5id0$45m@usenet.rpi.edu> <2k6jfh$ebi@nwfocus.wa.com> <sardella.761863745@entrprse>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.sprintlink.net!connected.com!connected.com!nancym
Newsgroups: news.software.nn,comp.mail.elm,comp.mail.misc
Organization: Infinite Ink, Seattle, Washington, USA
Lines: 117
Sender: nancym@hebron.connected.com
Reply-To: Nancy McGough <nancym@ii.com>
NNTP-Posting-Host: hebron.connected.com
X-Newsreader: NN [version 6.4.18]