codeswitcher: A rainbow splash of paint exploding upward (Default)
[personal profile] codeswitcher

I finally got a round tuit, which I poached from actually important things, and finally figured out how to set up autocompletion in tcsh for my custom inc, inca, with the spools list.

Dear self, the config file is ".tcshrc.nmh" which we apparently call from somewhere useful.

The magic lines are:

set nmh_mail_spools = awk '{print $1}' $HOME/.vnmhx.spools | tr "\n" " " complete inca 'C/*/$nmh_mail_spools/'

Note this is unnecessarily baroque, and we could have just used the spools directory instead.

Credit to:

man complete: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.bpxa500/tcshcomplete.htm

Examples: https://hea-www.harvard.edu/~fine/Tech/tcsh.html

man sed: https://www.gnu.org/software/sed/manual/sed.html#sed-script-overview

how not to use sed at all: https://www.unix.com/shell-programming-and-scripting/162226-convert-rows-space-delimited-line.html

[identity profile] codeswitcher.livejournal.com
Did you ever wonder whatever happened to the Daughter of Bilitis?

It was destroyed when a disgruntled member/volunteer stole the sole copy of the list of members. Bam! End of organization.

Mailman is a popular list server with a web-based self-service interface for users. It has many fine features, none of which are a way to back up your actual membership list (to say nothing of your archives and config files) from the web interface.

Since the vast majority of Mailman list owners/moderators are apparently customers running their lists on Mailman servers operated by web hosting companies for their customers, the vast majority of Mailman list owners/moderators do not have command-line access to the Mailman install running their list and they have no way to back up their data, save asking their hosting company to do that for them (manually!)...

Or this.

The one thing you can back up is the list of email addresses of a list and the associated personal names, and the one way to do it is through the email interface.

Manually, this is simple enough. Email [$listname]-request@domain.tld with "who $adminpassword" in the body of the message. The list will be emailed back to whatever address you sent it from. Lovely.

What follows is a description of my automated system for firing off such an email every night, using nmh, procmail, and cron.

cut for length )

Profile

cs_hackerary: (Default)
Codeswitcher's Hackerary

March 2022

S M T W T F S
  12345
6 789101112
13141516171819
20212223242526
2728293031  

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 01:40 am
Powered by Dreamwidth Studios