[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: store sent mail and incoming mail in one group?
From: |
Xiao-Yong Jin |
Subject: |
Re: store sent mail and incoming mail in one group? |
Date: |
Wed, 20 Jul 2005 16:33:14 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) |
Andrew Raines <aa@raines.ws> writes:
> 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)
It works great for me.
Thanks.