Article View: news.software.readers
Article #262838Re: [dialog] Set the header date to a different TIMEZONE than the machine time zone?
From: Bernd Rose
Date: Sun, 02 Sep 2018 09:06
Date: Sun, 02 Sep 2018 09:06
50 lines
3818 bytes
3818 bytes
On Sun, 2nd Sep 2018 10:26:26 +0200, R Radev wrote: > I have never been able to get the time-zone related headers modified in > OnBeforeSendingMessage without having to change the _entire_ Date header > (which isn't what I want unless that's the _only_ way to set the timezone > from inside of Dialog). [...] > I should repeat that I have zero intention to set the entire date field. > I only want to change the timezone. Nothing else. > The time and date should AUTOMATICALLY set themselves based on the TZ. The date header is already adjusted to your current OS settings when it arrives at OnBeforeSendingMessage. (With regard to 40tude Dialogs internal header processing, it is fixed and not to be looked at, again. The code inside OnBeforeSendingMessage is the last code modifying a posting inside Dialog.) So, of course, you'd have to adjust the /whole/ date entry, if you wish it to resemble a different timezone while still being consistent with the time of earlier messages in threads and with the first time a server outside your reach receives the message. > The problem is setting JUST the time zone. > I don't want to set the date. > > Of course _that_ would work to set the date manually. In OnBeforeSendingMessage you can't have one without the other. I didn't suggest to manually enter the changed date/time. You'd need to do this by creating substrings of the original date header and write sub-functions for the necessary date/time arithmetic, all by yourself. Because of the high potential of misuse I will /not/ support you with this. >> There have been versions of the nFilter news proxy program around, which >> supported the modification of /outgoing/ messages as well as incoming. >> There may be other tools available, doing the same. > > I am not sure what NFilter does, but I already have no problem modifying > outgoing messages with STATIC complete headers such as the Date header. > > But I don't want to write a STATIC date header if I can avoid it. > I just want to change the TIMEZONE that Dialog uses when communicating to > the nntp news server. > > The question is whether that is possible or not. Not nFilter by itself, which is (was) an inbound-only program. I explicitly wrote "versions". These modifications of course adjusted the date/time to mirror the altered timezone. And no, I /won't/ give you any more detailed pointer or download addresses. Bernd
Technical Details
Message-ID:
<1w4ob1zdtdl03$.dlg@b.rose.tmpbox.news.arcor.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<pmfd3c$uop$1@neodome.net> <176wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <000wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <1w4ob1zdtdl03$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: [dialog] Set the header date to a different TIMEZONE than the machine time zone? Date: Sun, 2 Sep 2018 11:06:19 +0200 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <pmfd3c$uop$1@neodome.net> <176wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> <000wbldbyre5s.dlg@b.rose.tmpbox.news.arcor.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: albasani.net Lines: 50 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net oMHHLNFJC8ct98aYYFEiEtByWAHjGCFasABYR2MbUMxT4jj4o61khFiAO557yZFQB/O8EIRsUGAFDtwAlU8qCA== NNTP-Posting-Date: Sun, 2 Sep 2018 09:06:19 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="FspnVYIuldcAdmiiyirpghAEeBaiMntbP5oueeEN4kBiZQRvTihpYM+jXnPB1Nj5p/b1zLmw6rlbNLRc5/Qs56nzffiq/LYepAx14zoadaHT+oZxderuIBK1vv0MnSIf"; mail-complaints-to="abuse@albasani.net" User-Agent: 40tude_Dialog/2.0.15.41 (a91857fd.207.414) Cancel-Lock: sha1:lGwdcngtaZfAV1mep08YA3/qPMI= X-Received-Bytes: 3728 X-Received-Body-CRC: 2617236187