tips:fetchmail:marquage
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
tips:fetchmail:marquage [2006/12/12 20:10] – créée naz | tips:fetchmail:marquage [2007/04/27 19:03] (Version actuelle) – naz | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | Comment faire pour distinguer de quel compte provient un mail si on utilise [[http:// | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | > If you use fetchmail with multiple mail sources / accounts polled, it may be handful to distinguish between these different sources for filtering in your email reader. | ||
+ | > To do this, you may use fetchmail' | ||
+ | > < | ||
+ | poll imap.provider.domain with proto IMAP and options tracepolls | ||
+ | user ' | ||
+ | </ | ||
+ | > It then adds a header of the form : | ||
+ | > | ||
+ | > < | ||
+ | by localhost with IMAP (fetchmail-5.9.11 polling imap.provider.domain account mailaccount) | ||
+ | for you@localhost (single-drop); | ||
+ | </ | ||
+ | > You may then filter it with procmail/ | ||
+ | > < | ||
+ | :0fhw | ||
+ | * ^received: .*fetchmail-.* polling imap.provider.domain account mailaccount | ||
+ | | formail -I " | ||
+ | </ | ||
+ | > Then all you have to do is declare a filter on the " | ||
+ | |||
+ | ===== Mon cas ===== | ||
+ | |||
+ | Avec ma conf, je veux filtrer directement au delivery avec sieve donc j' | ||
+ | et mon filtre sieve donne ça : <code sieve> | ||
+ | |||
+ | if header :contains " | ||
+ | fileinto " | ||
+ | } | ||
+ | </ | ||