[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: store sent mail and incoming mail in one group?
From: |
Andrew Raines |
Subject: |
Re: store sent mail and incoming mail in one group? |
Date: |
Tue, 19 Jul 2005 15:22:44 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
Xiao-Yong Jin <xj2106@columbia.edu> writes:
> Somehow, I want my mail group to be managed more
> or less like the way news groups do. That is I
> can see my mails in sort of subject in one group
> where both my incoming mails and sent-out mails
> are listed.
>
> Does it mean what I only need is to put the sent
> mails in the same group with my incoming mail?
> And how?
I do this. It sets Gcc: based on what group I'm in.
For example, mailing lists to which I'm subscribed
will automatically send me a copy, so there's no use
saving the one I composed.
(defun aar-gnus-outgoing-message-group ()
(let ((outbox "nnimap+personal:INBOX.outbox"))
(cond ((message-news-p) outbox)
((and gnus-newsgroup-name
(stringp gnus-newsgroup-name)
(string-match "^\\(nnml:mail\\)\\|nnimap" gnus-newsgroup-name)
(not (string-match "\\.list\\." gnus-newsgroup-name))
(not (string-match "[a-z.]+\\.its\\." gnus-newsgroup-name)))
(list gnus-newsgroup-name)))))
(setq gnus-outgoing-message-group 'aar-gnus-outgoing-message-group)
--
aa@raines.ws (Andrew A. Raines)