Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mail: trim leading spaces from command input #800

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bin/mail
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ use File::Temp;
use Getopt::Std;
use vars qw($VERSION $ROWS $BUFFERL $box);

$VERSION="0.02";
$VERSION="0.03";
$ROWS=23; # Screen Dimensions. Yeah, this sucks.
$COLS=80;
$BUFFERL=2; # Lines needed for "fluff"
Expand Down Expand Up @@ -980,6 +980,7 @@ CMDS: {
print "> ";
$cmd=<STDIN>;
chomp $cmd;
$cmd =~ s/\A\s+//;
}
GOTONE: {
if ($cmd=~/^[a-zA-Z]+/) {
Expand Down Expand Up @@ -1202,10 +1203,10 @@ B<u> is an alias for this command.
Mark as unread any specified mail messages.
B<U> is an alias for this command.

=item visal msg
=item visual msg

Invoke the visual editor (specified in $VISUAL, or /usr/bin/vi) on the
indicated messages. Re-read those messages in afer the editing session.
indicated messages. Re-read those messages in after the editing session.
B<v> is an alias for this command.

=item write msg path
Expand Down
Loading