* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) The Exim Maintainers 2020 - 2022 */
+/* Copyright (c) The Exim Maintainers 2020 - 2023 */
/* Copyright (c) University of Cambridge 1995 - 2020 */
/* See the file NOTICE for conditions of use and distribution. */
/* SPDX-License-Identifier: GPL-2.0-or-later */
routers that generated them. */
typedef struct recipient_item {
- uschar *address; /* the recipient address */
+ const uschar *address; /* the recipient address */
int pno; /* parent number for "one_time" alias, or -1 */
- uschar *errors_to; /* the errors_to address or NULL */
+ const uschar *errors_to; /* the errors_to address or NULL */
uschar *orcpt; /* DSN orcpt */
int dsn_flags; /* DSN flags */
#ifdef EXPERIMENTAL_BRIGHTMAIL
extern uschar *received_protocol; /* Name of incoming protocol */
extern int recipients_count; /* Number of recipients */
extern recipient_item *recipients_list;/* List of recipient addresses */
-extern unsigned char *sender_address; /* Sender address */
+extern const unsigned char *sender_address; /* Sender address */
extern uschar *sender_host_address; /* IP address of sender, as chars */
extern uschar *sender_host_authenticated; /* Name of authentication mechanism */
extern uschar *sender_host_name; /* Host name from lookup */
extern int lss_match_local_part(uschar *, uschar *, BOOL);
extern int lss_match_address(uschar *, uschar *, BOOL);
extern int lss_match_host(uschar *, uschar *, uschar *);
-extern void receive_add_recipient(uschar *, int);
-extern BOOL receive_remove_recipient(uschar *);
+extern void receive_add_recipient(const uschar *, int);
+extern BOOL receive_remove_recipient(const uschar *);
extern uschar *rfc2047_decode(uschar *, BOOL, const uschar *, int, int *,
uschar **);
extern int smtp_fflush(void);