Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Send-email/TXR/send-email.txr
Normal file
23
Task/Send-email/TXR/send-email.txr
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/txr
|
||||
@(next :args)
|
||||
@(cases)
|
||||
@TO
|
||||
@SUBJ
|
||||
@ (maybe)
|
||||
@CC
|
||||
@ (or)
|
||||
@ (bind CC "")
|
||||
@ (end)
|
||||
@(or)
|
||||
@ (throw error "must specify at least To and Subject")
|
||||
@(end)
|
||||
@(next *stdin*)
|
||||
@(collect)
|
||||
@BODY
|
||||
@(end)
|
||||
@(output (open-command `mail -s "@SUBJ" -a CC: "@CC" "@TO"` "w"))
|
||||
@(repeat)
|
||||
@BODY
|
||||
@(end)
|
||||
.
|
||||
@(end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue