Skip to content
Snippets Groups Projects
Commit 05104f13 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

When a message has been forwarded, invalidate the "to" ext/net ptrs

The convenience pointers to_ext and to_net need to be invalidated (nullified) if we are going to allow forwarding from local email boxes to network mail and keep all the original message header fields in tact.

The "Forwarded" field must now be added *before* any new recipient information (local user extension or network address of the forwarding destination).

This is part of the solution to request #83, #108, and #141.
parent bd17a29f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
/* Synchronet message base (SMB) library routines */
/* $Id: smblib.c,v 1.209 2020/05/07 19:30:22 rswindell Exp $ */
// vi: tabstop=4
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
......@@ -16,21 +13,9 @@
* See the GNU Lesser General Public License for more details: lgpl.txt or *
* http://www.fsf.org/copyleft/lesser.html *
* *
* Anonymous FTP access to the most recent released source is available at *
* ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net *
* *
* Anonymous CVS access to the development source and modification history *
* is available at cvs.synchro.net:/cvsroot/sbbs, example: *
* cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs login *
* (just hit return, no password is necessary) *
* cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs checkout src *
* *
* For Synchronet coding style and modification guidelines, see *
* http://www.synchro.net/source.html *
* *
* You are encouraged to submit any modifications (preferably in Unix diff *
* format) via e-mail to mods@synchro.net *
* *
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
......@@ -733,7 +718,9 @@ static void set_convenience_ptr(smbmsg_t* msg, uint16_t hfield_type, void* hfiel
break;
}
case FORWARDED: /* fall through */
msg->forwarded=TRUE;
msg->forwarded = TRUE;
msg->to_ext = NULL;
memset(&msg->to_net, 0, sizeof(msg->to_net));
break;
case SENDERAGENT:
if(!msg->forwarded)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment