Re: Missing LOGNAME
Alessandro Vesely <[email protected]> Thu, 27 Feb 2025 14:17:02 +0100
| Newsgroups | gmane.mail.imap.courier.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu 27/Feb/2025 01:37:31 +0100 Sam Varshavchik wrote: > 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. I see. I thought it could came from the transaction, with any extension the user name may have had. Grabbing Delivered-To is overkill, methinks. Best Ale -- _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users