Re: How do I set the time zone from which mutt sends email?
On 10Jul2014 10:11, Mark H. Wood mw...@iupui.edu wrote: On Wed, Jul 09, 2014 at 08:02:53PM -0400, Jon LaBadie wrote: Emperical test, I'm in the Eastern US (EDT -4:00) I sent myself a message on another system using an altered TZ variable. TZ=PST8PDT mutt j...@mums.jgcomp.com I'm old fashioned, so I used the old style TZ settings for Western US. The header Date: showed the PDT date/time. The first Received: header showed the local system received it using the actual local time (EDT). Thank you for testing and reporting. I would say that that is just as it should be. It *may* be possible to have your local timezone forwarded automatically with your remote connection. For example: if you set TZ in your local environment, OpenSSH will try to set it in the remote shell process. The remote sshd would have to be configured to permit this. (See SendEnv in ssh_config(5) and AcceptEnv in sshd_config(5), as well as ssh(1), for more details, IF you use OpenSSH.) No matter what you use to connect, this will likely require cooperation from the remote sysadmin. Provided you can run a remote command you should be good: ssh -t remotehost env TZ=$TZ mutt -f blah blah ... Cheers, -- Do you even know anything about perl? - AC replying to Tom Christiansen post
Re: How do I set the time zone from which mutt sends email?
On Wed, Jul 09, 2014 at 08:02:53PM -0400, Jon LaBadie wrote: Emperical test, I'm in the Eastern US (EDT -4:00) I sent myself a message on another system using an altered TZ variable. TZ=PST8PDT mutt j...@mums.jgcomp.com I'm old fashioned, so I used the old style TZ settings for Western US. The header Date: showed the PDT date/time. The first Received: header showed the local system received it using the actual local time (EDT). Thank you for testing and reporting. I would say that that is just as it should be. It *may* be possible to have your local timezone forwarded automatically with your remote connection. For example: if you set TZ in your local environment, OpenSSH will try to set it in the remote shell process. The remote sshd would have to be configured to permit this. (See SendEnv in ssh_config(5) and AcceptEnv in sshd_config(5), as well as ssh(1), for more details, IF you use OpenSSH.) No matter what you use to connect, this will likely require cooperation from the remote sysadmin. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Machines should not be friendly. Machines should be obedient. signature.asc Description: Digital signature
Re: How do I set the time zone from which mutt sends email?
Have you tried the TZ env variable? -- Edward
Re: How do I set the time zone from which mutt sends email?
On Wed, Jul 09, 2014 at 02:48:07AM +, Dave Kuhlman wrote: My email server is in a different timezone from where I am. How do I tell mutt to use my local timezone when sending an email? And, how do I tell mutt what my local timezone is? You don't... your system does that via its time configuration. So as long as your system's time (and timezone) are configured properly Mutt is already using it. I do remote login (with ssh) to my email account. So... you need to change your time zone on the mail server. If you can't do that system wide, you can set the TZ environment variable... maybe. No one really does this anymore so theoretically it should still work, but you may have trouble finding documentation to give you the right setting for your particular time zone. I looked at the mutt documentation on configuration and I also did several Web searches, but I could not find this. You won't, because this isn't really something Mutt does... As with many things, Mutt tries to let the peice of software that specializes in managing a given function do its job, and in this case that's your OS. -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpHvhHuTZxiJ.pgp Description: PGP signature
Re: How do I set the time zone from which mutt sends email?
Edward Toroshchin edward.hades at gmail.com writes: Have you tried the TZ env variable? Thanks to both Derek Martin and Edward for this suggestion. I set my TZ variable as follows (I'm in California, US): export TZ=US/Pacific That seems to do what I want. Now when I send an email, it has the time at which I wrote and sent it in California. I'll have to remember to change that when I travel to a different timezone, of course. FYI, on my mail server's machine (GNU/Linux), the list of timezone names is the directories and file names under: /usr/share/zoneinfo/ Dave
Re: How do I set the time zone from which mutt sends email?
On 2014-07-09, Derek Martin inva...@pizzashack.org wrote: On Wed, Jul 09, 2014 at 02:48:07AM +, Dave Kuhlman wrote: My email server is in a different timezone from where I am. How do I tell mutt to use my local timezone when sending an email? And, how do I tell mutt what my local timezone is? You don't... your system does that via its time configuration. You're assuming that the system's timezone and his local timezone are the same. That's not always true. Some of the machines on which I sometimes use mutt are in the US/Eastern zone, but my local timezone is US/Central. [When I'm using thse machines, I generally don't bother trying to change the timezone.] So as long as your system's time (and timezone) are configured properly Mutt is already using it. He doesn't want to use the system's timezone. He wants to use his local timezone. Changing the TZ environment variable to match his local timezone should work (modulo possibly broken libraries that don't handle the case where a user's timezone and the system's timezone are different). -- Grant Edwards grant.b.edwardsYow! This ASEXUAL PIG at really BOILS my BLOOD gmail.com... He's so ... so ... URGENT!!
Re: How do I set the time zone from which mutt sends email?
On Wed, Jul 09, 2014 at 06:33:40PM +, Grant Edwards wrote: On 2014-07-09, Derek Martin inva...@pizzashack.org wrote: On Wed, Jul 09, 2014 at 02:48:07AM +, Dave Kuhlman wrote: My email server is in a different timezone from where I am. How do I tell mutt to use my local timezone when sending an email? And, how do I tell mutt what my local timezone is? You don't... your system does that via its time configuration. You're assuming that the system's timezone and his local timezone are the same. At no point in my post did I assume any such thing. Changing the TZ environment variable to match his local timezone should work ...which would be why I said exactly that in my reply. Thanks for your post! -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpTmj7Ku9xRx.pgp Description: PGP signature
Re: How do I set the time zone from which mutt sends email?
On 2014-07-09, Derek Martin inva...@pizzashack.org wrote: On Wed, Jul 09, 2014 at 06:33:40PM +, Grant Edwards wrote: On 2014-07-09, Derek Martin inva...@pizzashack.org wrote: On Wed, Jul 09, 2014 at 02:48:07AM +, Dave Kuhlman wrote: My email server is in a different timezone from where I am. How do I tell mutt to use my local timezone when sending an email? And, how do I tell mutt what my local timezone is? You don't... your system does that via its time configuration. You're assuming that the system's timezone and his local timezone are the same. At no point in my post did I assume any such thing. The OP said he wanted mutt to use his local timezone. You replied that the system does that via its time configuration. That can only be true if the user's local timezone is the same as the system's timezone, right? -- Grant Edwards grant.b.edwardsYow! ! Up ahead! It's a at DONUT HUT!! gmail.com
Re: How do I set the time zone from which mutt sends email?
On Wed, Jul 09, 2014 at 09:35:59PM +, Grant Edwards wrote: On 2014-07-09, Derek Martin inva...@pizzashack.org wrote: On Wed, Jul 09, 2014 at 06:33:40PM +, Grant Edwards wrote: On 2014-07-09, Derek Martin inva...@pizzashack.org wrote: On Wed, Jul 09, 2014 at 02:48:07AM +, Dave Kuhlman wrote: My email server is in a different timezone from where I am. How do I tell mutt to use my local timezone when sending an email? And, how do I tell mutt what my local timezone is? You don't... your system does that via its time configuration. You're assuming that the system's timezone and his local timezone are the same. At no point in my post did I assume any such thing. The OP said he wanted mutt to use his local timezone. To be precise, he asked, HOW DO I TELL MUTT to use my local time zone when sending an email? [emph. mine.] I quite correctly replied that you don't. Mutt does not provide a way to tell it what time zone to use; it relies on what the OS tells it the user is using, by whatever means the user configures that. What the OS tells it can not be overridden in any way except by making the OS tell it something else--i.e. by changing the system configuration. You replied that the system does that via its time configuration. That can only be true if the user's local timezone is the same as the system's timezone, right? Close, but no, that's not precisely correct: It can only be true if the user's local time zone is the same as the system's CONFIGURED time zone, irrespective of where the system actually is geographically located (which would be what its time zone implies), or what its DEFAULT is (a possible alternative interpretation of its time zone). You are conflating system defaults and system configuration as one. The latter is a superset of the former. Certainly, the system administrator provides a wide variety of system-wide defaults at system install time, and then generally any subsystem of the system which is meant to be user-configurable (like your time zone, your language configuration, your executable search path, etc.) is further configured via environment variables, e.g. TZ. The subsystems of the system which care about those things universally (barring bugs) check the value of those variables. Thus the values of such variables are part of the system configuration, in addition to any system-wide defaults provided by the administrator. And now for something completely different... -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpuxCk4lB1eu.pgp Description: PGP signature
Re: How do I set the time zone from which mutt sends email?
Emperical test, I'm in the Eastern US (EDT -4:00) I sent myself a message on another system using an altered TZ variable. TZ=PST8PDT mutt j...@mums.jgcomp.com I'm old fashioned, so I used the old style TZ settings for Western US. The header Date: showed the PDT date/time. The first Received: header showed the local system received it using the actual local time (EDT). So if just having the message Date: show your local time when logged in from afar, set and export TZ appropriately. Jon -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (609) 477-8330 (C)