Re: prevent gmail from rewriting from envelope

2010-07-15 Thread Nicolas Sebrecht
On Wed, Jul 14, 2010 at 05:42:09PM +0200, Ben Moon wrote:
> Dear Nicolas,
> 
> > Notice I don't set use_envelope_from.
> *grummel* still doesn't work. I was just thinking: do have some official 
> dns-name on your mutt box? I'm behind a router in a private network and 
> thought 
> that this might be the problem; somehow.

This current email is one which is concerned. I only use official emails
service providers.

-- 
Nicolas Sebrecht


Re: prevent gmail from rewriting from envelope

2010-07-12 Thread Nicolas Sebrecht
On Thu, Jul 08, 2010 at 11:10:35AM +0200, Ben Moon wrote:
> 
> Dear Nicolas,
> > >  If I send the mail with mutt the 'from: otheru...@yahoo.de' is always 
> > > changed to 'from: usern...@gmail.com'. Is there a way to prevent this 
> > > rewriting by google when I use mutt?
> > 
> > Yes, this is my current work flow.
> > 
> > In mutt I set "my_hdr From: m...@email" and in gmail I remove the envelope
> > rewriting (somewhere in the options).
> thank you for your answer. Could you please be a bit more precise about the
> 'somewhere in the options'? I haven't found anything. It works with 
> thunderbird,
> though.
> 
> @ Nathaniel
> Yes, since "set use_envelope_from=no" is default, I have tried both

Notice I don't set use_envelope_from.

-- 
Nicolas Sebrecht


Re: prevent gmail from rewriting from envelope

2010-07-08 Thread Nicolas Sebrecht
On Thu, Jul 08, 2010 at 11:10:35AM +0200, Ben Moon wrote:
> 
> > >  If I send the mail with mutt the 'from: otheru...@yahoo.de' is always 
> > > changed to 'from: usern...@gmail.com'. Is there a way to prevent this 
> > > rewriting by google when I use mutt?
> > 
> > Yes, this is my current work flow.
> > 
> > In mutt I set "my_hdr From: m...@email" and in gmail I remove the envelope
> > rewriting (somewhere in the options).
>
> thank you for your answer. Could you please be a bit more precise about the
> 'somewhere in the options'? I haven't found anything. It works with 
> thunderbird,
> though.

-> settings
  -> accounts and import
-> send mail as
  -> edit info
-> Specify a different "reply-to" address (optional): nothing

-- 
Nicolas Sebrecht


Re: prevent gmail from rewriting from envelope

2010-07-07 Thread Nicolas Sebrecht
On Wed, Jul 07, 2010 at 03:41:05PM +0200, Ben Moon wrote:

>   If I send the mail with mutt the 
> 'from: otheru...@yahoo.de' is always changed to 'from: usern...@gmail.com'. 
> Is 
> there a way to prevent this rewriting by google when I use mutt?

Yes, this is my current work flow.

In mutt I set "my_hdr From: m...@email" and in gmail I remove the envelope
rewriting (somewhere in the options).

-- 
Nicolas Sebrecht


Re: Can't set alternates

2010-07-02 Thread Nicolas Sebrecht
On Fri, Jul 02, 2010 at 11:00:32AM +0200, Christian Ebert wrote:
> 
> Since some time alternates has become a command:
> 
> alternates ^...@email\\.address$ ^anot...@email\\.address$
> 
> See man(5) muttrc.
> 
> You can use less strict patterns of course.

Thank you very much, it did solve the problem. I refered to this page :

  http://www.mutt.org/doc/manual/manual-6.html

May I ask why "alternates" is still in the "6.3 Configuration variables"
chapter?

-- 
Nicolas Sebrecht


Can't set alternates

2010-07-02 Thread Nicolas Sebrecht
Hi,

I've added this line in my muttrc file

  set alternates=...@email.address

but got 

  alternates : unknown variable

(translated message) with mutt v1.5.18.

Any idea on what's going on?

-- 
Nicolas Sebrecht


Re: Displaying tar.gz archives

2009-07-22 Thread Nicolas Sebrecht
On Wed, Jul 22, 2009 at 08:00:47AM +0100, Noah Slater wrote:

> I would like to add a mailcap entry so that I view the contents of tar.gz
> archives as a list of filenames, but I'm, not sure how to do it. When I attach
> one, it is added with the application/octet-streem MIME type.
> 
> Any thoughts on how to approach this?

Look at "mime_lookup" in the documentation.

-- 
Nicolas Sebrecht


Re: mutt removing stuff in brackets from subject

2009-07-19 Thread Nicolas Sebrecht
On Wed, Jun 17, 2009 at 02:57:45PM +0200, Michael Tatge wrote:
> 
> * On Wed, Jun 17, 2009 09:47AM +0200 Rejo Zenger (mutt-us...@subs.krikkit.nl) 
> muttered:
> > ++ 16/06/09 19:51 +0200 - Michael Tatge:
> > >> When I respond to an email that has a subject similar to:
> > >> 
> > >> [StuffHere] Blah Blah Blah
> > >> 
> > >> Mutt actually *removes* everything inside of the brackets and the
> > >> brackets themselves.
> > >> 
> > >> Any thoughts on why this happens?
> > >
> > >Works fine here. There is a setting that might be resposible though.
> > >Check reply_regexp
> > 
> > Correct me if I'm wrong, but I don't think that particular setting would 
> > remove a thing form the subject. The manual says:
> > 
> >   A regular expression used to recognize reply messages when threading 
> >   and replying.
> ^

I tend to think it should not be used when threading: replying and
threading are two unrelated tasks.

What about adding a "$thread_regexp"?

-- 
Nicolas Sebrecht


Re: Check folders in an alphabetical way

2009-05-06 Thread Nicolas Sebrecht
On Tue, May 05, 2009 at 10:33:17AM +0200, Aiko Barz wrote:

> I use "set imap_check_subscribed=yes" to check all my subscribed IMAP
> folders. Is it possible to order the subscribe list from the server in
> an alphabetical way?
> 
> To be precise: The 'c' (change-folder) key shall return the next folder
> in alphabetical order.

I don't know if it would work with imap but it should be possible to
order the folder using the key "o".

-- 
Nicolas Sebrecht


Re: [Solved?] mailing lists and gmail with mutt

2009-05-05 Thread Nicolas Sebrecht
On Sat, May 02, 2009 at 08:55:41AM +0200, Nicolas Sebrecht wrote:

> Recently, I moved one of my email address to gmail. The problem is that
> Google thinks it's a good idea to not show what _they_ consider to be
> duplicated mails.
> 
> I have one folder per mailing list. When I send/receive emails to a
> mailing list, I expect to have a copy into my INBOX and another copy
> into the dedicated folder (e.g. the sender did 
>   To: list-address
>   Cc: me
> )
> 
> Also, I'm filtering emails with imapfilter. The rules are based on
> fields like "List-Id". What's happening quite often is that when
> somebody answers (both to a mailing list and me), the first message
> I receive is that which addressed to me. As the second mail is not
> downloaded, it breaks the threads in the folder of the mailing list.

There seems to be a workaround. 

Instead of basing the filter rules against the "List-Id" field,
imapfilter can easily parse both the Cc: and To: headers (contain_cc()
and contain_to()) and copy the mails to the good folder
(copy_messages()).

I expect it should work but as the folders are labels at Google, I can't
say. I didn't tested and probably won't because I've already switched to
gmx.

-- 
Nicolas Sebrecht


Re: mailing lists and gmail with mutt

2009-05-03 Thread Nicolas Sebrecht
On Sat, May 02, 2009 at 07:40:11PM +0700, Dave Patterson wrote:

> To get around the gmail problem of not sending what they think is a
> copy, I use a folder-hook to make a copy of mail sent and place the copy
> in the folder I'm working from, or the catch-all 'Sent' folder. 

Yes. I had some minds like that, but it won't work for the mail I
receive:
To: me
Cc: list

> Occasionally, I will actually log on to their site and delete everything
> I can see.
> 
> One day later, moѕt 'conversations' will remain.
> 
> Think about it.

Ouch. 

Actually, I'm switching to another emails provider (gmx.com).

Thank you all,

-- 
Nicolas Sebrecht


mailing lists and gmail with mutt

2009-05-02 Thread Nicolas Sebrecht
Hi folks!

(My question is not purely mutt related. I'm posting here because I
think here is where I can have the best answers).

Recently, I moved one of my email address to gmail. The problem is that
Google thinks it's a good idea to not show what _they_ consider to be
duplicated mails.

I have one folder per mailing list. When I send/receive emails to a
mailing list, I expect to have a copy into my INBOX and another copy
into the dedicated folder (e.g. the sender did 
To: list-address
Cc: me
)

Also, I'm filtering emails with imapfilter. The rules are based on
fields like "List-Id". What's happening quite often is that when
somebody answers (both to a mailing list and me), the first message
I receive is that which addressed to me. As the second mail is not
downloaded, it breaks the threads in the folder of the mailing list.

Is there a way to tell Google to NOT do what _they_ think is the best
for me?
Or maybe I missed a mutt configuration option?


My web researchs didn't help me.

Thanks,

-- 
Nicolas Sebrecht


Re: get mail in directory browser

2009-04-06 Thread Nicolas Sebrecht
On Mon, Apr 06, 2009 at 09:56:08PM -0500, Zhengquan Zhang wrote:

> macro index,pager G "! /usr/bin/getmail -v \n" "Invoke getmail"

macro generic,pager G "! /usr/bin/getmail -v \n" "Invoke getmail"

-- 
Nicolas Sebrecht


Re: better mailbox lists

2009-04-02 Thread Nicolas Sebrecht

On Thu, Apr 02, 2009 at 10:15:40PM +0800, Chengqi(Lars) Song wrote:

> when i type "c ?" in my mutt i got these:
> 
>  1 drwx-- 70 lars lars 4.0K Apr 02 22:03 ../  
>
>  2 drwxr-xr-x  5 lars lars 4.0K Jan 09 15:12 inbox/   
>
>  8 drwxr-xr-x  5 lars lars 4.0K Jan 09 15:12 postponed/ 
>  9 drwxr-xr-x  5 lars lars 4.0K Jan 09 15:12 sent/ 
> 
> how can i remove that ../ ?

Hmm, it would not be a good idea as it's the way to go to the parent
directory.

-- 
Nicolas Sebrecht



Re: experiences with offlineimap

2009-02-17 Thread Nicolas Sebrecht

On Mon, Feb 16, 2009 at 01:55:49PM -0600, Kevin Beranek wrote:

> > offlineimap has its own mailing list.
> 
> I'm supposedly subscribed to it but I never get any of the messages so I
> figured I probably couldn't send any emails to it.

Then, you should open a bug. I didn't try to subscribe but the website
says "you can subscribe here...". Maybe there's something wrong with the
mailing list. If it doesn't exist anymore, the website should be
updated.

> Thanks for the response.  The problems have become less frequent with
> successive versions; maybe I'll just have to follow the repo more
> closely for a while.

I hope so. Also, you can open a bug to explain your problem and ask for
a step by step proccess to know how give more relevant information.

However, you should have some time to waste that way.

-- 
Nicolas Sebrecht



Re: experiences with offlineimap

2009-02-16 Thread Nicolas Sebrecht

On Mon, Feb 16, 2009 at 11:34:31AM -0600, Kevin Beranek wrote:

> I know this is a little off topic, but I have the impression that there
> are a number of people on this list that use offlineimap and this seemed
> like the best forum for my question.

offlineimap has its own mailing list.

>   It randomly crashes or hangs all the time, about
> once per day on average, but that figure is a little misleading because
> some days it crashes 5-10 times/day and other times it runs fine for 1+
> week without crashing.

> Has anybody had similar experiences with offlineimap or am I the only
> lucky one?

I use offlineimap here and had some similar crashes (not that much
however). The last version from the repository works fine here but I'm
not using the deamon mode.

-- 
Nicolas Sebrecht



Re: How to change dynamically the From hdr?

2009-02-16 Thread Nicolas Sebrecht

On Mon, Feb 16, 2009 at 10:50:16AM +0100, Ennio-Sr wrote:

>  I already use hooks 

Ok.

>  was just
> curious about the possibility to choose on the fly the From hdr the way
> one can do it with  a mailer under X (e.g. gmail.com). 

Not sure to understand what you're looking for exactly. Could you
explain, please ? What's that mysterious feature « choose on the fly the
 From: field ? »

-- 
Nicolas Sebrecht



Re: Archiving

2009-02-13 Thread Nicolas Sebrecht

On Fri, Feb 13, 2009 at 03:25:04PM +0100, Andreas Kalex wrote:

> > (Except for spam; that goes to bogofilter for accounting and then
> > discarded.)
> How do you implement it in the muttrc? Or do you use tools like procmail.

I have those lines in my muttrc :
macro pager "\Cxs" "bogofilter -s && echo \"Mail registered as 
spam.\"" "Mail registered as spam"
macro index "\Cxs" "bogofilter -s && echo \"Mail registered as 
spam.\"" "Mail registered as spam"
macro pager "\Cxus" "bogofilter -Sn && echo \"Mail unregistered 
as spam.\"" "Mail unregistered as spam"
macro index "\Cxus" "bogofilter -Sn && echo \"Mail unregistered 
as spam.\"" "Mail unregistered as spam"
macro pager "\Cxg" "bogofilter -n && echo \"Mail registered as 
good.\"" "Mail registered as good"
macro index "\Cxg" "bogofilter -n && echo \"Mail registered as 
good.\"" "Mail registered as good"
macro pager "\Cxug" "bogofilter -Ns && echo \"Mail unregistered 
as good.\"" "Mail unregistered as good"
macro index "\Cxug" "bogofilter -Ns && echo \"Mail unregistered 
as good.\"" "Mail unregistered as good"
macro pager "\Cxt" "bogofilter -t" "Check"
macro index "\Cxt" "bogofilter -t" "Check"

For instance, I can tell bogofilter "this mail is a spam" by pressing :
Ctrl+x then the 's' key.

As I use a maildir, I also wrote a little wrapper of bogofilter :

$ cat bin/bogofilter-wrapper.sh
#!/bin/sh

mailbox="$1"
spambox="$2"
[[ ! -z "$2" ]] && spambox='[Gmail].Spam'

src="/home/nicolas/Mail/${mailbox}/INBOX/new/"
dest="/home/nicolas/Mail/${mailbox}/${spambox}/new/"


echo "Looking for spam."

spam=0
for mail in $(find "${src}" -type f) ; do
bogofilter -I "${mail}" && {
echo "Spam found : $mail"
spam=$((spam+1))
mv "$mail" "$dest"
}
total=$((total+1))
done

echo "Total spam found : $spam/$total"
#EOF-

I call this script like this from mutt :
macro pager "\Cwf" "bogofilter-wrapper.sh 
'nicolas_MAILBOX_gmail.com' '[Gmail].Spam'" "Filter mails"
macro index "\Cwf" "bogofilter-wrapper.sh 
'nicolas_MAILBOX_gmail.com' '[Gmail].Spam'" "Filter mails"

-- 
Nicolas Sebrecht



Re: how to revert an attachment when composing

2009-02-10 Thread Nicolas Sebrecht

On Wed, Feb 11, 2009 at 10:03:27AM +0800, bill lam wrote:
> 
> When composing new mails, I can use "a" to add attachments. However I
> cannot find any hot-key to revert an attachment (do not attach that
> attachment).  Is there any way to do it?

D ?

-- 
Nicolas Sebrecht