aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/maildaemon
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-10-12 21:37:38 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-10-12 21:37:38 +0000
commitb4adf69a38a9ac0393763cb3f3b3f4a7faea7def (patch)
treec85ea14be473deb1daf193706ae2bc1e94a9ddad /contrib/maildaemon
parent05719c0970f03711c66c013ba53f54b097882e15 (diff)
downloadfetchmail-b4adf69a38a9ac0393763cb3f3b3f4a7faea7def.tar.gz
fetchmail-b4adf69a38a9ac0393763cb3f3b3f4a7faea7def.tar.bz2
fetchmail-b4adf69a38a9ac0393763cb3f3b3f4a7faea7def.zip
Merge Holger Mauermann's bounce patch, 2003-10-23-6.2.5-mauermann-bounce.diff
Holger Mauermann writes: The attached patch for fetchmail-6.2.5 sends IMHO much better bounce messages. Changes: - The SMTP command "MAIL FROM: FETCHMAIL-DAEMON@..." is changed to "MAIL FROM: <>" as required by RFC 2821 - Removed Return-path: header, as required by RFC 2821 - Changed From:, added Subject: header - changed the human readable part to be more descriptive and detailed svn path=/trunk/; revision=3939
Diffstat (limited to 'contrib/maildaemon')
0 files changed, 0 insertions, 0 deletions
: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#------------------------------------------------------------------------------
#
#               GetMail - Fetchmail Daemon Controlling Script
#
#             1999 by Thomas Nesges <ThomaNesges@TNT-Computer.de>
#
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# GetMail starts/stops fetchmail in daemon mode and logs all actions to
# /var/log/fetchmail.log. Output is done by tailing the logfile.
#
# Sendmail/Fetchmail has to be installed, and your fetchmailrc has to be
# correctly configured. The option 'got' and 'goth' require a correctly
# installed GotMail. If you didn't install it in /usr/local/gotmail you 
# must change the path given.
#
# If you have any changes/corrections in the script, please send me email.
#------------------------------------------------------------------------------

#!/bin/sh

case "$1" in
  start)
   sendmail -q
   date +%d.%m.%Y\ %H:%M:%S\ fetchmail\ started >> /var/log/fetchmail.log
   fetchmail -d 1 -L /var/log/fetchmail.log &
   tail -f /var/log/fetchmail.log
   ;;
  stop)
   fetchmail -q
   date +%d.%m.%Y\ %H:%M:%S\ fetchmail\ stoped >> /var/log/fetchmail.log
   ;;
  fetch)
   date +%d.%m.%Y\ %H:%M:%S\ fetchmail\ started >> /var/log/fetchmail.log
   fetchmail -d 1 -L /var/log/fetchmail.log &
   tail -f /var/log/fetchmail.log
   ;;
  status)
   tail -f /var/log/fetchmail.log
   ;;
  got)
   /usr/local/gotmail/gotmail
   ;;
  goth)
   /usr/local/gotmail/gotmail html
   ;;
  send)
   /sendmail -q
   ;;
  clear)
   fetchmail -q
   rm /var/log/fetchmail.log
   ;;
  -v)
   echo 'getmail version: 0.0.1'
   ;;
  *)
   echo
   echo 'Usage: getmail option'
   echo
   echo 'options:'
   echo ' clear  - stops fetchmail and kills the logfile' 
   echo ' fetch  - starts fetchmail'
   echo ' got    - starts gotmail'
   echo ' goth   - starts gotmail html'
   echo ' send   - sends all mail from the mailqueue'
   echo ' status - tails the logfile'
   echo ' start  - starts fetchmail and tails the logfile'
   echo ' stop   - stops fetchmail'
   echo ' -v     - print the version number'
   echo	
esac