9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] upas/vf: install %τ format specifier
@ 2021-02-07  9:22 Michael Forney
  2021-02-07 16:04 ` [9front] upas/vf: install % " ori
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Forney @ 2021-02-07  9:22 UTC (permalink / raw)
  To: 9front

upas/vf was converted to use tmdate, but the formatter was never
installed.  This caused it to send attachments to validateattachment
with header `From virusfilter %τ%`, which always failed since upas/fs
would just skip over the message.

diff 9f73daae4c186334de5c9ee5b6bb0d9aa598f9bd 776cb37fd6894d9e73b252d60f386d3cfb7c876c
--- a/sys/src/cmd/upas/vf/vf.c	Sat Feb  6 04:50:06 2021
+++ b/sys/src/cmd/upas/vf/vf.c	Sun Feb  7 01:22:23 2021
@@ -140,6 +140,8 @@
 	if(argc)
 		usage();
 
+	tmfmtinstall();
+
 	Binit(&in, 0, OREAD);
 	Binit(&out, 1, OWRITE);
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] upas/vf: install % format specifier
  2021-02-07  9:22 [9front] upas/vf: install %τ format specifier Michael Forney
@ 2021-02-07 16:04 ` ori
  0 siblings, 0 replies; 2+ messages in thread
From: ori @ 2021-02-07 16:04 UTC (permalink / raw)
  To: 9front

Quoth Michael Forney <mforney@mforney.org>:
> upas/vf was converted to use tmdate, but the formatter was never
> installed.  This caused it to send attachments to validateattachment
> with header `From virusfilter %τ%`, which always failed since upas/fs
> would just skip over the message.
> 
> diff 9f73daae4c186334de5c9ee5b6bb0d9aa598f9bd 776cb37fd6894d9e73b252d60f386d3cfb7c876c
> --- a/sys/src/cmd/upas/vf/vf.c	Sat Feb  6 04:50:06 2021
> +++ b/sys/src/cmd/upas/vf/vf.c	Sun Feb  7 01:22:23 2021
> @@ -140,6 +140,8 @@
>  	if(argc)
>  		usage();
>  
> +	tmfmtinstall();
> +
>  	Binit(&in, 0, OREAD);
>  	Binit(&out, 1, OWRITE);
>  
> 
Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-09  5:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07  9:22 [9front] upas/vf: install %τ format specifier Michael Forney
2021-02-07 16:04 ` [9front] upas/vf: install % " ori

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git