> Newsgroups: alt.os.linux.slackware
> Subject: can't post from emacs
> X-Draft-From: ("alt.os.linux.slackware" "")
> From: xtd8865@/usr/bin/idn: idna_to_ascii_4z: non-digit/letter/hyphen in input
> Date: Sun, 22 Nov 2009 11:21:09 +0000
> Message-ID: <87vdh2vm8q.fsf@slack_exp.serverdot.org>
> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
> Cancel-Lock: sha1:HFLdzFOlaegPCNX5d7lzCBhtr04=
> --text follows this line--
> Sending...
> Denied posting -- the From looks strange: "xtd8865@/usr/bin/idn: idna_to_ascii_4z: non-digit/letter/hyphen in input".
What do I need to edit to make the From line correct by default? When I
edit it manually it works but it's a pain.
The relevant part of my .emacs
> (setq gnus-select-method '(nntp "news.virginmedia.com"))
>
> (setq send-mail-function 'smtpmail-send-it
> message-send-mail-function 'smtpmail-send-it
> smtpmail-starttls-credentials
> '(("smtp.gmail.com" 587 nil nil))
> smtpmail-auth-credentials
> (expand-file-name "~/.authinfo")
> smtpmail-default-smtp-server "smtp.gmail.com"
> smtpmail-smtp-server "smtp.gmail.com"
> smtpmail-smtp-service 587
> smtpmail-debug-info t)
> (require 'smtpmail)
./authinfo
> machine smtp.gmail.com login mye...@gmail.com password mypassword
> machine imap.gmail.com login mye...@gmail.com password my password port 993
Thank you
regards
.Martin.
> I'm trying to set up emacs to use newsgroups.
> I've got gnus working. I can browse newsgroups, however, when I want to
> post a message on a newsgroup, I get the following:
>
>
>
> > Newsgroups: alt.os.linux.slackware
> > Subject: can't post from emacs
> > X-Draft-From: ("alt.os.linux.slackware" "")
> > From: xtd8865@/usr/bin/idn: idna_to_ascii_4z: non-digit/letter/hyphen in input
> > Date: Sun, 22 Nov 2009 11:21:09 +0000
> > Message-ID: <87vdh2vm8q.fsf@slack_exp.serverdot.org>
> > User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
> > Cancel-Lock: sha1:HFLdzFOlaegPCNX5d7lzCBhtr04=
> > --text follows this line--
>
> > Sending...
> > Denied posting -- the From looks strange: "xtd8865@/usr/bin/idn: idna_to_ascii_4z: non-digit/letter/hyphen in input".
>
>
> What do I need to edit to make the From line correct by default? When I
> edit it manually it works but it's a pain.
Disclaimer: I'm not an elisp wizard, okay?
You might do "grep gnus .emacs" to see if you have something in your
.emacs that is doing or permitting this.
Do you have a ~/.gnus file? elisp in such a file may be affecting your
From: line. Look there if you have a .gnus.
You don't say what verison of emacs & gnus you're using so this may be
incompatible, but I have these lines in ~/.gnus:
(setq gnus-posting-styles
'((".*"
(address "us...@some.domain")
(organization "Any Text String You Like")
(signature-file "~/.gnus-sig")
))
)
"us...@some.domain" may be bogus (see headers of this post), at least
in my version of emacs (20.7) or could be your full gmail addy. IIRC,
if the address string you setq differs from you localhost username,
gnus will add a Sender: header with your localhost
username@hostname-fqdn but I'm vague on that. "~/.gnus-sig" can be any
filename.
FWIW,
--
Mike Spencer Nova Scotia, Canada
As you can see, your .gnus file has helped. I've still have a few things
that I'd like to configure in gnus:
1. Every time I start emacs and then gnus, it downloads a lot of
information from a newsgroup. It then asks me about the numbers
of headers to download. Can't it just save the state of the posts
I've already seen?
2. Is it possible to sort the posts by date WITH THE MOST RECENT POST
AT THE TOP?
Thanks
--
regards
.Martin.
Thank you in advance
--
regards
.Martin.
> I'm trying to set up emacs to use newsgroups.
Why? Are you crazy?
Nobody even loads emacs anymore. Some will say that they do, but
they are lying.
LewPi...@LewPitcher.ca
--
Official Website -->> http://lewpitcher.ca/
Something to look at: -->> http://www.emusclemag.com/
Lonely in Brampton? -->> http://gaypros.meetup.com/cities/ca/on/brampton/
Peel HIV/AIDS Network -->> http://www.phan.ca/home.html
--
regards
.Martin.
I don't think it's the case, but how can I check (under XFCE)
if phonon is being used?
Is there anything I could do to solve it?
I remember using gnash in debian for a short period of time a few years
ago? What is the state of gnash at the moment?
--
regards
.Martin.
>.Martin. <xtd...@gmail.com> trolled:
>> I'm trying to set up emacs to use newsgroups.
>Why? Are you crazy?
>Nobody even loads emacs anymore. Some will say that they do, but
>they are lying.
Yeah, totally true! I mean, I use NN, of course, who doesn't?
Aaron W. Hsu
>Just playing to find the limits of emacs. So far I've
>been using it for html/css and pdflatex documents.
Gnus is one of the most capable newsreaders out there. You won't be
disappointed with anything about it that I can see save the amount of
configuration it takes to get things just the way you want them. But
then again, if you are using Emacs, this is a Good Thing(tm).
Aaron W. Hsu
> ..........save the amount of configuration it takes to get things
> just the way you want them. But then again, if you are using Emacs,
> this is a Good Thing(tm).
Ummm.... aren't you a pro code geek? Most ppl aren't. I love emacs,
but use slrn cuz gnus just doesn't provide what slrn does by default.
Maybe if I was a code geek, too.
nb
> What would I have to edit for gnus to display my name (as in my original
> post) instead of an email address?
To acheive both that and the correct email address as per your orignal
post set these two variable in your .gnus file
;; my mail headers - if not using posting styles
(setq user-full-name "Fred Bloggs")
(setq user-mail-address "fr...@blogs.org")
Lots of really useful Gnus-related stuff here:-
http://www.emacswiki.org/emacs/CategoryGnus
Just ignore RM -the fake Lew Pitcher!
atb
Glyn
--
RTFM http://www.tldp.org/index.html
GAFC http://slackbook.org/ The Official Source :-)
STFW http://groups.google.com/groups?hl=en&group=alt.os.linux.slackware
JFGI http://jfgi.us/
> Thanks for your reply.
> I'm using Emacs 22.3.1 on Slackware-current. The version of gnus is 5.11.
>
> As you can see, your .gnus file has helped. I've still have a few things
> that I'd like to configure in gnus:
>
> 1. Every time I start emacs and then gnus, it downloads a lot of
> information from a newsgroup. It then asks me about the numbers
> of headers to download. Can't it just save the state of the posts
> I've already seen?
Try this .....
(setq gnus-check-new-newsgroups nil
gnus-read-active-file nil
gnus-nov-is-evil nil)
> 2. Is it possible to sort the posts by date WITH THE MOST RECENT POST
> AT THE TOP?
Again, you could try these :-)
(setq gnus-fetch-old-headers 'some ; connect threads with the minimum number of old headers
gnus-thread-ignore-subject t ; Ignore Subject: changes
gnus-thread-sort-functions '(gnus-thread-sort-by-number
gnus-thread-sort-by-date
gnus-thread-sort-by-total-score))
Good luck
> .Martin. <xtd...@gmail.com> trolled:
>
>> I'm trying to set up emacs to use newsgroups.
>
> Why? Are you crazy?
>
> Nobody even loads emacs anymore. Some will say that they do, but
> they are lying.
Well I'm not lying :-)
Just in case any newcomers are reading this - Emacs is thriving, many many
people use it or one of the variant emacsen. And Gnus is a wonderful
news/mail reader - one of the best I'm guessing.
RM (the fake Lew Pitcher) is spreading misinformartion - again.
Is there any other emacs functionality that you (or anyone) particularly
like in emacs?
kindest regards
.Martin.
Am I a pro-code geek? What does *that* mean?
At any rate, I don't use Gnus, though I did at one point. SLRN is easier
to configure, but Gnus easily provides what slrn does if you follow the
setup steps.
Still, I use NN to read my news.
<http://www.nndev.org>
And I very much like it, thank you.
I don't like to program what already exists any more than the next
person. If someone has done the work for me, then why not use it? On the
other hand, I am not afraid to make the computer do what I want even if
I need to get a little more involved to accomplish the task. Most
people program a computer to some extent or another, some just don't do
it by writing text files of some high-level source language.
Aaron W. Hsu
>Is there any other emacs functionality that you (or anyone) particularly
>like in emacs?
If I am using Emacs to program Lisp or Scheme code, I definitely want to
use paredit. Gnus also works as a very good email client, so if you want
to try that, you can. The documentation provides a whole write-up on it
and why you may or may not want to manage your email this way.
I'm not a current Emacs user at the moment though, so I don't know what
the state of .emacs art is.
Aaron W. Hsu
Actually, nn was the first newsreader I ever used. But that was
twenty years ago.
> Thanks for your replies. After modifying .gnus, everything seems to
> work. Well, I'm afraid it did not speed it up drastically, though. Just
> changed the order of reading nntp, but I can live with it:) Thanks.
Are you getting news direct from a remote server? Depending on your
set-up, it might be worth using a small local server like leafnode - it
will download news for the groups you want to read in the background, and
then firing up Gnus is pretty fast because you are reading from your own
machine. I've used this for years with no problems.
> I like emacs - everyday I'm getting more and more comfortable with
> all the shortcuts, and therefore, more productive. I like the idea of
> doing a lot of stuff using one (escpecially CLI) program. Instead of
> having thunderbird, kompozer, texmaker, and knode open, I just switch
> the buffers in emacs.
Exactly! :-)
> After I get myself more familiar with operating gnus (thanks for the
> link), I will look into emacs calendar.
>
> Is there any other emacs functionality that you (or anyone) particularly
> like in emacs?
A dangerous question!! Doubtless others will pitch in on this, but I use
Auctex for editing LaTeX code - really good, and I use a lot of LaTeX
Gnus for mail and news
Bbdb for my address book
Flyspell for spell checking
Org mode is fantastic - its an organiser and outliner all in one
Remember - for note-taking, intergrates well with Org mode
Muse mode is good for producing a wide variety of outputs from one
working file eg
* Blosxom
* DocBook
* Groff
* HTML
* Info
* LaTeX
* PDF
* RDF (RSS 1.0)
* RSS 2.0
* Texinfo
* XHTML
* XML
Tramp for editing files remotely (and as root - don't run emacs as root!)
Tetris - for those meditative moments M-x tetris
The Doctor - for panic attacks. Try M-x doctor to consult your own emacs
psychotherapist :-)
Information on all of this is to be found in the Emacs wiki
The first step though, is to plough through the tutorial and the FAQ
Good luck :-)
> Hi,
> I'm trying to set up emacs to use newsgroups.
> I've got gnus working. I can browse newsgroups, however, when I want to
> post a message on a newsgroup, I get the following:
OK, someone has to say it so: Scrap emacs, use vi!
can vi read newsgroups?
--
Joost Kremers joostk...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
> OK, someone has to say it so: Scrap emacs, use vi!
"vi, the heart of evil" --notbob
>Thus .Martin. spoke:
I prefer Vi, but it's no Operating System, and Emacs can be an okay OS.
Aaron W. Hsu
No, it only does what it set out to do, not everything *except* what it
set out to do. ;-)
--keith
--
kkeller...@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
s/except/and/
I stand by my claim! DEATH TO EMACS!!!!!!
--keith
(no, I'm not really that rabid about the emacs vs. vi religious war)
Who cares? There are lots of programs specifically written to read
newsgroups.
Using emacs is like building a car with a multi-tool.
Lots of fun.
> Thanks for your replies. After modifying .gnus, everything seems to
> work. Well, I'm afraid it did not speed it up drastically,...
Look at your ~/.newsrc file. It should contain a list of only the
newsgroups that you've "subscribed" [1] to. I don't know how you
might have contrived this, but if you have somehow "subscribed" to all
the newsgroups avilable to you -- all those listed in your
~/.newsrc.eld -- then gnus will be fetching headers for all -- what?
25,000? -- groups on your server. That's a significant wqait even
over wired ethernet. That happens the first time you run gnus aginst a
particular server but after the first time, it should be fetching
headers only for the groups listed in ~/.newsrc, presumably a few or a
few dozen groups. And that should happen pretty fast even over dialup.
> Is there any other emacs functionality that you (or anyone) particularly
> like in emacs?
Hah! I do nearly everything in GNU Emacs.
+ M-x dired
Interactive file management. Delete, copy, move, rename, chomod
etc. etc.
+ M-x shell
You get a shell in a pseudo-terminal of type "dumb" so you can't
run, say, man or less in it. But all output from shell commands
stays in emacs' *shell* buffer. You can scroll back in it, kill
and yank text, browse long output, do anything that you can do in
an emacs buffer. When I'm on line, I have a window open, su'd to
root and running tcpdump (with lots of "expressions" to exclude
stuff I don't want to log) in an emacs shell. Any weird traffic
goes into the shell buffer where it's available immediately for
browsing or editing.
In particular, if you create an alias something like:
alias fetch lynx -dump -error_file=~/News/.lynxerr -nolog \
-noredir -noreferer -hiddenlinks=merge !*
you can do "fetch http://some.domain/some/file" and the text will
end up in your emacs shell buffer where you can copy or edit it
using the usual emacs key strokes. No mousing around between a
graphic browser and emacs when you want to do something with the
text of a web page.
+ M-x rmail
Matter of taste. I do all my mail in emacs with rmail. I archive
all my mail in RMAIL files.
Oh, and here's a little tweak on gnus from my ~/.emacs:
;;;; LOG ALL POSTS to a file
;;;; -----------------------
;; Specify the LOG FILE
(setq mds-gnus-log "~/News/post/GNUS-LOG")
;; Define a hook function. I dunno how to get a newline into string
;; except literally
(defun mds-gnus-send-hook ()
(write-region "
--- ### mds ### ---
" nil mds-gnus-log t)
(append-to-file (point-min) (point-max) mds-gnus-log)
(message "Wrote: %s" mds-gnus-log)
)
;; We now need to assign the preceding funtion to the variable (?)
;; message-send-hook. See (run-hooks 'message-send-hook) at
;; line 1927 in /usr/share/emacs/20.7/lisp/gnus/message.el
;;
;; message-send-hook will be called, not as a function per se, but
;; as an argument to run-hooks.
(add-hook 'message-send-hook 'mds-gnus-send-hook)
That logs all my news posts to a file. May not be optimal elisp but it
works for me.
I was a hotshot CP/M user (!) when I was plunked in front of a Unix
workstation with X, emacs and some multimedia authoring software and
told to "do something interesting". Gak! I was gobsmacked by emacs
until, after about a week, I bought the hard-copy manual and read it
cover to cover. Twenty years on, emacs is my most inportant tool,
even though I only rarely use many of it's most powerful features.
If you don't know *any* lisp, it would help to read the first couple
of chapters of a lisp manual, just to get the notion of the syntax.
That will make creating or modifying the hentracks in .emacs easier.
You don't have to read the whole Emacs Lisp manual until you feel
compelled to become a elisp wizard.
FWIW.
[1] subscribed: This was a bad choice of terminology. It makes usenet
novices think that it works like subscribing to a mailing
list. Only it doesn't. The "subscribed" status of a group is just
a notation in a file on your own machine. See ~/.newsrc.
--
Mike Spencer Nova Scotia, Canada
this is so typical for this newsgroup. all i do is kindly point out that for the
OP, vi is not an alternative to emacs because he wants to read newsgroups with
it, and suddenly i'm attacked by a vicious pack of wild dogs!
i'm gonna see if keithkeller.ca is still available. that'll teach you, you
schoolyard bully!
Thanks for the suggestions I'll try them. Yesterday I was playing with
org-mode - I love it!!! It's so logically structured.
I'm going to read some info about LISP. Yes, I can see it'll be
extremely useful, as it seems that emacs is here to stay:)
PS. how can I quote a part of someone else's post in my reply.
Generally, is there any way to make some pieces of text bold/italics
etc in emacs?
Thank you for help and patience:)
--
regards
.Martin.
> Are you getting news direct from a remote server? Depending on your
> set-up, it might be worth using a small local server like leafnode - it
> will download news for the groups you want to read in the background, and
> then firing up Gnus is pretty fast because you are reading from your own
> machine. I've used this for years with no problems.
Yes, I'm getting them directly from news.virginmedia.com (my ISP's
newsserver). Hmm, I'm not sure I want to involve other
applications/services in it. If I can't resolve it, though, I'll try to
set up the server solution. Thank you.
I love org-mode. That's the most surprisingly amazing solution I've come
across in a long time!!!
thanks for the tip
regards
.Martin.
On 2009-11-24, Joost Kremers <joostk...@yahoo.com> wrote:
> this is so typical for this newsgroup. all i do is kindly point out that for the
> OP, vi is not an alternative to emacs because he wants to read newsgroups with
> it, and suddenly i'm attacked by a vicious pack of wild dogs!
But vi can read newsgroups, depending on your vi clone, assuming the vi
clone supports http and the newsgroup is mirrored on a website.
elvis http://www.newsgroupmirror.example/alt.os.linux.slackware.html
> i'm gonna see if keithkeller.ca is still available. that'll teach you, you
> schoolyard bully!
No! Don't! Haven't we learned anything about esculating tensions in
this newsgroup? Haven't you noticed what happened to Lew Pitcher when
he did this? Do we really want to piss off the Keith Keller troll that
badly?
- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAksMEcgACgkQNj1TaGS9H5I8KgCggMzoyFSB59IaxjzXPbNhyqm2
ZAIAniKPoFUccxdYk2eV2aw0aTAjUFfc
=PY2/
-----END PGP SIGNATURE-----
> No, I'm only 'subscribed' to 3 newsgroups.
> I don't have a ~/.newsrc file. What I've got is ~/.newsrc-dribble which
> contains a mention of the three groups I'm subscribed to and a long list
> of numbers. Every time I start gnus it asks me if I want to load this
> file.
Something is wrong here: .newsrc-dribble is a sort of recovery file.
The state of gnus is "dribbled" into it at short intervals so that,
should you exit gnus ungracefully, you can restart without losing too
much state.
Try putting this line into ~/.emacs:
(setq gnus-startup-file "~/.newsrc")
and then be sure to exit gnus gracefully so that .newsrc and
.gnusrc.eld are saved. That should be just "q" in the *Group* buffer.
If you kill the *Group* buffer with "C-x k", .newsrc won't be saved
and you'll start again with .newsrc-dribble.
I'm not sure why you're having this trouble. gnus has always worked
for me without any similar problem.
FWIW,
Oh Joy!
pgp trash troll delete
> But vi can read newsgroups, depending on your vi clone, assuming
> the vi clone supports http and the newsgroup is mirrored on a
> website.
>
> elvis http://www.newsgroupmirror.example/alt.os.linux.slackware.html
Nobody uses elvis, you dumb fuck.
Nobody.
And nobody uses vim to read newsgroups. Anyone who uses a text
editor to read newsgroups ought to be banned from life, period, for
sheer stupidity.
And if not banned from life, at least exiled to Georgia, to live
with his mother.
> No! Don't! Haven't we learned anything about esculating tensions in
> this newsgroup?
Yes, we have. We have learned that somehow your daddy's tiny prick
somehow worked up enough friction in your mama's huge, well reamed
cunt, to produce a speck of lizella coward.
The Coward Hicks.
> Haven't you noticed what happened to Lew Pitcher when he did this?
> Do we really want to piss off the Keith Keller troll that badly?
Is AlanCowardHicks.com still available?
How about pgptrashtrolldelete.com?
How about I_tried_to_hijack_linux_when_"Pat"_was_sick.com?
Hmm?
I'm always pissed off, dammit! Just for that I'm moving to Canada to
register all of your domain names!
Damn, bozo.ca and wilddogs.ca are both taken. But packofwilddogs.ca is
available! IT'S MINE!!!!!!!
--keith
It seems that it was part of the problem. I would exit gnus (and emacs
by C-x C-c!!! Now that it has created the .newsrc files I doesn't ask
me about .newsrc-dribble. There are still things that puzzle me about
the whole situation. I opened gnus and it asked me about the number of
articles to download (I gave it 1000). I read your last reply
about exiting gracefully, which I followed. I opened emacs + gnus again.
It asked me about the number of posts to download again (why?). I gave
it 1000 and couldn't find your reply. There were other replies from
this thread but not yours. I pressed /-o to fetch old posts and your
post appeared. Why were other posts present apart from yours? Does
that mean that if I mark all 1000 posts as READ, next time it'll
download eg. 1000 OLDER posts. Sorry but it's puzzling me. If I fetch
all 70000 posts or so and mark everything as read, will it stop asking
me about the number of posts to be fetched and it'll just fetch these
few new unread posts? I'm going to experiment with it now.
--
regards
.Martin.
Well, duh!
> I opened gnus and it asked me about the number of articles to
> download (I gave it 1000). I read your last reply about exiting
> gracefully, which I followed. I opened emacs + gnus again. It
> asked me about the number of posts to download again (why?). I
> gave it 1000 and couldn't find your reply. There were other
> replies from this thread but not yours. I pressed /-o to fetch old
> posts and your post appeared. Why were other posts present apart
> from yours? Does that mean that if I mark all 1000 posts as READ,
> next time it'll download eg. 1000 OLDER posts. Sorry but it's
> puzzling me. If I fetch all 70000 posts or so and mark everything
> as read, will it stop asking me about the number of posts to be
> fetched and it'll just fetch these few new unread posts? I'm going
> to experiment with it now.
Go into .newsrc and edit that file directly. It keeps tracks of
what has been read.
I can confirm that
"The_best_part_of_RM_ran_down_the_crack_of_his_mommas_ass_and_ended_up_as_a_brown_stain_on_the_mattress.org" is still available.
Bonus BOZO points for naming the movie that saying was lifted from...
--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
"Bother!" said Pooh, as he wiped the vomit from his chin.
Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/
Well, obviously.
> emmel wrote:
>> Thus .Martin. spoke:
>>> I'm trying to set up emacs to use newsgroups.
>>
>> OK, someone has to say it so: Scrap emacs, use vi!
>
> can vi read newsgroups?
Nope, but slrn works fine with vim to *write* posts.
Oh, it's a good enough OS, but unfortunately the editor is crap.
Are you calling me a liar?!
Oh wait, different troll, wrong news group...