Gnus development mailing list
 help / color / mirror / Atom feed
* problems with gcc
@ 2021-01-12  8:14 Uwe Brauer
  2021-01-12 11:37 ` Emanuel Berg
  2021-01-12 13:53 ` Adam Sjøgren
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Brauer @ 2021-01-12  8:14 UTC (permalink / raw)
  To: ding


Hi

I have set, as recommended in the documentation 

(setq gnus-message-archive-group
      '((if (message-news-p)
	    "sent-news"
	  "sent-mail")))

When I use gnus-group-mail in the main group buffer I obtain

The following buffer

,----
| To: 
| Subject: 
| From: Uwe Brauer <oub@mat.ucm.es>
| Gcc: nnml+archive:sent-mail, nnml+archive:sent-news
| --text follows this line--
`----

When I do this from any other, no gnus buffer I obtain the same.

However I have also set in my mail buffers 


[ ] GCC: Value Menu To current group
    Specify default value for GCC header. More

So when I use 

 runs the command gnus-summary-post-news 
I obtain

,----
| To: 
| Subject: 
| Gcc: nnimap+UCMgmail:INBOX, nnml+archive:sent-news
| From: Uwe Brauer <oub@mat.ucm.es>
| Reply-To: Uwe Brauer <oub@mat.ucm.es>
| --text follows this line--
`----

Which contains the nnml+archive:sent-news

That I don't understand.

Any ideas?

Regards

Uwe Brauer



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12  8:14 problems with gcc Uwe Brauer
@ 2021-01-12 11:37 ` Emanuel Berg
  2021-01-12 13:28   ` Uwe Brauer
  2021-01-12 13:30   ` Uwe Brauer
  2021-01-12 13:53 ` Adam Sjøgren
  1 sibling, 2 replies; 9+ messages in thread
From: Emanuel Berg @ 2021-01-12 11:37 UTC (permalink / raw)
  To: ding

Uwe Brauer wrote:

> (setq gnus-message-archive-group
>       '((if (message-news-p)
> 	    "sent-news"
> 	  "sent-mail")))
>
> [...]
>
> So when I use 
>
>  runs the command gnus-summary-post-news 
> I obtain
>
> ,----
> | To: 
> | Subject: 
> | Gcc: nnimap+UCMgmail:INBOX, nnml+archive:sent-news
> | From: Uwe Brauer <oub@mat.ucm.es>
> | Reply-To: Uwe Brauer <oub@mat.ucm.es>
> | --text follows this line--
> `----
>
> Which contains the nnml+archive:sent-news
>
> That I don't understand.

... why not?

Don't you expect `message-news-p' to be true after
`gnus-summary-post-news'?

Well, it is anyway. You know, news ... news :)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12 11:37 ` Emanuel Berg
@ 2021-01-12 13:28   ` Uwe Brauer
  2021-01-12 17:52     ` Emanuel Berg
  2021-01-12 13:30   ` Uwe Brauer
  1 sibling, 1 reply; 9+ messages in thread
From: Uwe Brauer @ 2021-01-12 13:28 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]


> Uwe Brauer wrote:

> ... why not?

> Don't you expect `message-news-p' to be true after
> `gnus-summary-post-news'?

> Well, it is anyway. You know, news ... news :)

But why then to have if?

Ok then which command should I use to send, hm, mail?
I mean I want one GCC for mail and one for newsgroups.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12 11:37 ` Emanuel Berg
  2021-01-12 13:28   ` Uwe Brauer
@ 2021-01-12 13:30   ` Uwe Brauer
  1 sibling, 0 replies; 9+ messages in thread
From: Uwe Brauer @ 2021-01-12 13:30 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]


> Uwe Brauer wrote:

> ... why not?

> Don't you expect `message-news-p' to be true after
> `gnus-summary-post-news'?

> Well, it is anyway. You know, news ... news :)

I tried  gnus-summary-mail-other-window and it shows the same behavior.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12  8:14 problems with gcc Uwe Brauer
  2021-01-12 11:37 ` Emanuel Berg
@ 2021-01-12 13:53 ` Adam Sjøgren
  2021-01-12 15:56   ` Uwe Brauer
  2021-01-12 16:05   ` Uwe Brauer
  1 sibling, 2 replies; 9+ messages in thread
From: Adam Sjøgren @ 2021-01-12 13:53 UTC (permalink / raw)
  To: ding

Uwe writes:

> I have set, as recommended in the documentation 
>
> (setq gnus-message-archive-group
>       '((if (message-news-p)
> 	    "sent-news"
> 	  "sent-mail")))
>
> When I use gnus-group-mail in the main group buffer I obtain
>
> The following buffer
>
> ,----
> | To: 
> | Subject: 
> | From: Uwe Brauer <oub@mat.ucm.es>
> | Gcc: nnml+archive:sent-mail, nnml+archive:sent-news
> | --text follows this line--
> `----

Do you have anything else in your configuration about sent-news?
Something in group/topic parameters?

I have this:

  (setq gnus-message-archive-group
        '((if (message-news-p)
              (concat "news-" (format-time-string "%Y"))
            (concat "mail-" (format-time-string "%Y")))))

in my .gnus, and when I press 'm' (gnus-group-mail) in the *Group*
buffer, I get:

,----
| To: 
| Subject: 
| From: "Adam Sjøgren" <asjo@koldfront.dk>
| Gcc: nnml+archive:mail-2021
`----

If I instead press 'a' (gnus-group-post-news), I get:

,----
| Newsgroups: 
| Subject: 
| From: "Adam Sjøgren" <asjo@koldfront.dk>
| Gcc: nnml+archive:news-2021
`----

as expected. I suspect your configuration is funky :-)


  Best regards,

    Adam

-- 
 "What if tomorrow wasn't there                             Adam Sjøgren
  Never a next week, never just another year"          asjo@koldfront.dk



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12 13:53 ` Adam Sjøgren
@ 2021-01-12 15:56   ` Uwe Brauer
  2021-01-12 16:05   ` Uwe Brauer
  1 sibling, 0 replies; 9+ messages in thread
From: Uwe Brauer @ 2021-01-12 15:56 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

>>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes:

> Uwe writes:
>> I have set, as recommended in the documentation 
>> 
>> (setq gnus-message-archive-group
>> '((if (message-news-p)
>> "sent-news"
>> "sent-mail")))
>> 
>> When I use gnus-group-mail in the main group buffer I obtain
>> 
>> The following buffer
>> 
>> ,----
>> | To: 
>> | Subject: 
>> | From: Uwe Brauer <oub@mat.ucm.es>
>> | Gcc: nnml+archive:sent-mail, nnml+archive:sent-news
>> | --text follows this line--
>> `----

> Do you have anything else in your configuration about sent-news?
> Something in group/topic parameters?

No. 


> I have this:

>   (setq gnus-message-archive-group
>         '((if (message-news-p)
>               (concat "news-" (format-time-string "%Y"))
>             (concat "mail-" (format-time-string "%Y")))))

> in my .gnus, and when I press 'm' (gnus-group-mail) in the *Group*
> buffer, I get:

As I said I just followed the documentation which recommends 
 (setq gnus-message-archive-group
 '((if (message-news-p)
 "sent-news"
 "sent-mail")))

However describe variable gnus-message-archive-group tells me:
gnus-message-archive-group is a variable defined in ‘gnus.el’.
Its value is ((if (message-news-p) "sent-news" "sent-mail"))
Original value was 
((format-time-string "sent.%Y-%m"))

So everything should be fine I don't like the original setting since I
want to distinguish between mail and news (maybe I shouldn't). I will
try your setting 

Regards

Uwe 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12 13:53 ` Adam Sjøgren
  2021-01-12 15:56   ` Uwe Brauer
@ 2021-01-12 16:05   ` Uwe Brauer
  1 sibling, 0 replies; 9+ messages in thread
From: Uwe Brauer @ 2021-01-12 16:05 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]


> Uwe writes:

> Do you have anything else in your configuration about sent-news?
> Something in group/topic parameters?

> I have this:

>   (setq gnus-message-archive-group
>         '((if (message-news-p)
>               (concat "news-" (format-time-string "%Y"))
>             (concat "mail-" (format-time-string "%Y")))))

> in my .gnus, and when I press 'm' (gnus-group-mail) in the *Group*
> buffer, I get:

> ,----
> | To: 
> | Subject: 
> | From: "Adam Sjøgren" <asjo@koldfront.dk>
> | Gcc: nnml+archive:mail-2021
> `----

> If I instead press 'a' (gnus-group-post-news), I get:

> ,----
> | Newsgroups: 
> | Subject: 
> | From: "Adam Sjøgren" <asjo@koldfront.dk>
> | Gcc: nnml+archive:news-2021
> `----

> as expected. I suspect your configuration is funky :-)


I obtain with your setting: run in the (main group) buffer

Newsgroups: 
Subject: 
From: Uwe Brauer <oub@mat.ucm.es>
Gcc: nnml+archive:news-2021, nnml+archive:sent-news
--text follows this line--

Or 

To: 
Subject: 
From: Uwe Brauer <oub@mat.ucm.es>
Gcc: nnml+archive:mail-2021, nnml+archive:sent-news

So the f... Sent-news is always there hm 

Ok I found it my mistake!


(defun my-new-insert-sent-news-gcc ()
  (interactive)
  (save-excursion
  (message-carefully-insert-headers (list (cons 'Gcc (concat "nnml+archive:sent-news"))))))
(add-hook 'message-setup-hook 'my-new-insert-sent-news-gcc)

I don't know when and why I put it. Sorry for the noise 

Uwe 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12 13:28   ` Uwe Brauer
@ 2021-01-12 17:52     ` Emanuel Berg
  2021-01-13 18:50       ` Uwe Brauer
  0 siblings, 1 reply; 9+ messages in thread
From: Emanuel Berg @ 2021-01-12 17:52 UTC (permalink / raw)
  To: ding

Uwe Brauer wrote:

>> Don't you expect `message-news-p' to be true after
>> `gnus-summary-post-news'?
>>
>> Well, it is anyway. You know, news ... news :)
>
> But why then to have if?

It is so to have different archives for news and mails, as
you know.

I don't like that, I like it to be the same, interface and
archive and everything, at least everything on my end of
things, so I do

  (setq message-default-news-headers "To: ")
  (setq message-default-mail-headers "Newsgroups: ")

  (setq gnus-gcc-mark-as-read t)
  (setq gnus-message-archive-group "nnml:mail.sent")

then send with

  (gnus-post-news 'post "") ; [1]

> Ok then which command should I use to send, hm, mail?

`compose-mail' ?

But again I think it makes more sense to have the same
interface and then let the content of the headers decide if it
is news, mail, or both.

> I mean I want one GCC for mail and one for newsgroups.

Yes, and you should be on the right track :)


[1] new-message, line 54 in
    https://dataswamp.org/~incal/emacs-init/gnus/gnus-my.el

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems with gcc
  2021-01-12 17:52     ` Emanuel Berg
@ 2021-01-13 18:50       ` Uwe Brauer
  0 siblings, 0 replies; 9+ messages in thread
From: Uwe Brauer @ 2021-01-13 18:50 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]

>>> "EB" == Emanuel Berg <moasenwood@zoho.eu> writes:

> Uwe Brauer wrote:
>>> Don't you expect `message-news-p' to be true after
>>> `gnus-summary-post-news'?
>>> 
>>> Well, it is anyway. You know, news ... news :)
>> 
>> But why then to have if?

> It is so to have different archives for news and mails, as
> you know.

> I don't like that, I like it to be the same, interface and
> archive and everything, at least everything on my end of
> things, so I do

>   (setq message-default-news-headers "To: ")
>   (setq message-default-mail-headers "Newsgroups: ")

>   (setq gnus-gcc-mark-as-read t)
>   (setq gnus-message-archive-group "nnml:mail.sent")

> then send with

>   (gnus-post-news 'post "") ; [1]

>> Ok then which command should I use to send, hm, mail?

> `compose-mail' ?

> But again I think it makes more sense to have the same
> interface and then let the content of the headers decide if it
> is news, mail, or both.

>> I mean I want one GCC for mail and one for newsgroups.

> Yes, and you should be on the right track :)


> [1] new-message, line 54 in
>     https://dataswamp.org/~incal/emacs-init/gnus/gnus-my.el


Interesting thanks. 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-13 18:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12  8:14 problems with gcc Uwe Brauer
2021-01-12 11:37 ` Emanuel Berg
2021-01-12 13:28   ` Uwe Brauer
2021-01-12 17:52     ` Emanuel Berg
2021-01-13 18:50       ` Uwe Brauer
2021-01-12 13:30   ` Uwe Brauer
2021-01-12 13:53 ` Adam Sjøgren
2021-01-12 15:56   ` Uwe Brauer
2021-01-12 16:05   ` Uwe Brauer

Gnus development mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/ding

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 ding ding/ http://inbox.vuxu.org/ding \
		ding@inbox.vuxu.org
	public-inbox-index ding

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git