Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Richard Riley <rileyrg@gmail.com>
To: info-gnus-english@gnu.org
Subject: limiting storage of sent emails
Date: Thu, 06 May 2010 17:05:02 +0200	[thread overview]
Message-ID: <vd2bb7-4o3.ln1@news.eternal-september.org> (raw)


I am trying NOT to archive or store sent messages if the From field is a
certain value. This is not working reliably for me. Which function or method
should I use to access the correct From field? I had used the "original
article" field but that doesnt work if its the first email of a gnus
session so I guess that was not correct.

from my custom.el

,----
|  '(gnus-message-archive-group (quote ((if (message-news-p) nil (unless (string-match "rileyrg@" (gnus-fetch-field "From")) "nnimap+mymail:INBOX.sent")))))
`----

What his should be doing is ONLY archiving emails and then only if the
From is not rileyrg@.

Any help or pointers appreciated.

                 reply	other threads:[~2010-05-06 15:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vd2bb7-4o3.ln1@news.eternal-september.org \
    --to=rileyrg@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).