Re: Missing LOGNAME

Sam Varshavchik <[email protected]> Wed, 26 Feb 2025 19:37:31 -0500
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Alessandro Vesely writes:

> 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?

If you want to, sure.

Depending on how maildrop gets invoked it will reset LOGNAME to what it  
thinks is responsible for its invocation, by looking up its real uid. If it  
getpwuid() fails, you'll get nothing. That is the most likely situation here  
-- it's being invoked under some virtual uid that does not have a username  
attached to it.

_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCZ7+zywAKCRCKYPgoojZS
4vmZAP438tITQHX7NESu3Ko7BfIW8XjrIswXL+7p+VQH3ZRNgAEAu7HJxrRphIYH
H+2fz9YZHWuaS8+rSzDYPGUCBu28FwI=
=dUM+
-----END PGP SIGNATURE-----