Menu

#18 Match against From, To or Subject fields.

open
None
5
2008-10-26
2008-10-10
Anonymous
No

Dear Peter, Nikolaus and Brandon,

It would be very interesting if archivemail could match against From, To and Subject header fields.

So It would be possible to archive or delete just old informative messages in a automated manner, like "eticket generated", "New order arrived" or from addresses like "etickts@domain.com".

I'll be trying archivemail with Maildir.

Thank you in advance,

Gabriel Goes.

Discussion

  • Nikolaus Schulz

    Nikolaus Schulz - 2008-10-26
    • assigned_to: nobody --> nikosch
     
  • Nikolaus Schulz

    Nikolaus Schulz - 2008-10-26

    Well, I'm not sure if this is within the scope of archivemail. Basically, the question is if archivemail should support more complex filter criteria. For example, we could (quite easily) grep the mail headers, or even the body. Would be a rather expensive operation, of course. I postpone this for now.

     
  • Peter Poeml

    Peter Poeml - 2008-10-27

    There is an option called --filter-append.

    I generally use it as "filter-append = 'not FROM poeml@ not ANSWERED not FLAGGED'".

    If you read up how you specify your criteria in IMAP language, this might do what you want.

    If you have working example, it could be great to document them.

     
  • Nikolaus Schulz

    Nikolaus Schulz - 2008-10-29

    Hi Peter!

    I tend to forget about this option. :-) So yes, one can craft IMAP SEARCH commands. But obviously, that doesn't help users with local mailboxes, which is probably the majority. And at least I personally regard --filter-append as a powerful extension interface for IMAP experts, but not something I would like to impose on our typical users. If we want to support some sort of pattern matching in general, we will have to roll our own.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.