Re: nnimap woes after debian upgrade

2016-02-18 Thread Eric Abrahamsen
Pierfrancesco Caci  writes:

> Hello,
> yesterday I upgraded my system from debian wheezy to jessie.
> I'm having some difficulties getting gnus to work as before.
>
> Here is what I had configured before the upgrade:
>
>  '(gnus-secondary-select-methods
> (quote (
>(nnimap "localhost" (nnimap-stream ssl))
>(nnimap "pf-tippete" (nnimap-address my\.imapserver\.it)
> (nnimap-stream ssl)
> (nnimap-expunge-on-close always)
>
> So, first problem, I couldn't access localhost anymore. A bit of
> fiddling led me to:
>
> ((nnimap "localhost"
>  (nnimap-stream network))

I don't actually know if that "localhost" is supposed to be interpreted
as an actual address, but the standard way of doing that would look
like:

(nnimap "decorative server name"
  (nnimap-address "localhost")
  (nnimap-stream network)
  (nnimap-authenticator login)
  (nnimap-user "y...@user.name"))

I don't know how you have your dovecot set up, so maybe authentication
will work differently for you, but I don't know how dovecot would know
what user you want to log in as without the nnimap-user clause in there.

[...]

> The second problem is that I can't access the remote server anymore, I
> get this error:
>
> Opening connection to my.imapserver.it via tls...
> Unable to open server nnimap+pf-tippete due to: Wrong type argument: stringp, 
> my\.imapserver\.it
> Opening nnimap server on pf-tippete...failed: 
> No new newsgroups

The error message says it all: change my\.imapserver\.it to the string
"my.imapserver.it" and you should be fine.

If the upgrade is taking you through several new versions of Gnus, it's
probably worth going back to the Gnus manual and reading the section on
IMAP again, just to make sure you've got everything right.

HTH,
Eric


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: rendring Dilbert strip inline

2016-02-18 Thread Lars Ingebrigtsen
Saša Janiška  writes:

> I'm subscribed to the Dilbert Daily Strip and would like to be able to
> see it inline - rendered in the buffer without need to open new tab in
> my Firefox.

Are you getting them via email?  Gnus inhibits loading external images
in Emacs (to avoid privacy problems with web bug trackers and the like).

If that's the case, the `W D W' command should display the images.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Trigger spell checking before sending

2016-02-18 Thread Emanuel Berg
Pietro  writes:

> run-hooks: Wrong number of arguments [...]
>
> This is what I get in my mini-buffer when I send my
> email, any thoughts?

OK, I see the problem, it doesn't get
called interactively.

Try this instead:

(defun spell-before-send ()
  (let*((lang-input (read-from-minibuffer "Language [e or s]: "))
(lang (pcase lang-input
("e" "american-insane")
("s" "svenska") )))
(when lang
  (ispell-change-dictionary lang)
  (ispell-message) )))

You have to change the interface at the second line,
as well as the dictionaries at lines four and five,
of course.

Another thing - here is a hint how to do hooks without
the lambda stuff. It amounts to the same but gives
more control and more easy-to-handle code.

First check out if you have anything in the hook
variable already. If you do, and you want it, put it
before (or after) the third line below.

Then, evaluate the commented (first) line, then
evaluate the function (at the second line), then set
the hook to the hook function (the fourth line).

;; (setq message-send-hook nil)
(defun message-send-hook-f ()
  (spell-before-send) )
(setq message-send-hook #'message-send-hook-f)

> I am new to Emacs Lisp therefore I could some
> silly mistake.

You don't have to be new to Lisp to do that.

Is there anything you don't understand in the code?
If it is, find out using the documentation (online
help: `C-h f', `C-h v', etc.) *or* ask here. ("Online"
= not on paper :))

When you understand it move on to do other things :)

-- 
underground experts united
http://user.it.uu.se/~embe8573


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


nnimap woes after debian upgrade

2016-02-18 Thread Pierfrancesco Caci

Hello,
yesterday I upgraded my system from debian wheezy to jessie.
I'm having some difficulties getting gnus to work as before.

Here is what I had configured before the upgrade:

 '(gnus-secondary-select-methods
(quote (
   (nnimap "localhost" (nnimap-stream ssl))
   (nnimap "pf-tippete" (nnimap-address my\.imapserver\.it)
(nnimap-stream ssl)
(nnimap-expunge-on-close always)

So, first problem, I couldn't access localhost anymore. A bit of
fiddling led me to:

((nnimap "localhost"
 (nnimap-stream network))

which I suppose means there's something wrong with the dovecot ssl
setup. I don't really care about that since it's all on the same
machine, but what also changed is that for some reason gnus now thinks
that everything in ~/Mail is an imap folder, while that was not the
case.
This means that is attepmting to read as imap folders also stuff that
was there because a separate mail client caches my work mail in the same
directory. I solved this by editing gnus-ignored-newsgroups and adding
the top folder to the regex. I still get weird stuff in the tree though,
including all the imap indexes and even directories with ~ at the end of
the name, and I'm not sure if this is a gnus problem or something that
has changed in dovecot.

The second problem is that I can't access the remote server anymore, I
get this error:

Opening connection to my.imapserver.it via tls...
Unable to open server nnimap+pf-tippete due to: Wrong type argument: stringp, 
my\.imapserver\.it
Opening nnimap server on pf-tippete...failed: 
No new newsgroups

I tried using the ip address and it didn't like it either.

Nothing has changed on the remote server, so this is a local problem.

Both the localhost and the remote server seem to work properly when I
use claws-mail to access them.

What else can I try?

Thanks

Pf



-- 
Pierfrancesco Caci, ik5pvx
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Trigger spell checking before sending

2016-02-18 Thread Pietro
Emanuel Berg  writes:

> Pietro  writes:
>
>> Alternatively I am thinking of writing a function
>> which asks the user for the language the ispell
>> function should check for, it does not need to
>> accept all the languages and for instance I would be
>> more than happy to have something like that :
>>
>> Mini-buffer says: [Which language ?[e : English, i:
>> Italian]
>
> I still don't like the idea of having this complicated
> a thing in a hook; on the other hand, I just realized
> that the code I provided isn't compatible with the
> hook solution, so it isn't of any help if you are set
> on that idea.
>
> OK, try this, only change the Swedish stuff for
> Italian, no?
>
> (defun message-spell-before-send (lang-char)
>   (interactive "s(e)nglish or (s)wedish: ")
>   (let ((lang (pcase lang-char
> ("e" "american-insane") ; these has to be added outside of 
> Emacs
> ("s" "svenska") )))
> (if lang
> (progn
>   (ispell-change-dictionary lang) ; N.B. side-effect - this isn't 
> reset
>   (ispell-message) )
>   (message "Spelling not done - no support for: %s" lang-char) )))
>
> If you don't want to spell, just hit RET.
Hi,
sorry for my late reply, I was busy ... working! Ouch!

Thanks a lot for your answers guys, much appreciated :-)

I would like to implement one of the previous follow up which explained how to 
auto
detect the buffer's language but for now I would be more than happy with
this simple and good solution, the function works fine when I call it
from M-x "name-function" but something strange happens when that is
called by the message-send hook:

run-hooks: Wrong number of arguments: (lambda (lang-char) (interactive
"s(e)nglish or (s)wedish: ") (let ((lang (cond ((equal lang-char "e")
(let nil "british")) ((equal lang-char "i") (let nil "italiano")) (t
nil (if lang (progn (ispell-change-dictionary lang)
(ispell-message)) (message "Spelling not done - no support for: %s"
lang-char, 0

This is what I get in my mini-buffer when I send my email, any thoughts ?
I am new to Emacs Lisp therefore I could some  silly mistake.

Thanks a lot.
Pietro


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


fixed more (was: fixed)

2016-02-18 Thread Gijs Hillenius
On 18 Feb 2016, Adam Sjøgren wrote:

> Gijs writes:
>
>> This:
>>
>> ; Decode headers before splitting on them:
>> (setq nnmail-mail-splitting-decodes t)
>>
>> solved my problem.
>
> You also had to set some bbdb-related variables and fixed an error in
> your split-rules, right?

Yes


The last lines of

(setq nnimap-split-fancy
  '(|
  
  [...]  snipped many lines

(: (lambda ()
 (car (bbdb/gnus-split-method
;; Default mailbox
"INBOX"))


Previously, the final line was:

("INBOX" "")))

Which I had copied years ago from an unknown source.

There are 2 differences, the "", and an extra pair of ().

Having both, B q or B t on unsplitable messages will
return:

message will go to mail.misc

Removing only the "" but keeping the equally superfluous (),

B q / B t will reply

message will go to bogus

Removing both, which, uhm, follows the example in the manual, will get B
q / B t to return

message will go to INBOX


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: fixed

2016-02-18 Thread Adam Sjøgren
Gijs writes:

> This:
>
> ; Decode headers before splitting on them:
> (setq nnmail-mail-splitting-decodes t)
>
> solved my problem.

You also had to set some bbdb-related variables and fixed an error in
your split-rules, right?

Please share the insight gained on those as well.


  Best regards,

Adam

-- 
 "You do not know what geometry means, do you?"   Adam Sjøgren
 "Of course I do, it is a type of camel."a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


fixed (was: Can Gnus remove its 'Seen' mark?)

2016-02-18 Thread Gijs Hillenius
On 17 Feb 2016, Gijs Hillenius wrote:


Splitting works just fine. Adam Sjøgren helped me find out that the
problem was that the mail's subject message was encoded (utf8).

This:

; Decode headers before splitting on them:
(setq nnmail-mail-splitting-decodes t)

solved my problem.

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: rendring Dilbert strip inline

2016-02-18 Thread Saša Janiška
a...@koldfront.dk (Adam Sjøgren) writes:

> Maybe some of them are relevant for your case?

Thank you. It helps with some other messages containing images so that I
can use Kv to view them, but not automatically.

But, it does not help rendering Dilbert cartoon.


Sincerely,
Gour

-- 
From wherever the mind wanders due to its flickering and unsteady
nature, one must certainly withdraw it and bring it back under
the control of the self.


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: rendring Dilbert strip inline

2016-02-18 Thread Adam Sjøgren
Saša writes:

> I'm subscribed to the Dilbert Daily Strip and would like to be able to
> see it inline - rendered in the buffer without need to open new tab in
> my Firefox.

I am using these topic parameters on groups I want to see images in:

  ((mm-inline-text-html-with-images t)
   (mm-discouraged-alternatives nil)
   (gnus-blocked-images 
"pheedo\\|feedburner.com\\|doubleclick.net\\|feeds.wordpress.com")
   (mm-w3m-safe-url-regexp nil)
   (shr-max-image-proportion 0.5)
   (mm-automatic-display
(union
 '("text/html")
 mm-automatic-display)))

Maybe some of them are relevant for your case?

(I'm using the default HTML renderer, shr.)


  Best regards,

Adam

-- 
 "We get our thursdays from a banana."Adam Sjøgren
 a...@koldfront.dk


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


rendring Dilbert strip inline

2016-02-18 Thread Saša Janiška
Hello,

I'm subscribed to the Dilbert Daily Strip and would like to be able to
see it inline - rendered in the buffer without need to open new tab in
my Firefox.

At the moment I've the following in my Gnus config:

(setq mm-text-html-renderer 'shr)

Tried with:

(setq mm-text-html-renderer 'gnus-w3m)

but same thing, I was only able to view it externally.

Any pointer?


Sincerely,
Gour

-- 
As a blazing fire turns firewood to ashes, O Arjuna, so does the
fire of knowledge burn to ashes all reactions to material activities.


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: message-fill-column & replies

2016-02-18 Thread Saša Janiška
a...@koldfront.dk (Adam Sjøgren) writes:

> If I want a quote re-filled, I just use M-q with point anywhere within
> it.

Thanks for the tip - it is better than 'vjgq' (I use Spacemacs with
vim's way to reflow)...although I still believe I was not doing it in
the past...well, maybe we're getting older. :-)


Sincerely,
Gour

-- 
Everyone is forced to act helplessly according to the qualities
he has acquired from the modes of material nature; therefore no
one can refrain from doing something, not even for a moment.


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english