I am using Smartlist on my server and when I send email it is archived in the archive directory called "latest". I have set smartlist to archive the latest ten emails that I send to the list. However the latest email sent to the list keeps receiving a numeric name that continues to increase. How can I set up smartlist so that the numeric name for the latest ten emails sent to the list remain named 1 - 10? Alan, P.S. This is my second request concerning this question. If I missed someones answer then please forgive me and please repost answer. Tnx!
Alan -- A non-reply usually means nobody has anything to contribute that they don't think is obvious. I don't really either -- but have you looked at the archiving subsystem? I expect you'll need to add some logic to mv 2 to 1, 3 to 2 and etc, then save the new one as 10. Regards, Pete. On Mon, 10 Sep 2001, Alan Northam wrote:
I am using Smartlist on my server and when I send email it is archived in the archive directory called "latest". I have set smartlist to archive the latest ten emails that I send to the list. However the latest email sent to the list keeps receiving a numeric name that continues to increase. How can I set up smartlist so that the numeric name for the latest ten emails sent to the list remain named 1 - 10?
Alan,
P.S. This is my second request concerning this question. If I missed someones answer then please forgive me and please repost answer. Tnx!
On Mon, Sep 10, 2001 at 01:09:04PM -0500, Alan Northam wrote:
I am using Smartlist on my server and when I send email it is archived in the archive directory called "latest". I have set smartlist to archive the latest ten emails that I send to the list. However the latest email sent to the list keeps receiving a numeric name that continues to increase. How can I set up smartlist so that the numeric name for the latest ten emails sent to the list remain named 1 - 10?
There isn't any configuration option like this. You probably need to do a lot of scripting to get such a behaviour. Werner P.S. Please limit your line length to approx. 70 characters
"Alan" == Alan Northam <arnortham@hotmail.com> writes:
Alan> I am using Smartlist on my server and when I send email Alan> it is archived in the archive directory called Alan> "latest". I have set smartlist to archive the latest Alan> ten emails that I send to the list. However the latest Alan> email sent to the list keeps receiving a numeric name Alan> that continues to increase. Yes, that is what procmail (the program that interprets SmartList's rc.* files) does when it sees something like "archive/latest/." (if you are curious about the other variants, login to your UNIX/Linux box and type "man procmailrc"). Alan> How can I set up smartlist so that the numeric name for Alan> the latest ten emails sent to the list remain named 1 - Alan> 10? You could try to rename the files after the new message has been added. However, I don't think this is a good idea, because this renders the archive more or less useless. For one, the name of the archived file is added to the outgoing message (it contains a header line X-Mailing-List: <$listaddr> $ARCHIVE where $listaddr is replaced by the e-mail address of your list and $ARCHIVE is replaced by the name of the archive file), so that your subscribers are able to request previous messages from your list, and to see whether they missed any message. This functionality is called the "archive server" of the list--see archive.txt for help info, or Manual (in .etc) for details. Second, with this renaming, a subscriber may start an archive search for, say, "Star Trek", learn from the result that this text occurs in archive/latest/7, and request that file in the next mail. Meanwhile, a new message may be added to the archive, some old messages are removed, and the rest renumbered. The request will be answered with another file than was intended... However, if you really want to confuse your subscribers :-), or if you have made some precautions so that they cannot use the archive server (but what is the use of the archive then?), then you may consider the following: Copy arch_trunc from the .bin directory to your list directory, and edit it as desired. Do not forget to make it executable ("chmod a+x arch_trunc"). Immediately after the new message has been stored to archive/latest, and even before it is sent to the subscribers, rc.submit invokes this script to truncate the archive. Alan> P.S. This is my second request concerning this Alan> question. If I missed someones answer then please Alan> forgive me and please repost answer. Tnx! At least, you did not miss any answer from me--I just returned from vacation today :-). Hans-Albert -- Hans-Albert Schneider <Hans-Albert.Schneider@mchp.siemens.de> Siemens AG phone: (+49) 89 636 45445 Corporate Technology fax: (+49) 89 636 42284 Munich, Germany -- To get my public PGP key, send me a mail with subject "send key" --
participants (4)
-
Alan Northam
-
Hans-Albert Schneider
-
Peter Hartzler
-
Werner Reisberger