server pop

2011-01-06 Thread Stéphane Ortega
Hello,

I'm a french and novice user of mutt.
I would like to know how to configure mutt for received messages from two 
server pop.

I've put in my muttrc :
set pop_host=pop.free.fr:110
account-hook . 'unset pop_user; unset pop_pass; unset tunnel'
account-hook pop://pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***'
#account-hook pop://pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***'

but I received messages from only one server...
Could you help me please ?

-- 
Stéphane Ortega Apiculteur 
Le clos des Rosiers 33160 Saint Aubin de Médoc
stephaneortega.fr - 06.84.04.13.50




Re: format string: time for today, date for others.

2011-01-06 Thread David Champion
* On 05 Jan 2011, Toby Cubitt wrote: 
 
 is dated less than 24h before the current time. That's *not* what I'm
 after. When the current time is 00:01 on the 6 Jan, I want an email that
 arrived at 23:59 on the 5 Jan to display Sun 05, even though the email
 is only two minutes old.

I understand now.  In your first post I read emphasis in the multiple
conditionality, not in the idea that yesterday is not the same as
less than one day ago.

Does your patch still support the original behavior of date_conditional?
I personally don't want everything to change at midnight.  (I'm more
sensitive to how long ago something happened than to what day it was at
the time.)  But if your version does both it's a more complete feature,
and I'm interested it using it instead.

-- 
David Champion  *  d...@uchicago.edu  *  IT Services  *  University of Chicago


Re: format string: time for today, date for others.

2011-01-06 Thread Toby Cubitt
On Thu, Jan 06, 2011 at 03:09:53AM +, Toby Cubitt wrote:
 As far as I recall (it's a long time since I looked at it), the
 date_conditional patch straightforwardly compares the email date stamp
 against the current time. The 1d conditional is true whenever the email
 is dated less than 24h before the current time. That's *not* what I'm
 after. When the current time is 00:01 on the 6 Jan, I want an email that
 arrived at 23:59 on the 5 Jan to display Sun 05, even though the email
 is only two minutes old.

In case anyone's interested, I've put the modified version of the
date_conditional patch which implements the above behaviour at:

http://www.dr-qubit.org/download.php?file
=mutt/mutt-1.5.21-patch.tsc.date_conditional.1

[URL should all be on one line]

Note that you can still get the original date_conditional behaviour by
specifying a finer time unit in the date format. E.g. if you want to
specify a format for emails from the last 24 hours, use 24h as the time
span. If you want to specify a format for emails from today (as described
above), use 1d as the time span.

(Roughly speaking, in this version of the date_conditional patch, the
current time and the email's date stamp are converted to the unit of time
specified in the conditional, and the fractional part discarded, before
comparing the two.)

Toby
-- 
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain

email: ts...@cantab.net
web: www.dr-qubit.org


Re: server pop

2011-01-06 Thread du yang
Hello,

if you have two accounts on the same server,
you may set the account-hooks like this,

account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***'
account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***'

hope it could help you.

- du yang

On Thu, Jan 06, 2011 at 18:04 +0100, St閜hane Ortega wrote:
 Hello,
 
 I'm a french and novice user of mutt.
 I would like to know how to configure mutt for received messages from two 
 server pop.
 
 I've put in my muttrc :
 set pop_host=pop.free.fr:110
 account-hook . 'unset pop_user; unset pop_pass; unset tunnel'
 account-hook pop://pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***'
 #account-hook pop://pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***'
 
 but I received messages from only one server...
 Could you help me please ?
 

-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


Re: server pop

2011-01-06 Thread du yang
Hi,

sorry for a typing error in the last post. it should be,
account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***' 
   
account-hook pop://us...@pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***' 

- du yang

On Thu, Jan 06, 2011 at 18:04 +0100, St閜hane Ortega wrote:
 Hello,
 
 I'm a french and novice user of mutt.
 I would like to know how to configure mutt for received messages from two 
 server pop.
 
 I've put in my muttrc :
 set pop_host=pop.free.fr:110
 account-hook . 'unset pop_user; unset pop_pass; unset tunnel'
 account-hook pop://pop.free.fr:110/ 'set pop_user=USER1 pop_pass=***'
 #account-hook pop://pop.free.fr:110/ 'set pop_user=USER2 pop_pass=***'
 
 but I received messages from only one server...
 Could you help me please ?
 

-- 
子曰:“君子矜而不争,群而不党。”
--《论语》


Re: format string: time for today, date for others.

2011-01-06 Thread du yang
Hi,

I improved the script to fulfill the author's the expectation(just display time 
for today's mails),
only 'if condition' changed.

- du yang


#!/bin/bash

epoch=$1

if [ $(date -d $(date '+%Y-%m-%d') +%s) -gt $epoch ]; then
 echo %4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l%4c?) %?H?[%H]?%s% 
  
else
 
 echo %4C %Z %{   %H:%M} %-15.15F (%?l?%4l%4c?) %?H?[%H]?%s% 
  
fi


On Thu, Jan 06, 2011 at 00:38 +0100, Andreas Kneib wrote:
 Hi,
 
 * Yue Wu schrieb am Donnerstag, den 06. Januar 2011:
 
  Is there a date/time string that show the time only for today's emails
  but date for else? So, in the index, the emails that got today will
  show the time only, but the ones that got on other days will show the
  date and time.
 
 I use this script:
 http://groups.google.com/group/de.comm.software.mailreader.misc/browse_thread/thread/ab966bddc0b42446/421549103438b830?q=#421549103438b830
 
 In ~/.muttrc:
 #v+
 set index_format=./format_date.sh '%[%s]' |
 #v-
 
 #
 #!/bin/bash
 #
 # File: format_date.sh 
 
 epoch=$1
 
 if [ $(($(date '+%s') - $1)) -gt 86400 ]; then
 echo %4C %Z %{%d.%m.%y} %-15.15F (%?l?%4l%4c?) %?H?[%H]?%s%
 else
 echo %4C %Z %{   %H:%M} %-15.15F (%?l?%4l%4c?) %?H?[%H]?%s%
 fi 
 #
 
 
 Andreas

--