lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV Added mailcc restriction to Lynx 2.7


From: root
Subject: LYNX-DEV Added mailcc restriction to Lynx 2.7
Date: Tue, 15 Apr 1997 10:59:21 -0500 (CDT)

Hello, as I have added another restriction to Lynx 2.7, I thought I would
post to this developer's list, in hopes it will make it into the mainline
of Lynx.

I have added the restriction=mailcc to prevent the use of Cc: in any
mailto: URLs.  This was a problem for the guest account use of Lynx at
DANEnet (http://danenet.wicip.org).  We want to allow for mailto: to be
sent, but the Cc: would allow for more general mail to be sent.

The change was straightforward.  I did this off the 2.7 release.  Will
include the diff here:

diff -c lynx2-7/src/LYMail.c lynx2-7-dn/src/LYMail.c
*** lynx2-7/src/LYMail.c        Fri Feb 14 13:14:52 1997
--- lynx2-7-dn/src/LYMail.c     Tue Apr 15 09:38:59 1997
***************
*** 165,172 ****
      sprintf(self,"%.79s", (personal_mail_address ? 
                           personal_mail_address : ""));
      self[79] = '\0';
!     _statusline("Cc: ");
!     if ((ch = LYgetstr(self, VISIBLE, sizeof(self), NORECALL)) < 0) {
        /*
         * User cancelled via ^G. - FM
         */
--- 165,174 ----
      sprintf(self,"%.79s", (personal_mail_address ? 
                           personal_mail_address : ""));
      self[79] = '\0';
!     /*if (!no_mailcc) {*/
!     if (0) {
!       _statusline("Cc: ");
!       if ((ch = LYgetstr(self, VISIBLE, sizeof(self), NORECALL)) < 0) {
        /*
         * User cancelled via ^G. - FM
         */
***************
*** 174,179 ****
--- 176,182 ----
        sleep(InfoSecs);
        FREE(address);
        return;
+       }
      }
  
  #ifdef VMS
***************
*** 848,853 ****
--- 851,857 ----
      /*
       *  Offer a CC line.
       */
+   if (!no_mailcc) {
      addstr(ENTER_ADDRESS_FOR_CC);
      if (personal_mail_address)
        addstr(CTRL_U_TO_ERASE);
***************
*** 882,887 ****
--- 886,892 ----
        sprintf(buf,"Cc: %s\n",user_input);
        StrAllocCat(header, buf);
      }
+   }
  
      /*
       *  Terminate the header.
Only in lynx2-7-dn/src: LYMail.o
diff -c lynx2-7/src/LYMain.c lynx2-7-dn/src/LYMain.c
*** lynx2-7/src/LYMain.c        Fri Feb 14 13:57:26 1997
--- lynx2-7-dn/src/LYMain.c     Tue Apr 15 09:04:02 1997
***************
*** 219,224 ****
--- 219,225 ----
  PUBLIC BOOLEAN no_file_url = FALSE;
  PUBLIC BOOLEAN no_newspost = FALSE;
  PUBLIC BOOLEAN no_mail = FALSE;
+ PUBLIC BOOLEAN no_mailcc = FALSE;
  PUBLIC BOOLEAN no_dotfiles = NO_DOT_FILES;
  PUBLIC BOOLEAN no_useragent = FALSE;
  PUBLIC BOOLEAN no_statusline = FALSE;
***************
*** 1807,1812 ****
--- 1808,1814 ----
                printf("\
     jump            disable the 'j' (jump) command\n\
     mail            disallow mail\n\
+    mailcc          disallow mail Cc:\n\
     multibook       disallow multiple bookmark files\n\
     news_post       disallow USENET News posting.\n\
     option_save     disallow saving options in .lynxrc\n");
Only in lynx2-7-dn/src: LYMain.o
Only in lynx2-7-dn/src: LYMainLoop.o
Only in lynx2-7-dn/src: LYMap.o
Only in lynx2-7-dn/src: LYNews.o
Only in lynx2-7-dn/src: LYOptions.o
Only in lynx2-7-dn/src: LYPrint.o
Only in lynx2-7-dn/src: LYReadCFG.o
Only in lynx2-7-dn/src: LYSearch.o
Only in lynx2-7-dn/src: LYShowInfo.o
Only in lynx2-7-dn/src: LYStrings.o
Only in lynx2-7-dn/src: LYTraversal.o
Only in lynx2-7-dn/src: LYUpload.o
diff -c lynx2-7/src/LYUtils.c lynx2-7-dn/src/LYUtils.c
*** lynx2-7/src/LYUtils.c       Sun Feb  9 04:39:30 1997
--- lynx2-7-dn/src/LYUtils.c    Tue Apr 15 08:39:52 1997
***************
*** 1690,1695 ****
--- 1690,1696 ----
         "inside_news"   ,
         "outside_news"  ,
         "mail"          ,
+        "mailcc"        ,
         "dotfiles"      ,
         "useragent"     ,
  #ifdef DIRED_SUPPORT
***************
*** 1732,1737 ****
--- 1733,1739 ----
         &no_inside_news,
         &no_outside_news,
         &no_mail     ,
+        &no_mailcc   ,
         &no_dotfiles ,
         &no_useragent ,
  #ifdef DIRED_SUPPORT

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]