Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f21fd984
...
f21fd984dd809048d8d8d512276dea46c04b03a6
authored
2001-07-03 11:45:27 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
check for "dot" variable. Implemented "~.","appenddeadletter"
1 parent
c1cf18d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
mail/send.c
mail/send.c
View file @
f21fd98
...
...
@@ -126,11 +126,11 @@ mail_send0 (struct send_environ *env, int save_to)
}
else
{
if
(
buf
)
free
(
buf
);
if
(
++
int_cnt
==
2
)
break
;
util_error
(
"(Interrupt -- one more to kill letter)"
);
if
(
buf
)
free
(
buf
);
}
continue
;
}
...
...
@@ -139,7 +139,9 @@ mail_send0 (struct send_environ *env, int save_to)
{
if
(
util_find_env
(
"ignoreeof"
)
->
set
)
{
util_error
(
"Use
\"
.
\"
to terminate letter."
);
util_error
(
util_find_env
(
"dot"
)
->
set
?
"Use
\"
.
\"
to terminate letter."
:
"Use
\"
~.
\"
to terminate letter."
);
continue
;
}
else
...
...
@@ -147,11 +149,15 @@ mail_send0 (struct send_environ *env, int save_to)
}
int_cnt
=
0
;
if
(
buf
[
0
]
==
(
util_find_env
(
"escape"
))
->
value
[
0
])
if
(
buf
[
0
]
==
'.'
&&
util_find_env
(
"dot"
)
->
set
)
done
=
1
;
else
if
(
buf
[
0
]
==
(
util_find_env
(
"escape"
))
->
value
[
0
])
{
if
(
buf
[
1
]
==
buf
[
0
])
fprintf
(
env
->
file
,
"%s
\n
"
,
buf
+
1
);
else
if
(
buf
[
1
]
==
'.'
)
done
=
1
;
else
{
int
argc
;
...
...
@@ -189,7 +195,9 @@ mail_send0 (struct send_environ *env, int save_to)
{
if
(
util_find_env
(
"save"
)
->
set
)
{
FILE
*
fp
=
fopen
(
getenv
(
"DEAD"
),
"a"
);
FILE
*
fp
=
fopen
(
getenv
(
"DEAD"
),
util_find_env
(
"appenddeadletter"
)
->
set
?
"a"
:
"w"
);
if
(
!
fp
)
{
...
...
Please
register
or
sign in
to post a comment