Article View: news.software.readers
Article #255931Re: Some more slrn questions
From: Lewis
Date: Wed, 30 Oct 2013 18:01
Date: Wed, 30 Oct 2013 18:01
97 lines
4557 bytes
4557 bytes
In message <slrnl729h5.gr8.mr@irc.sandman.net>
Sandman <mr@sandman.net> wrote:
> In article <slrnl728sp.19sp.g.kreme@mbp55.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> > Why? I've seen that before, but the script works without it, so why is it
>> > there?
>>
>> It has nothing to do with the SCRIPT, it has to do with the POST. Look
>> at your post, look at mine. See how they are different?
> No, I don't. You have to help me here.
You don't see any difference between
#!/bin/bash
SIGHOME="$HOME/.signature"
$HOME/bin/fortune $HOME/mysigs > $SIGHOME
MAIL=`ps -U"$USER" -co command | grep "\bMail\b"`
if [ "$MAIL" ]; then
cat $SIGHOME | sed -e 's/"/\\"/g' > $HOME/.mail_signature
MYSIG="$(<$HOME/.mail_signature)"
osascript <<EOF
tell application "Mail" to set content of signature "Fortune" to "-- " & return & "$MYSIG"
EOF
fi
and
#v+
#!/bin/bash
SIGHOME="$HOME/.signature"
$HOME/bin/fortune $HOME/mysigs > $SIGHOME
MAIL=`ps -U"$USER" -co command | grep "\bMail\b"`
if [ "$MAIL" ]; then
cat $SIGHOME | sed -e 's/"/\\"/g' > $HOME/.mail_signature
MYSIG="$(<$HOME/.mail_signature)"
osascript <<EOF
tell application "Mail" to set content of signature "Fortune" to "-- " & return & "$MYSIG"
EOF
fi
#v-
??? They look quite different on my screen.
>> >> > So, hitting "f" creates a normal followup, but hitting "r" changes the
>> >> > editor_command, follows up, then changes it back.
>> >>
>> >> Where are you setting r the first time? and WHy aren't you using
>>
>> > First time? It is set in the S Lang file.
>>
>> Well, *normally* f is for followup and r is for reply-by-mail, right?
> Yeah, and it's over-ridden in the S Lang file.
>> >> post_editor_command
>> >> mail_editor_command
>> >>
>> >> instead?
>> >>
>> >> set mail_editor_command "~/bin/quote.php; pico....
>> >> set post_editor_command "pico ....
>>
>> > How would that help me? The mail_editor_command is default invoked by "r"
>> > and creates a mail file (with "to:" headers instead of "newsgroups:"
>> > headers) which wouldn't help me here.
> Well?
>
>> >> there is nothing sauing that mail_editor has to be for mailing. Since
>> >> I never send emails to USENET poster, I used to double the commands
>> >> myself to do slightly different things if I hit r or f.
>>
>> > Right, but I am editing the slrn-created post file, and when hitting "r"
>> > which invokes the mail editor, the file created is not a usenet post.
>> > Right?
>>
>> Not necessarily.
> Not necessarily...what? Slrn won't necessarily invoke the mail editor when
> hitting "r"? You're being very cryptic here.
It will, but that doesn't mean it has to be used to send mail.
I no longer have the setup, but I did have r and f both do the same
thing, only r invoked a slightly different editor command. They both
posted to USENET.
I did that by editing the *_editor_command settings in .slrnrc
--
The most perfidious way of harming a cause consists of defending it
deliberately with faulty arguments.
Technical Details
Message-ID:
<slrnl72ic1.19sp.g.kreme@mbp55.local>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com> <slrnl723r5.gkl.mr@irc.sandman.net> <slrnl724rp.19sp.g.kreme@mbp55.local> <slrnl728ja.gr8.mr@irc.sandman.net> <slrnl728sp.19sp.g.kreme@mbp55.local> <slrnl729h5.gr8.mr@irc.sandman.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnl72ic1.19sp.g.kreme@mbp55.local> Subject: Re: Some more slrn questions Date: Wed, 30 Oct 2013 18:01:37 +0000 From: Lewis <g.kreme@gmail.com.dontsendmecopies> References: <slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com> <slrnl723r5.gkl.mr@irc.sandman.net> <slrnl724rp.19sp.g.kreme@mbp55.local> <slrnl728ja.gr8.mr@irc.sandman.net> <slrnl728sp.19sp.g.kreme@mbp55.local> <slrnl729h5.gr8.mr@irc.sandman.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Miskatonic U Lines: 97 Injection-Date: Wed, 30 Oct 2013 18:01:37 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="67a6ffcad0084cff2eaf00478b4e9e19"; logging-data="12642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fHSFFDjLCn5R+5a435Nse" User-Agent: slrn/1.0.1 (Darwin) X-No-Archive: Yes X-Excuse: Been playing lots of WoW X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z Cancel-Lock: sha1:6KAd9aED53dDo2c4cqHHXGvXm3w= Mail-Copies-To: nobody