2013-07-08 18 views
2

我能夠找到以下兩個工作示例字符串/since:...來配置Wanderlust中的某些文件夾過濾器(.folders),但我找不到任何東西來定義一組天數 - 例如,/since:last-7-days/$inbox/from:2012-01-01-to-2012-12-31/%inboxWanderlust/Emacs - filters - 字符串格式/ since:X#ofDays /%收件箱

我的網站提供商(liquidweb)的支持團隊不知道 - 顯然他們在面對類似情況時也使用Google搜索。我認爲必須有一種方法來進一步定義過濾器。任何幫助將不勝感激。我在Google上找到了一些mu4e(不是 Wanderlust),它使用類似的東西 - 它不會給我任何錯誤消息,但是沒有電子郵件出現在過濾的文件夾中:/date:today..now/.../date:7d..now/...

這裏是流浪工作配置:

/since:yesterday/%INBOX.Sent  "Sent -- since yesterday" 

/since:2013-07-01/%INBOX.Sent  "Sent -- since 07-01-2013" 

/flag:unread/%inbox    "INBOX -- unread" 
%inbox       "INBOX -- all" 
%INBOX.Sent      "Sent" 
%INBOX.Junk      "Junk" 
%INBOX.Trash      "Trash" 
%INBOX.Drafts      "Drafts" 

回答

0

我不知道爲什麼沒有拿出早些時候在我的任何看似無盡的谷歌搜索,但可以肯定的是金:http://www.gohome.org/wl/doc/wl_23.html

Filter Folder 

A folder to access virtual folder which collects all messages that satisfy a condition. 

Format: 

`/' condition `/' target-folder 

In the condition part, you can specify following. 

    Partial filter: `first:number', `last:number' first: number messages are picked from top of folder. last: number messages are picked from bottom of folder. Example: 

    /last:10/-fj.os.linux -> Latest 10 messages from -fj.os.linux are picked. 
    /first:20/%inbox  -> First 20 messages from %inbox are picked. 

    Date filter: `since:date', `before:date' since: only messages arrived since date are picked. before: only messages arrived before date are picked. You can specify following as date. 

    yesterday -> a day before today. 
    lastweek -> same day of last week. 
    lastmonth -> same day of last month. 
    lastyear -> same day of last year. 
    numberdaysago -> number days ago. (e.x. '3daysago') 
    day-month-year -> specify date directly (ex. 1-Nov-1998) 

    Example: 

    /since:3daysago/+inbox -> messages arrived since 3 days ago in +inbox 
           are picked. 
    /before:yesterday/+inbox -> messages arrived before yesterday in +inbox 
           are picked. 

    Field filter: `field:value' All messages that have field and its value is value are picked. field and value are case insensitive. Example: 

    /from:teranisi/+inbox -> In +inbox, messages which have From: field 
          and its value includes "teranisi" string are picked. 
    /body:foo/%inbox  -> In %inbox, messages which have "foo" text 
          are picked. 

    Compound condition If you combine conditions by character `|', it is considered as OR condition. `&' is considered as AND condition, likewise. Condition can be grouped by parentheses (`(', and `)'). `/tocc:xxxx/' is an abbreviation of `/to:xxxx|cc:xxxx/'. `/!tocc:xxxx/' is an abbreviation of `/!to:xxxx&!cc:xxxx/'. Example: 

    /from:teranisi&!to:teranisi/+inbox 
          -> In +inbox, messages are picked if the message's 
          From: field includes "teranisi" and 
          To: field doesn't include "teranisi". 

    /tocc:"Yuuichi Teranishi"/+inbox 
          -> In +inbox, messages are picked if the 
          message's To: field or Cc: field includes 
          "Yuuichi Teranishi". 

    /(from:yt|from:teranisi)&subject:report/+inbox 
          -> In +inbox, messages are picked if the message's 
          From: field includes "yt" or "teranisi", and 
          Subject includes "report". 

Tip for string description: 

Space character, `"', `/',`)',`|' and `&' should be enclosed with `"' in value string. (`"' should be escaped with `\' in it). You can enclose the string with `"' even it does not contain these characters. 

Advanced example: 

*%inbox,/from:teranisi/%[email protected] 
     -> Messages in %inbox or 
      message is in the %[email protected] folder and it's From field 
      includes "teranisi" are collected. 

/last:100//to:teranisi/*+inbox,%inbox 
     -> Latest 100 messages which is in the +inbox or %inbox folder 
      and To: field matches "teranisi". 

/from:hogehoge//last:20//tocc:teranisi/%#mh/[email protected] 
     -> Pick messages which have From: field and it includes "hogehoge" 
      from latest 20 messages in the %#mh/[email protected] 
      and To: or Cc: field includes "teranisi".