Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:33:14+00:00 2026-06-18T05:33:14+00:00

The common ethicete about mailing lists is to answer to a human, and CC

  • 0

The common ethicete about mailing lists is to answer to a human, and CC the mailing list, like this:

To: help-volounter@dev.full
Cc: some-program@mailing-list.com
Subject: Re: Describtion of the problem

Problem is that I get two copies of such email(it’s expected). I would like to procmail one copy to mailing list mbox, and another to inbox mbox. Is it simple way to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:33:15+00:00Added an answer on June 18, 2026 at 5:33 am

    It’s not entirely trivial, but there are some building blocks you may find useful.

    You can detect whether you have already received a message by keeping a cache of seen message-id:s. This is a standard technique described in the procmailex man page in more detail. I would propose to use the same technique to decide where to file an incoming message; if it has not been seen before, deliver to your inbox; otherwise, file to the list’s folder.

    The locking becomes somewhat more complex because you need to obtain the lock file before entering the formail -D recipe. This can be done by using the LOCKFILE special variable.

    # Is this message addressed both to yourself and to the list?
    :0
    * ^TO_you@example\.net\>
    * ^TO_mailing-list@elsewhere\.example\.org\>
    {
        # Select regular inbox as default target for this message
        dest=$DEFAULT
    
        # Lock msgid.lock for exclusive access to msgid.cache
        LOCKFILE=msgid.lock
    
        # If message-id is already cached, override $dest
        :0
        * H ? formail -D 8192 msgid.cache
        { dest=listbox/ }
    
        # Release lock
        LOCKFILE=
    
        # Deliver to $dest
        :0
        $dest
    }
    

    This is not 100% foolproof. If you get a Bcc:, for example, your own address will not be in the headers, and so ^TO_ yourself will not match.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A common piece of code I use for simple string splitting looks like this:
This common pattern feels a bit verbose: if (condition) Some(result) else None I was
A common operation I perform is joining a list of lists of letters into
A common type of makefile has a line like this: OBJS=something.o other.o third.o progname.o
The common example for C++11 range-based for() loops is always something simple like this:
Common examples for a ObjC object are like this (for the header file): @interface
In Common Lisp you can do this: (defun foo (bar &key baz quux) (list
Common situation: I have a client on my server who may update some of
The common Superclass of Rectangle and Circle is Shape. If I initialize some shapes,
A common issue I have is getting confused what $(this) is referring to. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.