Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* store sent mail and incoming mail in one group?
@ 2005-07-18  5:15 Xiao-Yong Jin
  2005-07-18 16:16 ` David Z Maze
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Xiao-Yong Jin @ 2005-07-18  5:15 UTC (permalink / raw)


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?


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

* Re: store sent mail and incoming mail in one group?
  2005-07-18  5:15 store sent mail and incoming mail in one group? Xiao-Yong Jin
@ 2005-07-18 16:16 ` David Z Maze
  2005-07-20 12:20   ` Xiao-Yong Jin
  2005-07-18 19:47 ` Jason Dufair
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: David Z Maze @ 2005-07-18 16:16 UTC (permalink / raw)


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 always bcc mail to myself:

(require 'message)
(setq message-required-mail-headers
      (nconc message-required-mail-headers
	     (list '(Bcc . "dmaze@mit.edu"))))

And then sort mail using nnmail-split-fancy with "any" tags:

(setq nnmail-split-fancy
      `(|
        (: spam-split)
        (any mail "mail.misc.admin")
        (& ; mailing lists
         (to "ding@gnus\\.org" "mail.lists.gnus.ding")
         ; ...
        )
        (& ; personal mail
         (any "friend@example\\.org" "mail.people.example.friend")
         ; ...
        )
        (any "dmaze@.*mit\\.edu" "mail.misc.personal")
        "mail.misc.impersonal")
      nnmail-split-methods 'nnmail-split-fancy)

Other people seem to like using Gnus' message-archive feature and
inserting Gcc: headers in outgoing mail to archive in particlar
groups; see info://gnus/Archived+Messages for details on how this
works.

  --dzm


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

* Re: store sent mail and incoming mail in one group?
  2005-07-18  5:15 store sent mail and incoming mail in one group? Xiao-Yong Jin
  2005-07-18 16:16 ` David Z Maze
@ 2005-07-18 19:47 ` Jason Dufair
  2005-07-20 11:44   ` Xiao-Yong Jin
  2005-07-19  2:58 ` Steven Woody
  2005-07-19 20:22 ` Andrew Raines
  3 siblings, 1 reply; 10+ messages in thread
From: Jason Dufair @ 2005-07-18 19:47 UTC (permalink / raw)


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?

Easiest is probably just to Bcc: yourself on all messages.  Then you'll
see your replies in your inbox, threaded if you have threading turned
on.  You can easily do this per group in the *Group* buffer or via
posting styles in your .gnus:

(setq gnus-posting-styles
      '((".*"
         (name "Jason Dufair")
	 (address "me@mymail.com")
	 (organization "My Organization")
	 (signature-file "~/some_file.txt")
	 (reply-to "me@mymail.com")
	 (bcc "me@mymail.com"))))

-- 
Jason Dufair - jase@dufair.org
http://www.dufair.org/
"Ad in classifieds: Pandora's Box (no box) $5"


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

* Re: store sent mail and incoming mail in one group?
  2005-07-18  5:15 store sent mail and incoming mail in one group? Xiao-Yong Jin
  2005-07-18 16:16 ` David Z Maze
  2005-07-18 19:47 ` Jason Dufair
@ 2005-07-19  2:58 ` Steven Woody
  2005-07-19 20:22 ` Andrew Raines
  3 siblings, 0 replies; 10+ messages in thread
From: Steven Woody @ 2005-07-19  2:58 UTC (permalink / raw)


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 use archive mechanism as below,

(setq gnus-message-archive-group
      '((if (message-news-p)
	    "nnml:send-news"
	  "nnml:mail.misc")))


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

* Re: store sent mail and incoming mail in one group?
  2005-07-18  5:15 store sent mail and incoming mail in one group? Xiao-Yong Jin
                   ` (2 preceding siblings ...)
  2005-07-19  2:58 ` Steven Woody
@ 2005-07-19 20:22 ` Andrew Raines
  2005-07-20  8:33   ` Xiao-Yong Jin
  3 siblings, 1 reply; 10+ messages in thread
From: Andrew Raines @ 2005-07-19 20:22 UTC (permalink / raw)


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)


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

* Re: store sent mail and incoming mail in one group?
  2005-07-19 20:22 ` Andrew Raines
@ 2005-07-20  8:33   ` Xiao-Yong Jin
  0 siblings, 0 replies; 10+ messages in thread
From: Xiao-Yong Jin @ 2005-07-20  8:33 UTC (permalink / raw)


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.


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

* Re: store sent mail and incoming mail in one group?
  2005-07-18 19:47 ` Jason Dufair
@ 2005-07-20 11:44   ` Xiao-Yong Jin
  0 siblings, 0 replies; 10+ messages in thread
From: Xiao-Yong Jin @ 2005-07-20 11:44 UTC (permalink / raw)


Jason Dufair <jase@dufair.org> 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?
>
> Easiest is probably just to Bcc: yourself on all messages.  Then you'll
> see your replies in your inbox, threaded if you have threading turned
> on.  You can easily do this per group in the *Group* buffer or via
> posting styles in your .gnus:
>
> (setq gnus-posting-styles
>       '((".*"
>          (name "Jason Dufair")
> 	 (address "me@mymail.com")
> 	 (organization "My Organization")
> 	 (signature-file "~/some_file.txt")
> 	 (reply-to "me@mymail.com")
> 	 (bcc "me@mymail.com"))))

Well, I don't know much about the format of mail.  What's the
difference between cc & bcc & gcc?

>
> -- 
> Jason Dufair - jase@dufair.org
> http://www.dufair.org/
> "Ad in classifieds: Pandora's Box (no box) $5"


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

* Re: store sent mail and incoming mail in one group?
  2005-07-18 16:16 ` David Z Maze
@ 2005-07-20 12:20   ` Xiao-Yong Jin
  2005-07-20 16:35     ` Ted Zlatanov
  0 siblings, 1 reply; 10+ messages in thread
From: Xiao-Yong Jin @ 2005-07-20 12:20 UTC (permalink / raw)


David Z Maze <dmaze@mit.edu> 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 always bcc mail to myself:
> 
> (require 'message)
> (setq message-required-mail-headers
>       (nconc message-required-mail-headers
> 	     (list '(Bcc . "dmaze@mit.edu"))))
> 
> And then sort mail using nnmail-split-fancy with "any" tags:
> 
> (setq nnmail-split-fancy
>       `(|
>         (: spam-split)
>         (any mail "mail.misc.admin")
>         (& ; mailing lists
>          (to "ding@gnus\\.org" "mail.lists.gnus.ding")
>          ; ...
>         )
>         (& ; personal mail
>          (any "friend@example\\.org" "mail.people.example.friend")
>          ; ...
>         )
>         (any "dmaze@.*mit\\.edu" "mail.misc.personal")
>         "mail.misc.impersonal")
>       nnmail-split-methods 'nnmail-split-fancy)
It will be tricky to put my sent mails in group to which my mail 
replies.

> 
> Other people seem to like using Gnus' message-archive feature and
> inserting Gcc: headers in outgoing mail to archive in particlar
> groups; see info://gnus/Archived+Messages for details on how this
> works.
> 
>   --dzm


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

* Re: store sent mail and incoming mail in one group?
  2005-07-20 12:20   ` Xiao-Yong Jin
@ 2005-07-20 16:35     ` Ted Zlatanov
  2005-07-22 15:37       ` Xiao-Yong Jin
  0 siblings, 1 reply; 10+ messages in thread
From: Ted Zlatanov @ 2005-07-20 16:35 UTC (permalink / raw)


On 20 Jul 2005, xj2106@banana.cc.columbia.edu wrote:

> It will be tricky to put my sent mails in group to which my mail 
> replies.

As long as the References header is correct, you can use the
gnus-registry package to do this (it works for any mail, not just your
send mail).  It remembers where Message-IDs are, and any reply to a
known Message-ID will go in the correct group.

Ted

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


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

* Re: store sent mail and incoming mail in one group?
  2005-07-20 16:35     ` Ted Zlatanov
@ 2005-07-22 15:37       ` Xiao-Yong Jin
  0 siblings, 0 replies; 10+ messages in thread
From: Xiao-Yong Jin @ 2005-07-22 15:37 UTC (permalink / raw)


Ted Zlatanov <tzz@lifelogs.com> writes:

> On 20 Jul 2005, xj2106@banana.cc.columbia.edu wrote:
>
>> It will be tricky to put my sent mails in group to which my mail 
>> replies.
>
> As long as the References header is correct, you can use the
> gnus-registry package to do this (it works for any mail, not just your
> send mail).  It remembers where Message-IDs are, and any reply to a
> known Message-ID will go in the correct group.
>
I don't see much about this gnus-registry in gnus' info pages.  Does
it mean that after I do the initialize as comments in file
gnus-registry.el and put the following in my fancy-split alist
(: gnus-registry-split-fancy-with-parent)
and all things are set?


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

end of thread, other threads:[~2005-07-22 15:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18  5:15 store sent mail and incoming mail in one group? Xiao-Yong Jin
2005-07-18 16:16 ` David Z Maze
2005-07-20 12:20   ` Xiao-Yong Jin
2005-07-20 16:35     ` Ted Zlatanov
2005-07-22 15:37       ` Xiao-Yong Jin
2005-07-18 19:47 ` Jason Dufair
2005-07-20 11:44   ` Xiao-Yong Jin
2005-07-19  2:58 ` Steven Woody
2005-07-19 20:22 ` Andrew Raines
2005-07-20  8:33   ` Xiao-Yong Jin

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