aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out --smtp list from bouncing. Sunil reports that this may require AUTH ↵Matthias Andree2007-02-241-31/+3
| | | | | | or other precautions, as it's relaying to the outside. svn path=/branches/BRANCH_6-3/; revision=5042
* Try --smtp list when bouncing. Reported by Christian Kurz, Debian Bug #150137.Matthias Andree2007-02-211-3/+31
| | | | svn path=/branches/BRANCH_6-3/; revision=5041
* Remove excess no-op strcpy() after strdup() found by Andreas Krennmair.Matthias Andree2006-12-121-1/+0
| | | | svn path=/branches/BRANCH_6-3/; revision=4989
* Fix regression from 6.3.4 that crashes fetchmail --mda FOO when encounteringMatthias Andree2006-11-141-5/+5
| | | | | | | malformed message. Report by Neil Hoggart (also closes BerliOS bugs #9364, #9412, #9449). svn path=/branches/BRANCH_6-3/; revision=4940
* Freeaddrinfo() fix for Uli Zappe's bug.Matthias Andree2006-08-071-3/+3
| | | | | | This might fix Debian Bug#294547 and Bug#377135. svn path=/branches/BRANCH_6-3/; revision=4880
* Improve sink error detection and reporting.Matthias Andree2006-08-061-14/+28
| | | | svn path=/branches/BRANCH_6-3/; revision=4878
* set no bouncemail now also prevents 'General SMTP/ESMTP error.' bounces.Matthias Andree2006-04-041-1/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=4780
* More warning fixes (from FreeBSD 6.1).Matthias Andree2006-03-251-1/+1
| | | | svn path=/branches/BRANCH_6-3/; revision=4753
* Further cleanups to compile with C++ compiler.Matthias Andree2006-03-151-2/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=4744
* Fix more compiler warnings.Matthias Andree2006-03-141-1/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=4736
* Yet another bogus free() to be fixed.Matthias Andree2006-01-191-1/+1
| | | | svn path=/branches/BRANCH_6-3/; revision=4655
* Fix segfault or bus error after bouncing a message. This bug was Matthias Andree2006-01-191-2/+7
| | | | | | | introduced into 6.3.0 when removing alloca(); it caused fetchmail to free random memory. Reported by Nathaniel W. Turner, Debian Bug#348747. svn path=/branches/BRANCH_6-3/; revision=4652
* * SMTP/LMTP cleanup to fix these two bugs:Matthias Andree2005-12-201-40/+41
| | | | | | | | | - switch back to SMTP after having tried LMTP hosts (multiple smtphost hosts) - switch back to LMTP after sending a bounce. The patch removes the global state variable that was the root of this problem. Patch by Sunil Shetye. svn path=/branches/BRANCH_6-3/; revision=4581
* Do not trash destination domain if multiple messages are forwarded into theMatthias Andree2005-12-131-32/+31
| | | | | | same SMTP/LMTP connection. Reported by Joachim Feise, Berlios Bug #5849. svn path=/branches/BRANCH_6-3/; revision=4547
* Sunil Shetye fixed these problems in a patch posted to fetchmail-devel:Matthias Andree2005-11-141-56/+43
| | | | | | | | | | | | | | | | | | | | | | | | | 1. parsed_host is not freed in some cases. This happens when the first smtp server is down in this setup: poll mailserver ... smtphost "smtpserver1" "smtpserver2" ... 2. parsed_host is being initialized for UNIX socket also. For UNIX socket, parsed_host should be NULL. 3. If EHLO fails on a UNIX socket, it tries HELO on a network socket! 4. ctl->destaddr is allocated memory in two cases. This memory is never freed. 5. ctl->destaddr was being assigned in a very convoluted manner. Since, parsed_host is already set correctly now, it can be used directly. svn path=/trunk/; revision=4443
* Use new host_fqdn() interface.Matthias Andree2005-10-301-1/+4
| | | | svn path=/trunk/; revision=4382
* Rearrange #include directives in an attempt to fix BerliOS Bug #4725,Matthias Andree2005-09-191-2/+2
| | | | | | Darwin 7.9 build fails in resource.h with ru_utime/ru_stime incomplete types. svn path=/trunk/; revision=4296
* Write RFC-compliant BSMTP envelopes. Reported by Nico Golde.Matthias Andree2005-08-161-3/+8
| | | | svn path=/trunk/; revision=4237
* Remove port/service dualism and make everything a service.Matthias Andree2005-08-021-8/+0
| | | | svn path=/trunk/; revision=4219
* Get rid of alloca() in fetchmail.Matthias Andree2005-07-311-33/+46
| | | | svn path=/trunk/; revision=4209
* INCOMPATIBLE: DROP --netsec/-T option, NET_SECURITY macro - the required ↵Matthias Andree2005-07-301-3/+3
| | | | | | library is no longer available. svn path=/trunk/; revision=4192
* strcpy -> strlcpy, strcat -> strlcatMatthias Andree2005-07-301-7/+8
| | | | | | Add a few comments. svn path=/trunk/; revision=4187
* Add From: header to warning emails. Debian Bug#244828.Matthias Andree2005-07-231-0/+2
| | | | svn path=/trunk/; revision=4169
* Really fix Debian bug #207919 (junk in Received: header when smtphost set).Matthias Andree2005-07-201-2/+1
| | | | | | | The 6.2.5 NEWS file hat errantly stated Gregan's patch had fixed Debian bug #207919 when it had fixed #212484 (workaround dbmail length overflow) instead. svn path=/trunk/; revision=4129
* Nalin Dahyabhai's fix for sink.c/transact.c to reserve sufficient Matthias Andree2005-07-031-1/+1
| | | | | | | space for \r\n trailers in snprintf calls. Sent by Miloslav Trmac, possibly fixing Red Hat bug #114470. svn path=/trunk/; revision=4071
* Cesar Eduardo Barros's fix to avoid double @ when username has @ and envelopeMatthias Andree2005-06-291-1/+5
| | | | | | sender is null. Debian bug #272289. svn path=/trunk/; revision=4061
* Fix typo, LSMTP -> LMTP.Matthias Andree2005-04-241-1/+1
| | | | svn path=/trunk/; revision=4032
* Misc. sprintf and pid_t fixes.Matthias Andree2004-11-101-2/+2
| | | | svn path=/trunk/; revision=4000
* Clean up the horrible HAVE_[V]SNPRINTF mess, use Trio on systems that lackMatthias Andree2004-11-101-52/+7
| | | | | | real snprintf or vsnprintf. svn path=/trunk/; revision=3996
* Use iana_charset rather than calling nl_langinfo(CODESET).Matthias Andree2004-11-071-1/+1
| | | | svn path=/trunk/; revision=3981
* Let stuff_warning do the RFC-2047 encoding.Matthias Andree2004-10-201-9/+13
| | | | | | Change stuff_warning interface to take a rfc2047 charset info parameter. svn path=/trunk/; revision=3968
* Fix miscellaneous warnings.Matthias Andree2004-10-201-0/+1
| | | | svn path=/trunk/; revision=3953
* Add MIME headers to specify body encoding for mail warnings.Matthias Andree2004-10-141-1/+6
| | | | svn path=/trunk/; revision=3943
* Merge Holger Mauermann's bounce patch, 2003-10-23-6.2.5-mauermann-bounce.diffMatthias Andree2004-10-121-10/+33
| | | | | | | | | | | | | | | | | | | 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
* Remove space after "MAIL FROM:" (patch from Phil Endecott)Rob Funk2004-07-211-1/+1
| | | | svn path=/trunk/; revision=3925
* Cast arguments of is*() ctype.h functions to unsigned char to be 8-bit safe.Matthias Andree2004-06-191-4/+4
| | | | svn path=/trunk/; revision=3903
* Sunil Shetye's fix for SSL configuration.Eric S. Raymond2004-01-131-5/+2
| | | | svn path=/trunk/; revision=3875
* Prevent a SIGSEGV that happens whenEric S. Raymond2003-10-101-3/+6
| | | | | | | | a. daemon mode is active b. size limits are active c. -N is NOT being used svn path=/trunk/; revision=3857
* Close a Debian bug.Eric S. Raymond2003-10-101-1/+33
| | | | svn path=/trunk/; revision=3840
* Ready to ship.Eric S. Raymond2003-08-061-5/+25
| | | | svn path=/trunk/; revision=3831
* First round ofmlong-delayed bug fixes.Eric S. Raymond2003-07-171-4/+9
| | | | svn path=/trunk/; revision=3814
* Guard some buffers.Eric S. Raymond2003-03-011-1/+2
| | | | svn path=/trunk/; revision=3804
* Sunil changed the sanitization logic.Eric S. Raymond2003-01-171-10/+20
| | | | svn path=/trunk/; revision=3790
* Ready to ship 6-2-0.Eric S. Raymond2002-12-131-11/+1
| | | | svn path=/trunk/; revision=3776
* Ready to ship stable.Eric S. Raymond2002-10-311-7/+39
| | | | svn path=/trunk/; revision=3763
* Sunil Shetye's minor fixes.Eric S. Raymond2002-10-311-2/+5
| | | | svn path=/trunk/; revision=3762
* i18n fix.Eric S. Raymond2002-10-181-1/+1
| | | | svn path=/trunk/; revision=3748
* Detect and rewrite local paths.Eric S. Raymond2002-10-181-1/+1
| | | | svn path=/trunk/; revision=3743
* Better error return reporting from the MDA.Eric S. Raymond2002-09-131-2/+19
| | | | svn path=/trunk/; revision=3713
* Sunil Shetye's latest cleanup patch.Eric S. Raymond2002-09-131-46/+46
| | | | svn path=/trunk/; revision=3712