aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright.Matthias Andree2019-05-141-1/+1
|
* Document recent changes.Matthias Andree2019-05-141-4/+28
|
* Merge branch 'lanurmi/fetchmail-no-autoprobe-after-socket-fail' into HEADMatthias Andree2019-05-141-1/+1
|\
| * Do not continue autoprobing other protocols after socket errorLauri Nurmi2018-03-181-1/+1
| | | | | | | | | | | | | | pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: 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
an> Reported against 6.3.26 by minorwiping@vfemail.net when polling from imap.yandex.com and it looped on "* BYE Autologout; idle for too long" in response to a A0001 CAPABILITY request. * | Add line termination when reporting unexpected untagged * BYE contents.Matthias Andree2019-05-121-1/+1 | | * | Enable OpenSSL >= 1.0.2 native name verification.Matthias Andree2019-01-271-0/+22 | | * | Add UTF-7 to TODO.txtMatthias Andree2019-01-021-0/+1 | | * | Merge branch 'Evil2000/fetchmail-legacy_64' into legacy_64Matthias Andree2018-11-251-2/+10 |\ \ | * | Added mapping to to PS_TRANSIENT or PS_REFUSED of LMTP response.Evil20002018-11-251-2/+10 |/ / | | | | | | (patch re-indented) * | Fix potential SIGSEGV in pop3_delete.Matthias Andree2018-11-251-2/+3 | | | | | | | | Reported by Paul Kinsler. * | Set umask properly before writing the .fetchids file,Matthias Andree2018-06-242-0/+5 | | | | | | | | | | to avoid failing the security check on the next run. Reported by Fabian Raab, Debian Bug#831611. * | Add a few more files to .gitignoreMatthias Andree2018-06-241-0/+4 | | * | imap_delete(): clean up delflags[_seen] variables.Matthias Andree2018-06-211-6/+1 | | * | Bump version.Matthias Andree2018-06-211-1/+1 | | * | Permit beta builds.Matthias Andree2018-06-211-1/+1 | | * | Make compatible with a pure OpenSSL 1.1.0 API, ...Matthias Andree2018-06-062-2/+9 | | | | | | | | | | ...when deprecated functions are disabled, for instance, through -DOPENSSL_API_COMPAT=0x10100000L. * | OPIE: Fix indentation to silence GCC warnings.Matthias Andree2018-04-151-3/+3 | | * | Bump copyright.Matthias Andree2018-04-152-3/+3 | | * | Update German <de> translation.Matthias Andree2018-04-151-113/+117 | | * | OPIE: Chase to64frombits() API change.Matthias Andree2018-04-151-2/+2 | | * | Fix GCC8 format truncation warnings.Matthias Andree2018-04-141-2/+3 | | * | Fix useless GCC8 warning, strncpy->memcpy for fixed string.Matthias Andree2018-04-141-1/+1 | | * | Fix GCC8 ?: operator type promotion warning.Matthias Andree2018-04-141-2/+2 | | * | Fix indentation to silence GCC 8 warnings.Matthias Andree2018-04-142-8/+8 | | * | In-depth fix for to64frombits() BASE64 encoder buffer sizing.Matthias Andree2018-04-147-14/+20 | | * | ISO C90 ("C89") compatibility fix.Matthias Andree2018-04-141-1/+1 | | * | Abort GSSAPI authentication properly in more situations.Matthias Andree2018-04-141-3/+3 | | * | Prevent buffer overruns in do_gssauth() with long user names.Matthias Andree2018-04-142-1/+14 | | | | | | | | Reported in private by Greg Hudson. * | GSSAPI: Do not add gratuitious NUL byte to username.Matthias Andree2018-04-142-1/+4 |/ | | | Greg Hudson reported this broke Exchange 2013 authentication. * Merge branch 'bluhm/fetchmail-plugin-length' into legacy_64Matthias Andree2017-08-111-1/+3 |\ | * Add a FIXME comment.Matthias Andree2017-08-111-0/+2 | | | * Do not overrun plugin string when copying it.Alexander Bluhm2017-08-101-1/+1 |/ | | | | | | | parse_plugin() expands the % in plugin string to plugin_copy. It checks that is does not write behind the end of the destination memory, but the source length was not checked. This resulted in reading from a possibly invalid memory location which may cause a segmentation fault. Add a check for the string length of the source. * Call AM_PROG_AR to simplify LTO use.Matthias Andree2017-04-231-1/+2 | * Cast argument to quiet -Wformat warning in C89 mode.Matthias Andree2017-04-231-1/+1 | * Remove last traces of gethostbyname().Matthias Andree2017-04-227-415/+3 | * Update copyright.Matthias Andree2017-04-224-1040/+1255 | * Avoid deprecated regexps in manServer.plMatthias Andree2017-04-221-3/+3 | * Update.Matthias Andree2017-02-201-0/+3 | * Update.Matthias Andree2017-02-201-1/+2 | * Reinstate --sslcertfile documentation.Matthias Andree2017-02-201-0/+1 | | | | | | Since the addition of --nosslcertck documentation in Nov. 2015 with commit 6adcb0cc, the --sslcertfile documentation had become part of --nosslcertck. Now --sslcertfile stands in a paragraph of its own.