[BACK]Return to vacation.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / vacation

Diff for /src/usr.bin/vacation/vacation.c between version 1.19 and 1.20

version 1.19, 2003/06/03 02:56:21 version 1.20, 2003/06/10 22:20:53
Line 98 
Line 98 
 void usage(void);  void usage(void);
   
 int  int
 main(argc, argv)  main(int argc, char *argv[])
         int argc;  
         char **argv;  
 {  {
         struct passwd *pw;          struct passwd *pw;
         struct stat sb;          struct stat sb;
Line 203 
Line 201 
  *      read mail headers   *      read mail headers
  */   */
 void  void
 readheaders()  readheaders(void)
 {  {
         ALIAS *cur;          ALIAS *cur;
         char *p;          char *p;
Line 313 
Line 311 
  *      do a nice, slow, search of a string for a substring.   *      do a nice, slow, search of a string for a substring.
  */   */
 int  int
 nsearch(name, str)  nsearch(char *name, char *str)
         char *name, *str;  
 {  {
         int len;          int len;
   
Line 329 
Line 326 
  *      read the header and return if automagic/junk/bulk/list mail   *      read the header and return if automagic/junk/bulk/list mail
  */   */
 int  int
 junkmail()  junkmail(void)
 {  {
         static struct ignore {          static struct ignore {
                 char    *name;                  char    *name;
Line 379 
Line 376 
  *      use bcopy for machines with alignment restrictions   *      use bcopy for machines with alignment restrictions
  */   */
 int  int
 recent()  recent(void)
 {  {
         DBT key, data;          DBT key, data;
         time_t then, next;          time_t then, next;
Line 409 
Line 406 
  *      store the reply interval   *      store the reply interval
  */   */
 void  void
 setinterval(interval)  setinterval(time_t interval)
         time_t interval;  
 {  {
         DBT key, data;          DBT key, data;
   
Line 426 
Line 422 
  *      store that this user knows about the vacation.   *      store that this user knows about the vacation.
  */   */
 void  void
 setreply()  setreply(void)
 {  {
         DBT key, data;          DBT key, data;
         time_t now;          time_t now;
Line 444 
Line 440 
  *      exec sendmail to send the vacation file to sender   *      exec sendmail to send the vacation file to sender
  */   */
 void  void
 sendmessage(myname)  sendmessage(char *myname)
         char *myname;  
 {  {
         FILE *mfp, *sfp;          FILE *mfp, *sfp;
         int i;          int i;
Line 495 
Line 490 
 }  }
   
 void  void
 usage()  usage(void)
 {  {
         syslog(LOG_NOTICE, "uid %u: usage: vacation [-i] [-a alias] login",          syslog(LOG_NOTICE, "uid %u: usage: vacation [-i] [-a alias] login",
             getuid());              getuid());

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20