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

  • Home
  • SEARCH
  • 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 3312402
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:59:28+00:00 2026-05-17T21:59:28+00:00

as im using different email clients to read/send my mails i want to setup

  • 0

as im using different email clients to read/send my mails i want to setup procmail to move my emails to a the folder which is normally done by Thunderbird filter feature.

I know that i can do it by using the following code for procmail in my email users .procmailrc file:

:0:
* ^From:.test@host.name.com
myfolder

But i have a list of about 50 email adresses which i would like to move to that specific “myfolder”.

So by using

:0:
* ^From:.first@mail.com
* ^From:.second@mail.com
jimsmail

doesnt help, because procmail interprets them by using the AND operater. So the code above would be true if From is first@… AND second@…, which will never be true.

So how do i use the OR operator.

Actually i have a simple text file where all email adresses are.
Would be cool to have a feature where procmail ready in that file and checks if From matches with at least one of the lines in the file, the moves email to “myfolder”.

Something like

 :0:
 * ^From:file(email.txt)
 myfolder

Does anybode if this or something similar is possible.
I dont want to add these 3 lines 50 times in my procmailrc file.

  • 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-05-17T21:59:29+00:00Added an answer on May 17, 2026 at 9:59 pm

    I found the solution.
    With this solution im able to use a simple email text file holding all email addresses in each in one line.

    The code in my .procmailrc is as follows:

    EMAILFILE=/path/to/my/emailfile
    FROM=`formail -xFrom: | sed -e 's/ *(.*)//; s/>.*//; s/.*[:<] *//'`
    :0
    * ? fgrep -qxis $FROM $EMAILFILE
    myfolder
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apparently I can't move files on different volumes using Directory.Move. I have read that
using jython I have a situation where emails come in with different attachments. Certain
Using Python I want to be able to draw text at different angles using
My MySQL database contains several tables using different storage engines (specifically myisam and innodb).
I work on a variety of projects using different languages and platforms. Parts of
Some of my script are using different encoding, and when I try to combine
I'm using two different libraries in my project, and both of them supply a
I've got a couple of ASP.Net Usercontrols that I am using in different locations
Trying to create several layers of folders at once C:\pie\applepie\recipies\ without using several different
You do you manage the same presenter working with different repositories using the MVP

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.