Gnus development mailing list
 help / color / mirror / Atom feed
* [rgnus] FCC in message-mode to nnml group?
@ 1997-01-07 20:08 Mark Borges
  1997-01-07 20:25 ` Lars Magne Ingebrigtsen
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Mark Borges @ 1997-01-07 20:08 UTC (permalink / raw)


Would/could it work? If so, what would the semantics be? (the message
would need to be filed to a dynamic numeric filename I suppose). I'd
like the reply that I save to be filed in the *same* nnml folder, for
threading purposes.

Or does everyone just bag FCC: use and instead opt for BCC: or CC:?

Finally took the plunge from VM to rgnus for regular email,

-- 
  -mb-


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 20:08 [rgnus] FCC in message-mode to nnml group? Mark Borges
@ 1997-01-07 20:25 ` Lars Magne Ingebrigtsen
  1997-01-07 20:55 ` Lars Balker Rasmussen
  1997-01-07 21:23 ` David S. Goldberg
  2 siblings, 0 replies; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-01-07 20:25 UTC (permalink / raw)


Mark Borges <mdb@cdc.noaa.gov> writes:

> Would/could it work? If so, what would the semantics be? (the message
> would need to be filed to a dynamic numeric filename I suppose). I'd
> like the reply that I save to be filed in the *same* nnml folder, for
> threading purposes.
> 
> Or does everyone just bag FCC: use and instead opt for BCC: or CC:?

People use Gcc instead.  See the manual for details.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Ingebrigtsen


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 20:08 [rgnus] FCC in message-mode to nnml group? Mark Borges
  1997-01-07 20:25 ` Lars Magne Ingebrigtsen
@ 1997-01-07 20:55 ` Lars Balker Rasmussen
  1997-01-07 22:58   ` Steven L Baur
  1997-01-07 21:23 ` David S. Goldberg
  2 siblings, 1 reply; 11+ messages in thread
From: Lars Balker Rasmussen @ 1997-01-07 20:55 UTC (permalink / raw)


Mark Borges <mdb@cdc.noaa.gov> writes:
> Would/could it work? If so, what would the semantics be? (the message
> would need to be filed to a dynamic numeric filename I suppose). I'd
> like the reply that I save to be filed in the *same* nnml folder, for
> threading purposes.

Sure it'd work.  Naïve pseudo-code follows:

(defvar mdb-nnml-group)
(defun mdb-decide-nnml-group () 
    (setq mdb-nnml-group "~/Mail/foo/"))

(defun mdb-return-and-add-to-nnml-counter ()
;; use (concat mdb-nnml-group ".next") to decide next num and add to it
)

(addhook message-setup-hook 'mdb-decide-nnml-group)

(setq message-default-headers
    (concat "Fcc: " mdb-nnml-group (mdb-return-and-add-to-nnml-counter) "\n"))

> Or does everyone just bag FCC: use and instead opt for BCC: or CC:?

I use old-fashioned Fcc: because I like it simple :-)
-- 
Lars Balker Rasmussen                   <URL:http://www.daimi.aau.dk/~gnort/>


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 20:08 [rgnus] FCC in message-mode to nnml group? Mark Borges
  1997-01-07 20:25 ` Lars Magne Ingebrigtsen
  1997-01-07 20:55 ` Lars Balker Rasmussen
@ 1997-01-07 21:23 ` David S. Goldberg
  2 siblings, 0 replies; 11+ messages in thread
From: David S. Goldberg @ 1997-01-07 21:23 UTC (permalink / raw)
  Cc: Ding Gnus List

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

I don't know if this will work in your situation, but it's what I use.
I got used to using Fcc with mh-e, which copies to MH folders.  My MH
folders are now my nnml groups, so I wanted an Fcc that would both
copy to the folder in MH style, but also update the overview file so I
wouldn't have to run nnml-generate-nov-databases.  I came up with the
following after poring over the nnml source.  I'm not sure how safe it
is to count on nnml-request-accept-article's calling convention but
it's the best I could find.

Note that I decided to grab the Fcc behavior from mh-e so
I'd get completion on group names.  That requires a bit of mucking
with the resulting string (have to convert from x/y/z to x.y.z) but to
me it's worth it.  If you don't use that then your
message-fcc-handler-function can be made much simpler.


[-- Attachment #2: Type: application/octet-stream, Size: 702 bytes --]

;;; from my .gnus

(require 'mh-e)
(require 'mh-comp)

(defun dsg-message-mh-fcc-to-nnml (fldr)
  "MH style Fcc with support for nnml usage."
  (let* ((fldr (substring fldr (1+ (length (getenv "HOME")))))
	 (group (if (= (string-to-char fldr) ?+)
		    (substring fldr 1)
		  fldr)))
    (if (string-match "/$" group)
	(setq group (replace-match "" nil nil group)))
    (while (string-match "/" group)
      (setq group (replace-match "." nil nil group)))
    (nnml-request-accept-article group nil t)))

(setq message-fcc-handler-function 'dsg-message-mh-fcc-to-nnml)

(add-hook 'message-mode-hook '(lambda ()
				(require 'mh-comp)
				(define-key message-mode-map
				  "\C-c\C-f\C-w" 'mh-to-fcc)))

[-- Attachment #3: Type: text/plain, Size: 131 bytes --]

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 617-271-3887
Email: dsg@mitre.org

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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 20:55 ` Lars Balker Rasmussen
@ 1997-01-07 22:58   ` Steven L Baur
  1997-01-08  0:49     ` Mark Borges
                       ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Steven L Baur @ 1997-01-07 22:58 UTC (permalink / raw)


>>>>> "Lars" == Lars Balker Rasmussen <gnort@daimi.aau.dk> writes:

> Mark Borges <mdb@cdc.noaa.gov> writes:
Mark> Would/could it work?

Mark> Or does everyone just bag FCC: use and instead opt for BCC: or CC:?

Lars> I use old-fashioned Fcc: because I like it simple :-)

I like it too.  The way I use it with nnml is to save to .spool files
in my procmail spool directory (files not written to by any procmail
recipes so there is no conflict), and then let Gnus incorporate it as
new mail later on.  No muss, no fuss, it works for me :-).

There's Gcc too as Lars pointed out, but I've never bothered to figure
out how to use it with nnml.  I use Gcc to keep a copy of everything
outgoing in nnfolder+archive, but Fcc -> *.spool -> nnml for everything
outgoing that isn't going to come back like non-list email.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"That Bill Clinton.  He probably doesn't know how to log on to the
Internet."  -- Rush Limbaugh, noted Computer Expert


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 22:58   ` Steven L Baur
@ 1997-01-08  0:49     ` Mark Borges
  1997-01-08  2:11     ` David Moore
  1997-01-08  7:40     ` Jens Lautenbacher
  2 siblings, 0 replies; 11+ messages in thread
From: Mark Borges @ 1997-01-08  0:49 UTC (permalink / raw)


[ Thanks everyone for all the replies. I'd forgotten about Gcc:. Next
  time I truly will once again RTFM before asking the list ]

In the meantime...,

>> On 07 Jan 1997 14:58:07 -0800,
>> Steven L Baur(sb) wrote:
>>>>>> "Lars" == Lars Balker Rasmussen <gnort@daimi.aau.dk> writes:

Lars> I use old-fashioned Fcc: because I like it simple :-)

sb> I like it too.  The way I use it with nnml is to save to .spool
sb> files in my procmail spool directory (files not written to by any
sb> procmail recipes so there is no conflict), and then let Gnus
sb> incorporate it as new mail later on.  No muss, no fuss, it works
sb> for me :-).

I don't understand -- in my procmail setup, procmail writes to .spool
files that Gnus incorporates as new mail. So how can you write to the
same .spool file (so that Gnus puts them in the same group you mailed
from) and avoid file locking problems?

sb> There's Gcc too as Lars pointed out, but I've never bothered to

FWIW, this is what I finally settled on, and it appears to be doing
what I want so far.

(setq gnus-outgoing-message-group 'mdb-file-mail)

(defun mdb-file-mail()
  (if (message-mail-p)
    (save-excursion
      (set-buffer "*Group*")
      (gnus-group-group-name))))

-- 
  -mb-


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 22:58   ` Steven L Baur
  1997-01-08  0:49     ` Mark Borges
@ 1997-01-08  2:11     ` David Moore
  1997-01-08  3:45       ` Sudish Joseph
  1997-01-08  7:40     ` Jens Lautenbacher
  2 siblings, 1 reply; 11+ messages in thread
From: David Moore @ 1997-01-08  2:11 UTC (permalink / raw)


Steven L Baur <steve@miranova.com> writes:
> There's Gcc too as Lars pointed out, but I've never bothered to figure
> out how to use it with nnml.  I use Gcc to keep a copy of everything
> outgoing in nnfolder+archive, but Fcc -> *.spool -> nnml for everything
> outgoing that isn't going to come back like non-list email.

	I currently use this.  If you want to also Gcc everything into
your archive group, just don't set gnus-message-archive-method to nil.
I find it more convient than fcc.  Although it can be nice to have the
mail run through the nnmail splitting process...

	Big disadvantage to Gcc is that you have to have Gnus running to
send mail if you want it foldered away.

;;; This controls the Gcc header for messages.
(setq 
 gnus-message-archive-method nil
 gnus-outgoing-message-group (lambda ()
			       (goto-char (point-max))
			       (let ((group (or gnus-newsgroup-name "")))
				 (cond ((message-news-p)
					"nnml+email:news.archive")
				       ((string-match "^nnml\\+email:"
						      group)
					gnus-newsgroup-name)
				       ((string-match "^nndir:gnus-bug"
						      group)
					"nnml+email:mail.list.ding")
				       (t
					"nnml+email:mail.misc"))))

 )


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-08  2:11     ` David Moore
@ 1997-01-08  3:45       ` Sudish Joseph
  0 siblings, 0 replies; 11+ messages in thread
From: Sudish Joseph @ 1997-01-08  3:45 UTC (permalink / raw)


David Moore writes:
> 	I currently use this.  If you want to also Gcc everything into
> your archive group, just don't set gnus-message-archive-method to nil.
> I find it more convient than fcc.  Although it can be nice to have the
> mail run through the nnmail splitting process...

I switched to using Gcc late last month and have found it convenient
to split it into per-month folders.  The setup I use is:

(setq gnus-message-archive-method
      `(nnfolder "archive"
                 (nnfolder-directory "~/Mail/Outgoing/")
                 (nnfolder-active-file "~/Mail/Outgoing/active")
                 (nnfolder-inhibit-expiry t)
                 (nnfolder-get-new-mail nil)))
(setq gnus-message-archive-group
      '((format-time-string
         (if (message-news-p) "%Y/news-%m-%B" "%Y/mail-%m-%B")
         (current-time))))

I get two new groups automagically every month.

      8( 0): 1997/news-01-January               [3] (nnfolder:archive)
     45( 0): 1997/mail-01-January               [3] (nnfolder:archive)
     42( 0): 1996/mail-12-December              [3] (nnfolder:archive)
      3( 0): 1996/news-12-December              [3] (nnfolder:archive)

Gnus autocreates the directories every year, which is cool.  The month
is in there twice so that I don't need to add a -t to ls -l. :-)

-Sudish


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-07 22:58   ` Steven L Baur
  1997-01-08  0:49     ` Mark Borges
  1997-01-08  2:11     ` David Moore
@ 1997-01-08  7:40     ` Jens Lautenbacher
  1997-01-08 17:15       ` David Moore
  2 siblings, 1 reply; 11+ messages in thread
From: Jens Lautenbacher @ 1997-01-08  7:40 UTC (permalink / raw)



For saving the outgoing mail into the same group as the message is
written from just set the group parameter gcc-self to 't

I can hardly think of a way which would be easier.

Jens


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-08  7:40     ` Jens Lautenbacher
@ 1997-01-08 17:15       ` David Moore
  1997-01-09  7:49         ` Jens Lautenbacher
  0 siblings, 1 reply; 11+ messages in thread
From: David Moore @ 1997-01-08 17:15 UTC (permalink / raw)


Jens Lautenbacher <jens@lemcbed.lem.uni-karlsruhe.de> writes:

> For saving the outgoing mail into the same group as the message is
> written from just set the group parameter gcc-self to 't
> 
> I can hardly think of a way which would be easier.

	Umm, how about something where you didn't have to put 'gcc-self'
in every group parameter when you want every group to archive it's own
outgoing messages.

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    |


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

* Re: [rgnus] FCC in message-mode to nnml group?
  1997-01-08 17:15       ` David Moore
@ 1997-01-09  7:49         ` Jens Lautenbacher
  0 siblings, 0 replies; 11+ messages in thread
From: Jens Lautenbacher @ 1997-01-09  7:49 UTC (permalink / raw)


David Moore <dmoore@UCSD.EDU> writes:

> Jens Lautenbacher <jens@lemcbed.lem.uni-karlsruhe.de> writes:
> 
> > For saving the outgoing mail into the same group as the message is
> > written from just set the group parameter gcc-self to 't
> > 
> > I can hardly think of a way which would be easier.
> 
> 	Umm, how about something where you didn't have to put 'gcc-self'
> in every group parameter when you want every group to archive it's own
> outgoing messages.
> 

How about using topics for mail and mailinglists and just setting
gcc-self to t or 'none in the topic? 

	 Jens



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

end of thread, other threads:[~1997-01-09  7:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-07 20:08 [rgnus] FCC in message-mode to nnml group? Mark Borges
1997-01-07 20:25 ` Lars Magne Ingebrigtsen
1997-01-07 20:55 ` Lars Balker Rasmussen
1997-01-07 22:58   ` Steven L Baur
1997-01-08  0:49     ` Mark Borges
1997-01-08  2:11     ` David Moore
1997-01-08  3:45       ` Sudish Joseph
1997-01-08  7:40     ` Jens Lautenbacher
1997-01-08 17:15       ` David Moore
1997-01-09  7:49         ` Jens Lautenbacher
1997-01-07 21:23 ` David S. Goldberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).