Thread View: news.software.readers
12 messages
12 total messages
Started by John F. Morse
Fri, 24 Jun 2011 17:32
[tin] Automatic Authentication with Stunnel
Author: John F. Morse
Date: Fri, 24 Jun 2011 17:32
Date: Fri, 24 Jun 2011 17:32
33 lines
2281 bytes
2281 bytes
I use tin from time to time. I was using it to access a non-SSL/TLS server, but using authentication (tin -rA). IIRC, I didn't need to enter my username and password because it was in the ~/.tin/.newsauth file. Now I'm accessing a different server that requires SSL/TLS. I have two choices: one going through a server with Stunnel 3.x running, and the other is running Stunnel4 on the same host where I'm running tin version 1.9.2. I've moved to the local Stunnel route and it is working fine, except I have to enter my username (or take the default), and then enter the password on every launch. Perhaps my memory has gone really bad, and I've always had to manually enter the password? :-\ I have four different entries in the ~/.tin/.newsauth file but none seem to be sufficient. They are of this syntax, munged of course: localhost password username localhost.FQDN password username server password username server.FQDN password username Any help would be appreciated. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [tin] Automatic Authentication with Stunnel
Author: Urs Janßen
Date: Fri, 24 Jun 2011 18:16
Date: Fri, 24 Jun 2011 18:16
38 lines
2673 bytes
2673 bytes
In <iu2hn0$bvk$1@n102.xanadu-bbs.net>, John F. Morse wrote:
> I use tin from time to time. I was using it to access a non-SSL/TLS
> server, but using authentication (tin -rA).
>
> IIRC, I didn't need to enter my username and password because it was in
> the ~/.tin/.newsauth file.
tin(5)
| ${TIN_HOMEDIR:-"$HOME"}/.newsauth
| "nntpserver password [user]" pairs for NNTP servers that require
| authorization. If the password contains a space or a tab it must
[...]
so that's ~/.newsauth not ~/.tin/.newsauth if $TIN_HOMEDIR is unset
($TIN_HOMEDIR changes the path to the .tin-dir):
tin(1)
TIN_HOMEDIR
Define this variable if you do not want the .tin directory in
$HOME/. E.g., if you want all tin's private files in /tmp/.tin
you would set $TIN_HOMEDIR to /tmp.
> localhost password username
> localhost.FQDN password username
> server password username
> server.FQDN password username
>
> Any help would be appreciated.
if you use something like "tin -g localhost" (or set $NNTPSERVER to
localhost) the first one should suffice (if the server expects auth
but dosn't ask for it you might also need -A).
HTH,
urs
--
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
so rarely."
Re: [tin] Automatic Authentication with Stunnel
Author: VanguardLH
Date: Fri, 24 Jun 2011 19:58
Date: Fri, 24 Jun 2011 19:58
149 lines
8647 bytes
8647 bytes
John F. Morse wrote: > I use tin from time to time. I was using it to access a non-SSL/TLS > server, but using authentication (tin -rA). > > IIRC, I didn't need to enter my username and password because it was in > the ~/.tin/.newsauth file. > > Now I'm accessing a different server that requires SSL/TLS. I have two > choices: one going through a server with Stunnel 3.x running, and the > other is running Stunnel4 on the same host where I'm running tin version > 1.9.2. > > I've moved to the local Stunnel route and it is working fine, except I > have to enter my username (or take the default), and then enter the > password on every launch. > > Perhaps my memory has gone really bad, and I've always had to manually > enter the password? :-\ > > I have four different entries in the ~/.tin/.newsauth file but none seem > to be sufficient. They are of this syntax, munged of course: > > localhost password username > localhost.FQDN password username > server password username > server.FQDN password username > > Any help would be appreciated. It's been a long time since I last use sTunnel (and that was on Windows to give me SSL access to Gmail because SpamPal doesn't support SSL - I quit using SpamPal so didn't need sTunnel). I think it was about 2 years, or more, since I last used it. As I recall, you configure your client so the server it specifies is the sTunnel proxy but you also give your login credentials. That way, your client connects to the proxy and gives it the login username and password. You configure sTunnel to where it connects. So it connects there and then passes on the login credentials. http://spampal.sourceforge.net/usermanual/servers/stunnel/stunnel.htm In stunnel.conf, you configure it to accept inbound connects on a port. If you have multiple email servers to which it will connect, you have to define a different inbound port for each server. So if you have 5 email accounts that you want to poll, each using SSL, then you have to define 5 inbound ports in sTunnel. That's because each inbound port defines one e-mail server to which sTunnel will connect. You have to specify the correct protocol for the inbound port on sTunnel (POP, IMAP, SMTP) so you match it up with the protocol you specify in your client. In your client (tin), you would define the server as the local proxy for sTunnel. If you are running sTunnel, you use localhost or 127.0.0.1 to identify the server (which is now the local proxy). In your client for the username and password fields, you specify in the user/account field both your username (for login) and the local proxy and its port, as in: <acctUsername>@127.0.0.1:<stunnelInPort> If you configured sTunnel to accept inbound connect on port 1109 (that then goes to a specific email server) and if your username was JohnM and your password was 123456 then you configure your client would use: Account/User: johnm@127.0.0.1:1109 Password: 123456 (shown as asterisks) The password field in your client contains the login password. Your client connects to 127.0.0.1 (sTunnel proxy). The account in your client specifies in the User/Account field what is your login username, the server again but along with its port. So the client connects to 127.0.0.1 on port 1109 which is sTunnel and gives it the username. The client passes the password to the same proxy (sTunnel). Since the inbound port on sTunnel is associated with a particular protocol, the proper handshaking is performed for sTunnel to grab the username and password from the client's connect. sTunnel then connects to the server that you specified in its config file for that inbound port and passes on the username and password using the same protocol as was defined for that inbound port (so the protocol defined on the inbound port has to match the protocol used at the email server). sTunnel knows to where its outbound connect (the email server) by what you define for an inbound port in its config file. What protocol is used by the inbound port (to the client and then to the email server) is defined by under what section in the config file you put the definition. Since the inbound port on sTunnel defines to where it connects, you change the Server fields (POP, IMAP, SMTP) in your client to point at the sTunnel proxy (127.0.0.1 or localhost). You modify the User field in your client to specify your username, ampersand, sTunnel proxy, and its inbound port. You leave the Password field in your client the same. The instuctions above were for getting and sending emails through sTunnel so you could use SSL with a client that doesn't support it. There is no mention of an "[NNTP]" section in sTunnel. It wasn't clear from your post if you were looking to use SSL connects for e-mail sending and receiving or for NNTP posting and reading. Although not that clear, the service types you can define are defined at: http://www.stunnel.org/static/stunnel.html#configuration_file nntp is listed as a supported protocol; however, there appears a difference between version 4 (in the SpamPal version of using sTunnel) and the version 8 manual. In the past, you use "[imaps]" to specify a block of parameters used for an inbound IMAP port in sTunnel (that then used IMAPS to connect to the email server). Their examples suck. Notice they don't even tell you the name of the configuration file until almost at the end of the documentation in where you are going to specify all those parameters previously defined. Their documentation is written more like an Engineering Spec than a Functional Spec. In version 4, you'd define a block in stunnel.conf for IMAPS like: imaps] accept = 127.0.0.1:8143 delay = yes connect = imaps.myisp.com:993 Now it looks like you have to use something like: [stunnel.imap] protocol = imap accept = 127.0.0.1:8143 delay = yes connect = imaps.myisp.com:993 I had thought "[imaps]" was the protocol used by the block but instead it's just the name for that block of parameters. The parameter block defined a "service name" in sTunnel. So you could have: [myisp-imaps] accept = 127.0.0.1:8143 delay = yes connect = imaps.myisp.com:993 I suspect the protocol parameter wasn't needed in my prior use of sTunnel becaue I used a common outbound port (between sTunnel and the email server). That is, if I used a common port (which is what the email server is likely to also use) then that port identified the protocol to be used, as mentioned at: http://www.stunnel.org/?page=faq under "What are the offical SSL ports?" section Since I see "nntps" in this list and also as a protocol mentioned in their documentation then you should be able to use sTunnel for both email and newsgroups; however, under protocol=nntp, it says "This protocol is only supported in client mode." I don't know what that means versus "server mode". To me, the proxy is always the server to your email/nntp client but it is the client to the email/nntp server to which it connects.
Re: [tin] Automatic Authentication with Stunnel
Author: John F. Morse
Date: Fri, 24 Jun 2011 20:59
Date: Fri, 24 Jun 2011 20:59
77 lines
4023 bytes
4023 bytes
Hi Urs
> In <iu2hn0$bvk$1@n102.xanadu-bbs.net>, John F. Morse wrote:
>
>> I use tin from time to time. I was using it to access a non-SSL/TLS
>> server, but using authentication (tin -rA).
>>
>> IIRC, I didn't need to enter my username and password because it was in
>> the ~/.tin/.newsauth file.
>>
>
> tin(5)
> | ${TIN_HOMEDIR:-"$HOME"}/.newsauth
> | "nntpserver password [user]" pairs for NNTP servers that require
> | authorization. If the password contains a space or a tab it must
> [...]
>
> so that's ~/.newsauth not ~/.tin/.newsauth if $TIN_HOMEDIR is unset
> ($TIN_HOMEDIR changes the path to the .tin-dir):
> tin(1)
> TIN_HOMEDIR
> Define this variable if you do not want the .tin directory in
> $HOME/. E.g., if you want all tin's private files in /tmp/.tin
> you would set $TIN_HOMEDIR to /tmp.
>
I did not find that in any config or rc file, so I'm guessing it is a
compile-time option. I'm using Debian and Ubuntu APT package installs.
It did the trick though (mv ~/.tin/.newsauth ..).
The old server's .newsauth was still in the ~/ directory. I suspect I
was just blind or read that too fast. Many thanks.
Also needed chmod 400 ~/.newsauth to get rid of the nag.
My concern was or is the ~/ directory gets loaded down with various run
control (i.e. newsrc etc.) files from tin, slrn, nn, Pan, and who knows
what else. Can't keep them straight.
My attempt was to put each newsreaders' run control and other associated
files within a directory bearing that program's name.
I also cannot locate where I can configure for a different editor, like
nano, gedit, etc., so that too must be a compile-time option.
>> localhost password username
>> localhost.FQDN password username
>> server password username
>> server.FQDN password username
>>
>> Any help would be appreciated.
>>
>
> if you use something like "tin -g localhost" (or set $NNTPSERVER to
> localhost) the first one should suffice (if the server expects auth
> but dosn't ask for it you might also need -A).
>
> HTH,
> urs
>
Commented out the second through fourth lines, and it works fine when
launched with the -A option. Meaning simply with "tin -rA" and no -g option.
However the -g makes it very easy to access one of my other servers,
including adding the -p when necessary (three transit servers listen on
433, but still run nnrpd).
I also like "tin -rAz" and "tin -rAZv" for a fast check.
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [tin] Automatic Authentication with Stunnel
Author: John F. Morse
Date: Fri, 24 Jun 2011 21:40
Date: Fri, 24 Jun 2011 21:40
154 lines
8880 bytes
8880 bytes
VanguardLH wrote: > It's been a long time since I last use sTunnel (and that was on Windows > to give me SSL access to Gmail because SpamPal doesn't support SSL - I > quit using SpamPal so didn't need sTunnel). I think it was about 2 > years, or more, since I last used it. As I recall, you configure your > client so the server it specifies is the sTunnel proxy but you also give > your login credentials. That way, your client connects to the proxy and > gives it the login username and password. You configure sTunnel to > where it connects. So it connects there and then passes on the login > credentials. > > http://spampal.sourceforge.net/usermanual/servers/stunnel/stunnel.htm > > In stunnel.conf, you configure it to accept inbound connects on a port. > If you have multiple email servers to which it will connect, you have to > define a different inbound port for each server. So if you have 5 email > accounts that you want to poll, each using SSL, then you have to define > 5 inbound ports in sTunnel. That's because each inbound port defines > one e-mail server to which sTunnel will connect. You have to specify > the correct protocol for the inbound port on sTunnel (POP, IMAP, SMTP) > so you match it up with the protocol you specify in your client. > > In your client (tin), you would define the server as the local proxy for > sTunnel. If you are running sTunnel, you use localhost or 127.0.0.1 to > identify the server (which is now the local proxy). In your client for > the username and password fields, you specify in the user/account field > both your username (for login) and the local proxy and its port, as in: > > <acctUsername>@127.0.0.1:<stunnelInPort> > > If you configured sTunnel to accept inbound connect on port 1109 (that > then goes to a specific email server) and if your username was JohnM and > your password was 123456 then you configure your client would use: > > Account/User: johnm@127.0.0.1:1109 > Password: 123456 (shown as asterisks) > > The password field in your client contains the login password. Your > client connects to 127.0.0.1 (sTunnel proxy). The account in your > client specifies in the User/Account field what is your login username, > the server again but along with its port. So the client connects to > 127.0.0.1 on port 1109 which is sTunnel and gives it the username. The > client passes the password to the same proxy (sTunnel). Since the > inbound port on sTunnel is associated with a particular protocol, the > proper handshaking is performed for sTunnel to grab the username and > password from the client's connect. sTunnel then connects to the server > that you specified in its config file for that inbound port and passes > on the username and password using the same protocol as was defined for > that inbound port (so the protocol defined on the inbound port has to > match the protocol used at the email server). > > sTunnel knows to where its outbound connect (the email server) by what > you define for an inbound port in its config file. What protocol is > used by the inbound port (to the client and then to the email server) is > defined by under what section in the config file you put the definition. > Since the inbound port on sTunnel defines to where it connects, you > change the Server fields (POP, IMAP, SMTP) in your client to point at > the sTunnel proxy (127.0.0.1 or localhost). You modify the User field > in your client to specify your username, ampersand, sTunnel proxy, and > its inbound port. You leave the Password field in your client the same. > > The instuctions above were for getting and sending emails through > sTunnel so you could use SSL with a client that doesn't support it. > There is no mention of an "[NNTP]" section in sTunnel. It wasn't clear > from your post if you were looking to use SSL connects for e-mail > sending and receiving or for NNTP posting and reading. Although not > that clear, the service types you can define are defined at: > > http://www.stunnel.org/static/stunnel.html#configuration_file > > nntp is listed as a supported protocol; however, there appears a > difference between version 4 (in the SpamPal version of using sTunnel) > and the version 8 manual. In the past, you use "[imaps]" to specify a > block of parameters used for an inbound IMAP port in sTunnel (that then > used IMAPS to connect to the email server). Their examples suck. > Notice they don't even tell you the name of the configuration file until > almost at the end of the documentation in where you are going to specify > all those parameters previously defined. Their documentation is written > more like an Engineering Spec than a Functional Spec. > > In version 4, you'd define a block in stunnel.conf for IMAPS like: > > imaps] > accept = 127.0.0.1:8143 > delay = yes > connect = imaps.myisp.com:993 > > Now it looks like you have to use something like: > > [stunnel.imap] > protocol = imap > accept = 127.0.0.1:8143 > delay = yes > connect = imaps.myisp.com:993 > > I had thought "[imaps]" was the protocol used by the block but instead > it's just the name for that block of parameters. The parameter block > defined a "service name" in sTunnel. So you could have: > > [myisp-imaps] > accept = 127.0.0.1:8143 > delay = yes > connect = imaps.myisp.com:993 > > I suspect the protocol parameter wasn't needed in my prior use of > sTunnel becaue I used a common outbound port (between sTunnel and the > email server). That is, if I used a common port (which is what the > email server is likely to also use) then that port identified the > protocol to be used, as mentioned at: > > http://www.stunnel.org/?page=faq > under "What are the offical SSL ports?" section > > Since I see "nntps" in this list and also as a protocol mentioned in > their documentation then you should be able to use sTunnel for both > email and newsgroups; however, under protocol=nntp, it says "This > protocol is only supported in client mode." I don't know what that > means versus "server mode". To me, the proxy is always the server to > your email/nntp client but it is the client to the email/nntp server to > which it connects. > Appreciate the info, but I have Stunnel3 and Stunnel4 already working on several servers. One is Stunnel3, which provides a tunnel to a NNRPD news server. It is handy to use for access from any client on the LAN,. It is not a very fast PC, and it runs BIND9, ntpd, and Fetchmail as well. This Stunnel3 was previously used for accessing POP3, SMTP and NNRPD over a secure connection to a former ISP. I installed Stunnel4 on this workstation for a gmail IMAPS account. Then I added a configuration for nnrpd to a newer reader news server. I have another Stunnel4 server that receives encrypted incoming connections from the WAN on various ports, and sends them to various inhouse servers (POP3, IMAP, NNRPD, HTTP, SSH, etc.). My problem was overlooking a variable path to tin's authentication file. I had the correct file but in one directory too deep, while the old file was in the proper place, but the configuration was for a different hostname. I should buy higher powered diopter reading glasses, or junk it all and go fishing. ;-) Again, thanks for taking the time to write this info. It will be here if I should need it in the future. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [tin] Automatic Authentication with Stunnel
Author: VanguardLH
Date: Fri, 24 Jun 2011 23:30
Date: Fri, 24 Jun 2011 23:30
152 lines
9441 bytes
9441 bytes
John F. Morse wrote: > VanguardLH wrote: > >> It's been a long time since I last use sTunnel (and that was on Windows >> to give me SSL access to Gmail because SpamPal doesn't support SSL - I >> quit using SpamPal so didn't need sTunnel). I think it was about 2 >> years, or more, since I last used it. As I recall, you configure your >> client so the server it specifies is the sTunnel proxy but you also give >> your login credentials. That way, your client connects to the proxy and >> gives it the login username and password. You configure sTunnel to >> where it connects. So it connects there and then passes on the login >> credentials. >> >> http://spampal.sourceforge.net/usermanual/servers/stunnel/stunnel.htm >> >> In stunnel.conf, you configure it to accept inbound connects on a port. >> If you have multiple email servers to which it will connect, you have to >> define a different inbound port for each server. So if you have 5 email >> accounts that you want to poll, each using SSL, then you have to define >> 5 inbound ports in sTunnel. That's because each inbound port defines >> one e-mail server to which sTunnel will connect. You have to specify >> the correct protocol for the inbound port on sTunnel (POP, IMAP, SMTP) >> so you match it up with the protocol you specify in your client. >> >> In your client (tin), you would define the server as the local proxy for >> sTunnel. If you are running sTunnel, you use localhost or 127.0.0.1 to >> identify the server (which is now the local proxy). In your client for >> the username and password fields, you specify in the user/account field >> both your username (for login) and the local proxy and its port, as in: >> >> <acctUsername>@127.0.0.1:<stunnelInPort> >> >> If you configured sTunnel to accept inbound connect on port 1109 (that >> then goes to a specific email server) and if your username was JohnM and >> your password was 123456 then you configure your client would use: >> >> Account/User: johnm@127.0.0.1:1109 >> Password: 123456 (shown as asterisks) >> >> The password field in your client contains the login password. Your >> client connects to 127.0.0.1 (sTunnel proxy). The account in your >> client specifies in the User/Account field what is your login username, >> the server again but along with its port. So the client connects to >> 127.0.0.1 on port 1109 which is sTunnel and gives it the username. The >> client passes the password to the same proxy (sTunnel). Since the >> inbound port on sTunnel is associated with a particular protocol, the >> proper handshaking is performed for sTunnel to grab the username and >> password from the client's connect. sTunnel then connects to the server >> that you specified in its config file for that inbound port and passes >> on the username and password using the same protocol as was defined for >> that inbound port (so the protocol defined on the inbound port has to >> match the protocol used at the email server). >> >> sTunnel knows to where its outbound connect (the email server) by what >> you define for an inbound port in its config file. What protocol is >> used by the inbound port (to the client and then to the email server) is >> defined by under what section in the config file you put the definition. >> Since the inbound port on sTunnel defines to where it connects, you >> change the Server fields (POP, IMAP, SMTP) in your client to point at >> the sTunnel proxy (127.0.0.1 or localhost). You modify the User field >> in your client to specify your username, ampersand, sTunnel proxy, and >> its inbound port. You leave the Password field in your client the same. >> >> The instuctions above were for getting and sending emails through >> sTunnel so you could use SSL with a client that doesn't support it. >> There is no mention of an "[NNTP]" section in sTunnel. It wasn't clear >> from your post if you were looking to use SSL connects for e-mail >> sending and receiving or for NNTP posting and reading. Although not >> that clear, the service types you can define are defined at: >> >> http://www.stunnel.org/static/stunnel.html#configuration_file >> >> nntp is listed as a supported protocol; however, there appears a >> difference between version 4 (in the SpamPal version of using sTunnel) >> and the version 8 manual. In the past, you use "[imaps]" to specify a >> block of parameters used for an inbound IMAP port in sTunnel (that then >> used IMAPS to connect to the email server). Their examples suck. >> Notice they don't even tell you the name of the configuration file until >> almost at the end of the documentation in where you are going to specify >> all those parameters previously defined. Their documentation is written >> more like an Engineering Spec than a Functional Spec. >> >> In version 4, you'd define a block in stunnel.conf for IMAPS like: >> >> imaps] >> accept = 127.0.0.1:8143 >> delay = yes >> connect = imaps.myisp.com:993 >> >> Now it looks like you have to use something like: >> >> [stunnel.imap] >> protocol = imap >> accept = 127.0.0.1:8143 >> delay = yes >> connect = imaps.myisp.com:993 >> >> I had thought "[imaps]" was the protocol used by the block but instead >> it's just the name for that block of parameters. The parameter block >> defined a "service name" in sTunnel. So you could have: >> >> [myisp-imaps] >> accept = 127.0.0.1:8143 >> delay = yes >> connect = imaps.myisp.com:993 >> >> I suspect the protocol parameter wasn't needed in my prior use of >> sTunnel becaue I used a common outbound port (between sTunnel and the >> email server). That is, if I used a common port (which is what the >> email server is likely to also use) then that port identified the >> protocol to be used, as mentioned at: >> >> http://www.stunnel.org/?page=faq >> under "What are the offical SSL ports?" section >> >> Since I see "nntps" in this list and also as a protocol mentioned in >> their documentation then you should be able to use sTunnel for both >> email and newsgroups; however, under protocol=nntp, it says "This >> protocol is only supported in client mode." I don't know what that >> means versus "server mode". To me, the proxy is always the server to >> your email/nntp client but it is the client to the email/nntp server to >> which it connects. >> > > Appreciate the info, but I have Stunnel3 and Stunnel4 already working on > several servers. > > One is Stunnel3, which provides a tunnel to a NNRPD news server. It is > handy to use for access from any client on the LAN,. It is not a very > fast PC, and it runs BIND9, ntpd, and Fetchmail as well. This Stunnel3 > was previously used for accessing POP3, SMTP and NNRPD over a secure > connection to a former ISP. > > I installed Stunnel4 on this workstation for a gmail IMAPS account. Then > I added a configuration for nnrpd to a newer reader news server. > > I have another Stunnel4 server that receives encrypted incoming > connections from the WAN on various ports, and sends them to various > inhouse servers (POP3, IMAP, NNRPD, HTTP, SSH, etc.). > > My problem was overlooking a variable path to tin's authentication file. > I had the correct file but in one directory too deep, while the old file > was in the proper place, but the configuration was for a different > hostname. I should buy higher powered diopter reading glasses, or junk > it all and go fishing. ;-) > > Again, thanks for taking the time to write this info. It will be here if > I should need it in the future. That's the problem with tired eyes: they tend to see what you think you should be seeing.
Re: [tin] Automatic Authentication with Stunnel
Author: Urs Janßen
Date: Sat, 25 Jun 2011 00:01
Date: Sat, 25 Jun 2011 00:01
14 lines
2047 bytes
2047 bytes
In <iu2tqk$f5s$1@n102.xanadu-bbs.net>, John F. Morse wrote: > My concern was or is the ~/ directory gets loaded down with various run > control (i.e. newsrc etc.) files from tin, slrn, nn, Pan, and who knows the newsrc-file is not tin specific it is (or was - as more and more newsreader started to use thier own format) the standard for keeping trac of which articles have been read no matter which newsraeder you use. that's why it not in the rc-dir (but you can change that via ~/.tin/newsrctable) > I also cannot locate where I can configure for a different editor, like > nano, gedit, etc., so that too must be a compile-time option. either via env. var $EDITOR or $VISUAL and/or via tinrc editor_format
Re: [tin] Automatic Authentication with Stunnel
Author: John F. Morse
Date: Sun, 26 Jun 2011 20:47
Date: Sun, 26 Jun 2011 20:47
76 lines
3801 bytes
3801 bytes
Hi Urs,
Sorry for the delayed response. This was Amateur Radio's annual Field
Day, so I went outside for a change. ;-)
http://www.arrl.org/field-day
http://en.wikipedia.org/wiki/Field_Day_%28amateur_radio%29
Urs Janßen <urs@buil.tin.org> wrote:
> In <iu2tqk$f5s$1@n102.xanadu-bbs.net>, John F. Morse wrote:
>> My concern was or is the ~/ directory gets loaded down with various run
>> control (i.e. newsrc etc.) files from tin, slrn, nn, Pan, and who knows
>
> the newsrc-file is not tin specific it is (or was - as more and more
> newsreader started to use thier own format) the standard for keeping
> trac of which articles have been read no matter which newsraeder you
> use. that's why it not in the rc-dir (but you can change that via
> ~/.tin/newsrctable)
That makes sense for the majority of people, those who just use a
newsreader to read news.
However I often need a newsreader-specific newsrc file for testing
servers, investigating article propagation paths, etc.
>> I also cannot locate where I can configure for a different editor, like
>> nano, gedit, etc., so that too must be a compile-time option.
>
> either via env. var $EDITOR or $VISUAL and/or via tinrc editor_format
I presume by "editor_format" you meant "default_editor_format"?
In ~/.tin/tinrc :
# Format of editor line including parameters
# %E Editor %F Filename %N Linenumber
default_editor_format=%E +%N %F
Using the M command :
-> 130. Invocation of your editor : %E +%N %F
Enter %E for editor, %F for filename, %N for
line-number, <CR> to set.
This "hard coding" seems to work:
# Format of editor line including parameters
# %E Editor %F Filename %N Linenumber
default_editor_format=nano +%N %F
I'm not so sure that vi/vim isn't faster to use than nano. Too bad there
isn't a method to choose the editor while tin is running. ;-)
Well, maybe there is! Using the "M" command (while tin is running of
course) and replacing the "nano" with "vim" in line 130 brings up vim
when the editor is needed.
Another associated editor question: After exiting the editor (vim or
nano) the "Check Prepared Article" screen is displayed. Selecting "i"
for "ispell" brings up any spelling errors.
Is there any way to have ispell ignore quoted (">") lines and only check
the newly added reply lines?
TIA.
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [tin] Automatic Authentication with Stunnel
Author: Urs Janßen
Date: Sun, 26 Jun 2011 22:59
Date: Sun, 26 Jun 2011 22:59
32 lines
2609 bytes
2609 bytes
In <iu85tr$qbj$2@n102.xanadu-bbs.net>, John F. Morse wrote:
>> use. that's why it not in the rc-dir (but you can change that via
>> ~/.tin/newsrctable)
>
> That makes sense for the majority of people, those who just use a
> newsreader to read news.
>
> However I often need a newsreader-specific newsrc file for testing
> servers, investigating article propagation paths, etc.
as mentioned above, you can use ~/.tin/newsrctable to specify a
different newsrc-file or use $TINRC and set it '-f ~/.tin/tinsnewsrc'
or the like.
> This "hard coding" seems to work:
>
> # Format of editor line including parameters
> # %E Editor %F Filename %N Linenumber
> default_editor_format=nano +%N %F
%E is the result of ${VISUAL:-"${EDITOR:-vi}"}, so you could simply
set i.e. $VISUAL
> Is there any way to have ispell ignore quoted (">") lines and only check
> the newly added reply lines?
you could either set $ISPELL to something that skips quotes and pipes
the rest into ispell or use the ispell attributes option for that:
~/.tin/attributes
scope=*
ispell=grep -Ev '^>' | ispell
Re: [tin] Automatic Authentication with Stunnel
Author: John F. Morse
Date: Mon, 27 Jun 2011 17:14
Date: Mon, 27 Jun 2011 17:14
39 lines
2612 bytes
2612 bytes
Hi Urs,
On 2011-06-26, Urs Janßen <urs@buil.tin.org> wrote:
> In <iu85tr$qbj$2@n102.xanadu-bbs.net>, John F. Morse wrote:
>>> use. that's why it not in the rc-dir (but you can change that via
>>> ~/.tin/newsrctable)
>>
>> That makes sense for the majority of people, those who just use a
>> newsreader to read news.
>>
>> However I often need a newsreader-specific newsrc file for testing
>> servers, investigating article propagation paths, etc.
>
> as mentioned above, you can use ~/.tin/newsrctable to specify a
> different newsrc-file or use $TINRC and set it '-f ~/.tin/tinsnewsrc'
> or the like.
I use the ~/.tin.newsrctable which does the job for me.
>> Is there any way to have ispell ignore quoted (">") lines and only check
>> the newly added reply lines?
>
> you could either set $ISPELL to something that skips quotes and pipes
> the rest into ispell or use the ispell attributes option for that:
>
> ~/.tin/attributes
> scope=*
> ispell=grep -Ev '^>' | ispell
Added the above two lines but there is a command failure:
Command failed: grep -Ev \'\^\>\' \| ispell /home/john/.article.31892.body
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [tin] Automatic Authentication with Stunnel
Author: Urs Janßen
Date: Tue, 28 Jun 2011 08:33
Date: Tue, 28 Jun 2011 08:33
22 lines
2299 bytes
2299 bytes
In <iuadpl$dfn$1@n102.xanadu-bbs.net>, John F. Morse wrote: >> scope=* >> ispell=grep -Ev '^>' | ispell > > Added the above two lines but there is a command failure: > > Command failed: grep -Ev \'\^\>\' \| ispell /home/john/.article.31892.body sorry, I didn't check how tin invokes ispell. The way it curently implemented there is no easy way to skip lines (if the spell checker an't do this on its own). AFAIK aspell can skip over quoted lines (use mail mode (and add-email-quote / rem-email-quote if the defaults list of quote chars doesn't suffice)). scope=* ispell=aspell -e -c urs -- Jef Poskanzer: "When people aren't stupid Usenet is even more useful. Too bad this happens so rarely."
Re: [tin] Automatic Authentication with Stunnel
Author: John F. Morse
Date: Tue, 28 Jun 2011 16:52
Date: Tue, 28 Jun 2011 16:52
31 lines
2385 bytes
2385 bytes
Urs Janßen <urs@buil.tin.org> wrote: > In <iuadpl$dfn$1@n102.xanadu-bbs.net>, John F. Morse wrote: >>> scope=* >>> ispell=grep -Ev '^>' | ispell >> >> Added the above two lines but there is a command failure: >> >> Command failed: grep -Ev \'\^\>\' \| ispell /home/john/.article.31892.body > > sorry, I didn't check how tin invokes ispell. The way it curently > implemented there is no easy way to skip lines (if the spell checker > an't do this on its own). AFAIK aspell can skip over quoted lines > (use mail mode (and add-email-quote / rem-email-quote if the defaults > list of quote chars doesn't suffice)). > > scope=* > ispell=aspell -e -c > > urs That may do the trick. I'll test it on this reply.... Yes, that will work. Thanks, Urs. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads