Commit 25b96def authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Add /PRINT for DIR and clean up RESPOND help

parent 9b3580d7
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -796,22 +796,11 @@ executed in place of MAIL, and the parameters passed to it are the
username and subject of the message.`,
		Action: ActionRespond,
		Flags: dclish.Flags{
			"/CC": {
				Description: `/CC=user[s]
  Specifies additional users that should receive the reply.`,
				OptArg: true,
			},
			"/EXTRACT": {
				Description: `  Specifies that the text of the message should be included in the reply
  mail message. This is the default - suppress with /NOEXTRACT. The text
  of the message is indented with >  at the beginning of each line. This
  can be suppressed with /NOINDENT.`,
			},
			"/LIST": {
				Description: `  Specifies that  the reply should also  be sent to the  network mailing
  list  associated with  the  folder. The  mailing  list address  should
  be  stored  in  the  folder  description.  See  CREATE/DESCRIPTION  or
  MODIFY/DESCRIPTION for more informaton.`,
			},
			"/INDENT": {
				Description: `  See /EXTRACT for information on this qualifier.
+11 −1
Original line number Diff line number Diff line
@@ -168,7 +168,17 @@ func ActionDirectory(cmd *dclish.Command) error {
	for _, msg := range msgs {
		buf.WriteString(fmt.Sprint(msg.OneLine(showExpiration)))
	}
	if cmd.Flags["/PRINT"].Value == "true" {
		fmt.Print(buf.String())
		print("\033[5i")
		for _, msg := range msgs {
			fmt.Print(msg.String())
			print("\n\v")
		}
		print("\033[4i")
	} else {
		pager.Pager(buf.String())
	}

	return nil
}