🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Daniel Louis Smith Tue, 12 Jan 1993 01:09
linking Fcc: files?
#1414
Author: Daniel Louis Smith
Date: Tue, 12 Jan 1993 01:09
69 lines
2275 bytes
	Hi, I've figured out how I may have a new Fcc: file each day
(see script) below.  I'll generate new components and replcomps
files each night.  I have two questions:

	* If I am replying to joe@somewhere.com, how can I strip
	the "@somewhere.com" so that I can Fcc: to "joe"?  In mush
	this is "cmd sa  save -a +".

	* If I am Fcc'ing more than one file (chronologically and by person),
	how may I have them be links instead of two files (inodes...)?

	Here's my script that I'll be running nightly:


#!/usr/bin/perl
#
#	makecomp - update my mh comp file template
#	dansmith@autodesk.com, January 1993

require <ctime.pl>;
$Date = &ctime(time);

($i, $month, $day, $i, $year) = split(' ', &ctime(time));

open (COMP_FILE, "> /home/dansmith/text/Mail/components") ||
	die "gee..can't update components file!\n";

#	updates go here...
print COMP_FILE <<"EOF";
To: 
cc:
Subject:
X-Organization: Autodesk, Sausalito, CA
Fcc: $year/$month/$day
--------

EOF

close COMP_FILE;

#	and now, generate a custom replcomps file...


open (COMP_FILE, "> /home/dansmith/text/Mail/replcomps") ||
	die "gee..can't update replcomps file!\n";

#	updates go here... (this is just the standard replcomp with added '\'s)
print COMP_FILE <<"EOF";
%(lit)%(formataddr %<{reply-to}%|%<{from}%|%<{sender}%|%<{return-path}%>%>%>%>)\\
%<(nonnull)%(void(width))%(putaddr To: )\\n%>\\
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\\
%<(nonnull)%(void(width))%(putaddr cc: )\\n%>\\
Fcc: $year/$month/$day %{from} \\n\\
%<{subject}Subject: Re: %{subject}\\n%>\\
%<{date}In-reply-to: Your message of "\\
%<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id}
             %{message-id}%>\\n%>\\
--------

EOF

close COMP_FILE


				Daniel
-- 
 dansmith@autodesk.com       daniel@world.std.com       dansmith@well.sf.ca.us
        Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
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