Missing LOGNAME

Alessandro Vesely <[email protected]> Wed, 26 Feb 2025 17:29:13 +0100
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Hi,

I've been trying to insert Resent-* fields before forwarding.  A simple shell 
script:

# /bin/sh
# print resent-* header fields.
# usage: resent.sh from to
printf "Resent-Date: $(date --rfc-email)\n"
if [ -n "$1" ]; then
	printf "Resent-From: $1\n"
fi
if [ -n "$2" ]; then
	printf "Resent-To: $2\n"
fi
cat -

In .mailfilter I have:
#  import LOGNAME
    xfilter "resent.sh \"$LOGNAME\" [email protected]"

(where the recipient is to be changed in each forwarding recipe).

I tried with and without import.  I never get Resent-From:.  I added the 
following to resent.sh:

echo "$HOME $LOCKSLEEP $DEFAULT $LOGNAME" >> /tmp/foo

All values are printed, except LOGNAME.  Should I hardcode it?


Best
Ale
-- 










_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users