Re: auto-kill mails with "X-Spam-Flag: YES"

2016-02-16 Thread Emanuel Berg
Lars Ingebrigtsen  writes:

>> But in Gnus v5.13, when the debugger is at line
>> 2085 in gnus-score.el, in `gnus-score-string',
>> *Headers* contains: ((To .
>> "") (X-Spam-Flag . "YES")
>> (Subject . "=?utf-8?B?TWluIGZpdHRhIHbDpXQ=?="))
>> After that *Headers* doesn't change until the
>> function is done.
>
> Geez, the call sequence there is hard to follow...
> hm... Well, while debugging, I think the
> edebug-outside-buffer variable should tell you what
> buffer all this is taking place in?

`edebug-outside-buffer' is

#

from start to finish of `gnus-score-string'.

By the way, I just tried

(gnus-kill "X-Spam-Flag" "YES" '(gnus-summary-mark-as-read nil "X") t)

and it worked!

So perhaps killing isn't that bad after all :)_

-- 
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


Re: Sending emails from multiple accounts on same smtp server

2016-02-16 Thread Eric S Fraga
On Tuesday, 16 Feb 2016 at 22:53, Sivaram Neelakantan wrote:
> I have an authinfo file of the following format
>
> machine smtp.gmail.com login nsivaramx...@gmail.com password xxx port 587
> machine smtp.gmail.com login shanxx...@gmail.com password xxx  port 587

I cannot help directly as I don't use emacs for the smtp end, using
msmtp instead.  However, I can suggest that the name of the system in
the authinfo file need not be the actual host name.  You could have

  machine nsivaramgmail login ...
  machine shangmail login ...

I do this for retrieving email from two different gmail accounts.  For
fetching, it's a case of specifying a name for the server which matches
the name given in the authinfo file:

  (nnimap "nsivaramgmail" (nnimap-address "imap.gmail.com") ...)

etc.  Whether you can do the same for sending, I am not sure, but it
wouldn't surprise me knowing that everything is possible in gnus ;-)

-- 
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 25.0.91.1 + Ma Gnus v0.16 + evil-git-ff74cfb
: BBDB version 3.1.2 (2015-10-28 10:47:01+00:00)

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


Sending emails from multiple accounts on same smtp server

2016-02-16 Thread Sivaram Neelakantan
I have an authinfo file of the following format

machine smtp.gmail.com login nsivaramx...@gmail.com password xxx port 587
machine smtp.gmail.com login shanxx...@gmail.com password xxx  port 587

Depending on the group I'm in, I'd like it to use one or the other
account.  I thought using a setup like

(".*python\\.*" 
 (visible . t) 
 (display . all) 
 (posting-style 
  (address "nsivaram...@gmail.com") 
  (name "Sivaram Neelakantan") 
  (body "\n\nsivaram\n-- \n") 
  (user-mail-address "nsivaram...@gmail.com"))) 

in posting styles would choose the right smtp id to send from authinfo
but it doesn't seem to do that. Sometimes I see one or the other email
FROM header depending on which group I entered first

Any advice on how to make it choose the right smtp account based on
address? and set the appropriate headers?

sivaram
-- 

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