Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: francois.lagarde.nospam@spam.fr (François LAGARDE)
Subject: Re: Differents summary-line-format a solution
Date: Thu, 10 Feb 2005 11:41:53 +0100	[thread overview]
Message-ID: <m2sm44vgr2.fsf@spam.fr> (raw)
In-Reply-To: <m2acqef3yz.fsf@tremplin-utc.net>

francois@lagarde.spam wrote:
> I have got an archive folder to keep a copy of sent mails. I would use
> an appropriate summary-line-format including the "to" field.
> For other folders, i want to use the "from" field.

I found a solution, i don't know if it the best :

(setq gnus-parameters
      '((".*" 
        (gnus-summary-line-format
        "%-1R %-1U  %[%-15,15uB%] %B%(%1{%-50,50s%}%) %&user-date;\n")
         (display . all); to set visible read mails
        )
        ("^nnfolder.*" ;folder keeping sent mails
        (gnus-summary-line-format ;display the to field
        "%-1R %-1U  %[%-23,23~(form (gnus-extra-header 'To))@] 
          %B%(%1{%-50,50s%}%) %&user-date;\n")
        )
))

I would  also set posting-styles, but the first rule always matches (".*").
But if i use gnus-posting-styles it is ok.

(setq gnus-posting-styles
       '(
        (".*"
          (address "an adresse"))
        ("^fr\\.\\|^gnu\\."
          (address "an adresse"))
        (".*neuf.*"
          (address "an adresse"))
)
)

any idea..


      parent reply	other threads:[~2005-02-10 10:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 10:00 Differents summary-line-format francois
2005-02-09 10:05 ` Adam Sjøgren
2005-02-10 10:41 ` François LAGARDE [this message]

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=m2sm44vgr2.fsf@spam.fr \
    --to=francois.lagarde.nospam@spam.fr \
    /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).