aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-15 03:45:02 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-15 03:45:02 +0000
commit0b5a17e5c0412edc6f59dc59ab7558a213d94a1d (patch)
tree3c33e4b3fa6347c0a619d0efc8c13d9b1c179a1b /main.c
parent[w3m-dev 02833] ssl_forbid_method in SSL Setting (diff)
downloadw3m-0b5a17e5c0412edc6f59dc59ab7558a213d94a1d.tar.gz
w3m-0b5a17e5c0412edc6f59dc59ab7558a213d94a1d.zip
[w3m-dev 02834] mailto: use external program
Diffstat (limited to '')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index 7e356a4..bac5a9a 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.56 2002/01/10 15:39:21 ukai Exp $ */
+/* $Id: main.c,v 1.57 2002/01/15 03:45:02 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -2602,6 +2602,7 @@ followA(void)
return;
}
}
+#ifndef USE_W3MMAILER
if (!strncasecmp(a->url, "mailto:", 7)) {
/* invoke external mailer */
fmTerm();
@@ -2611,6 +2612,7 @@ followA(void)
displayBuffer(Currentbuf, B_FORCE_REDRAW);
return;
}
+#endif
#ifdef USE_NNTP
else if (!strncasecmp(a->url, "news:", 5) && strchr(a->url, '@') == NULL) {
/* news:newsgroup is not supported */
@@ -3539,6 +3541,7 @@ cmd_loadURL(char *url, ParsedURL *current)
{
Buffer *buf;
+#ifndef USE_W3MMAILER
if (!strncasecmp(url, "mailto:", 7)) {
/* invoke external mailer */
fmTerm();
@@ -3548,8 +3551,9 @@ cmd_loadURL(char *url, ParsedURL *current)
displayBuffer(Currentbuf, B_FORCE_REDRAW);
return;
}
+#endif
#ifdef USE_NNTP
- else if (!strncasecmp(url, "news:", 5) && strchr(url, '@') == NULL) {
+ if (!strncasecmp(url, "news:", 5) && strchr(url, '@') == NULL) {
/* news:newsgroup is not supported */
disp_err_message("news:newsgroup_name is not supported", TRUE);
return;