Re: Mutt 1.20. --GPG--

2009-07-03 Thread Jan-Herbert Damm
Hi, 

  * Jan-Herbert Damm wrote:
  
   GPG asks my passphrase but doesn't accept it.
  
  What gpg setup did you use? contrib/gpg.rc? It's not gpg that's asking
  but mutt.  So maybe mutt doesn't call gpg at all or in a wrong way...

Ok, it works fine now. The problem was in the direction pointed to by Rocco:
I aktually wasn't telling mutt at all how to call gpg. I copied the run
commands from the samples/gpg.rc into my .muttrc with only slightly
detailing the path to pgpewrap.

I find that building my own mutt improved my understanding a lot because i was
forced to figure out the workings in detail. With the custom mutt install of
ubuntu on the other hand it seems that these workings are being hidden from
the user, which can lead to selling him for dumb (as the literal 
translation of a german figure of speech would phrase it).


greetings 

jan

 
 I guess I'm running into the same trap as just a few days ago: the ubuntu
 set up with the /etc/Muttrc.d/* files being sourced from /etc/Muttrc. Whereas
 my /opt/mutt/etc/Muttrc does something else.
 
 -
 $ locate gpg.rc
 /etc/Muttrc.d/gpg.rc
 /home/jan/SRC/mutt-1.5.20hg/contrib/gpg.rc
 /opt/mutt/share/doc/mutt/samples/gpg.rc
 /usr/share/doc/mutt/examples/gpg.rc
 - 
 
 Let me fumble with this for a while. I am sure the answer resides in there
 somewhere.
 
 jan, and thanks!

-- 
Bitte beachten Sie auch die Rückseite dieses Schreibens!


Re: How to implement save_empty on maildir?

2009-07-03 Thread Rocco Rutte
Hi,

* Derek Martin wrote:

 On Thu, Jul 02, 2009 at 08:10:21AM +, Jörg Sommer wrote:
  So, create the directory yourself to ensure it's there and yours.
  
  % cat rename-test.c
  #include stdio.h
  #include sys/stat.h
  
  int main(void)
  {
  mkdir(mdir-mutt-delete, 0)  /* this is a temporary directory to
   ensure rename doesn't replace an
   existing directory */
  
|| rename(mdir, mdir-mutt-delete);
  
  return 0;
  }

This an example to outline a proposed solution, I know, but how about
mkdtemp()? Hard-coded temporary file/directory names beg for trouble.

 There are several problems with this.  If the directory exists when
 you do the mkdir, it fails with no clear course of action to take to
 fix the failure; that seems like clearly a bug to me.  Also, if some
 process puts a file in mdir-mutt-delete before you rename it, the
 rename will fail.  In either case, Mutt didn't do what you told it to
 do (remove the maildir when it's empty).  You can't code stuff that
 works sometimes in applications that other people are going to use...

I think you also get strange semantics if a messages is
delivered/appended to 'mdir' between the mkdir() and rename() calls?
Both calls would succeed but you would fail to remove
'mdir-mutt-delete'.

Rocco


pgpM6mIGnVlXq.pgp
Description: PGP signature


MAIL getting queued only

2009-07-03 Thread Kataria, Sunil
Hi,

I recently installed MUTT on RedHat LINUX. 

When I send mail using the following command

/usr/local/bin/mutt -e 'set content_type=text/html' -a 
/usr/ud/FirstBag/REPORT/TotalBags_15036_81JA.xls -c  -b  -s Report T
otal Bags CX162 01 Mar 2009 sunil.kata...@au.unisys.com  
/usr/ud/FirstBag/REPORT/BODYJON

This results the mail queued in /var/spool/clientmqueue directory - from there 
it never move to the mail server.

[r...@brs-ua1-zafrodb1 clientmqueue]# ls -la
total 124
drwxrwx---  2 smmsp    smmsp  4096 Jul  3 17:10 .
drwxr-xr-x 13 root root   4096 Mar  9 12:22 ..
-rw-rw  1 katarias smmsp 30121 Jul  3 17:03 dfn6373WvD003007
-rw-rw  1 katarias smmsp 30121 Jul  3 17:06 dfn6376V4f003088
-rw-rw  1 smmsp    smmsp 30121 Jul  3 17:10 dfn637AjwU003114
-rw-rw  1 katarias smmsp   808 Jul  3 17:03 qfn6373WvD003007
-rw-rw  1 katarias smmsp   808 Jul  3 17:06 qfn6376V4f003088
-rw-rw  1 smmsp    smmsp   820 Jul  3 17:10 qfn637AjwU003114


Can someone please help? I am very new with MUTT.

Thanks in advance.



Sunil Kataria   |  MSC Unix Team  |  GOIS 
Unisys   |  Level 1 Building G 1 Homebush Bay Dr Rhodes, New South Wales 2138 
Australia  |  61 2 9647 6143


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL
and is thus for use only by the intended recipient. If you received this in 
error, please contact the sender and 
delete the e-mail and its attachments from all computers.   


Re: MAIL getting queued only

2009-07-03 Thread jurriaan
From: Kataria, Sunil sunil.kata...@au.unisys.com
Date: Fri, Jul 03, 2009 at 09:50:31PM +1000
 Hi,
 
 I recently installed MUTT on RedHat LINUX. 
 
 When I send mail using the following command
 
 /usr/local/bin/mutt -e 'set content_type=text/html' -a 
 /usr/ud/FirstBag/REPORT/TotalBags_15036_81JA.xls -c  -b  -s Report T
 otal Bags CX162 01 Mar 2009 sunil.kata...@au.unisys.com  
 /usr/ud/FirstBag/REPORT/BODYJON
 
 This results the mail queued in /var/spool/clientmqueue directory - from 
 there it never move to the mail server.
 
 [r...@brs-ua1-zafrodb1 clientmqueue]# ls -la
 total 124
 drwxrwx---? 2 smmsp??? smmsp? 4096 Jul? 3 17:10 .
 drwxr-xr-x 13 root root?? 4096 Mar? 9 12:22 ..
 -rw-rw? 1 katarias smmsp 30121 Jul? 3 17:03 dfn6373WvD003007
 -rw-rw? 1 katarias smmsp 30121 Jul? 3 17:06 dfn6376V4f003088
 -rw-rw? 1 smmsp??? smmsp 30121 Jul? 3 17:10 dfn637AjwU003114
 -rw-rw? 1 katarias smmsp?? 808 Jul? 3 17:03 qfn6373WvD003007
 -rw-rw? 1 katarias smmsp?? 808 Jul? 3 17:06 qfn6376V4f003088
 -rw-rw? 1 smmsp??? smmsp?? 820 Jul? 3 17:10 qfn637AjwU003114
 
 
 Can someone please help? I am very new with MUTT.
 
Mutt, by default, calls /usr/sbin/sendmail to actually transport the
email, IIRC. These symptoms would seem to indicate a problem with that,
not with mutt.

Kind regards,
Jurriaan
-- 
Top Ten Times In History when using the F word was appropriate
(yes, another *%#ing top ten list that you may or maybe haven't read
before. Only one *%#ing way to find out...)
4) I don't suppose it's gonna *%#ing rain.
Joan of Arc


Re: MAIL getting queued only

2009-07-03 Thread Kataria, Sunil
Thanks Jurriaan, 

But I have no issues sending mail using mail command (which uses sendmail).


Best regards,


Sunil Kataria   |  MSC Unix Team  |  GOIS 
Unisys   |  Level 1 Building G 1 Homebush Bay Dr Rhodes, New South Wales 2138 
Australia  |  61 2 9647 6143


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL
and is thus for use only by the intended recipient. If you received this in 
error, please contact the sender and 
delete the e-mail and its attachments from all computers.   

-Original Message-
From: owner-mutt-us...@mutt.org [mailto:owner-mutt-us...@mutt.org] On Behalf Of 
jurri...@rivierenland.xs4all.nl
Sent: Friday, 3 July 2009 9:56 PM
To: mutt-users@mutt.org
Subject: Re: MAIL getting queued only

From: Kataria, Sunil sunil.kata...@au.unisys.com
Date: Fri, Jul 03, 2009 at 09:50:31PM +1000
 Hi,
 
 I recently installed MUTT on RedHat LINUX. 
 
 When I send mail using the following command
 
 /usr/local/bin/mutt -e 'set content_type=text/html' -a 
 /usr/ud/FirstBag/REPORT/TotalBags_15036_81JA.xls -c  -b  -s Report T
 otal Bags CX162 01 Mar 2009 sunil.kata...@au.unisys.com  
 /usr/ud/FirstBag/REPORT/BODYJON
 
 This results the mail queued in /var/spool/clientmqueue directory - from 
 there it never move to the mail server.
 
 [r...@brs-ua1-zafrodb1 clientmqueue]# ls -la
 total 124
 drwxrwx---  2 smmsp    smmsp  4096 Jul  3 17:10 .
 drwxr-xr-x 13 root root   4096 Mar  9 12:22 ..
 -rw-rw  1 katarias smmsp 30121 Jul  3 17:03 dfn6373WvD003007
 -rw-rw  1 katarias smmsp 30121 Jul  3 17:06 dfn6376V4f003088
 -rw-rw  1 smmsp    smmsp 30121 Jul  3 17:10 dfn637AjwU003114
 -rw-rw  1 katarias smmsp   808 Jul  3 17:03 qfn6373WvD003007
 -rw-rw  1 katarias smmsp   808 Jul  3 17:06 qfn6376V4f003088
 -rw-rw  1 smmsp    smmsp   820 Jul  3 17:10 qfn637AjwU003114
 
 
 Can someone please help? I am very new with MUTT.
 
Mutt, by default, calls /usr/sbin/sendmail to actually transport the
email, IIRC. These symptoms would seem to indicate a problem with that,
not with mutt.

Kind regards,
Jurriaan
-- 
Top Ten Times In History when using the F word was appropriate
(yes, another *%#ing top ten list that you may or maybe haven't read
before. Only one *%#ing way to find out...)
4) I don't suppose it's gonna *%#ing rain.
Joan of Arc


Re: MAIL getting queued only

2009-07-03 Thread Rocco Rutte
Hi,

* Kataria, Sunil wrote:

 When I send mail using the following command

 /usr/local/bin/mutt -e 'set content_type=text/html' -a 
 /usr/ud/FirstBag/REPORT/TotalBags_15036_81JA.xls -c  -b  -s Report 
 Total Bags CX162 01 Mar 2009 sunil.kata...@au.unisys.com  
 /usr/ud/FirstBag/REPORT/BODYJON

What version of mutt do you use? Check the mutt manpage for how to use
it, the handling of -a parameter was changed some time ago in a way that
requires you to adjust that call.

 This results the mail queued in /var/spool/clientmqueue directory -
 from there it never move to the mail server.

So, when mutt actually sends the message, it cannot do anything about it
if the delivery tool doesn't report an error. In your case, then the
message is in /var/..., it seems it didn't. So there's no reason for
mutt to further investigate.

You need to look at server logfiles about they're being held back.

Rocco


pgpCr73Bt8dvM.pgp
Description: PGP signature


Re: MAIL getting queued only

2009-07-03 Thread Kataria, Sunil
Hi Rocco,

Mutt version is 1.5.18. And -a option also appears ok. I don't see any
error message in any one system log file.

[r...@brs-ua1-zafrodb1 ~]# /usr/local/bin/mutt --help
/usr/local/bin/mutt: invalid option -- -
Mutt 1.5.18 (2008-05-17)
usage: mutt [options] [-z] [-f file | -yZ]
   mutt [options] [-x] [-Hi file] [-s subj] [-bc addr] [-a
file [...]] [--] addr [...]
   mutt [options] -p
   mutt [options] -A alias [...]
   mutt [options] -Q query [...]
   mutt [options] -D
   mutt -v[v]

options:
  -A aliasexpand the given alias
  -a file attach a file to the message
  -b address  specify a blind carbon-copy (BCC) address
  -c address  specify a carbon-copy (CC) address
  -Dprint the value of all variables to stdout
  -e command  specify a command to be executed after initialization
  -f file specify which mailbox to read
  -F file specify an alternate muttrc file
  -H file specify a draft file to read header and body from
  -i file specify a file which Mutt should include in the body
  -m type specify a default mailbox type
  -ncauses Mutt not to read the system Muttrc
  -precall a postponed message
  -Q variable query a configuration variable
  -Ropen mailbox in read-only mode
  -s subj specify a subject (must be in quotes if it has spaces)
  -vshow version and compile-time definitions
  -xsimulate the mailx send mode
  -yselect a mailbox specified in your `mailboxes' list
  -zexit immediately if there are no messages in the mailbox
  -Zopen the first folder with new message, exit immediately
if none
  -hthis help message
  --treat remaining arguments as addr even if starting with
a dash
when using -a with multiple filenames using -- is
mandatory


Best Regards,

Sunil Kataria 


-Original Message-
From: owner-mutt-us...@mutt.org [mailto:owner-mutt-us...@mutt.org] On
Behalf Of Rocco Rutte
Sent: Friday, 3 July 2009 10:04 PM
To: mutt-users@mutt.org
Subject: Re: MAIL getting queued only

Hi,

* Kataria, Sunil wrote:

 When I send mail using the following command

 /usr/local/bin/mutt -e 'set content_type=text/html' -a
/usr/ud/FirstBag/REPORT/TotalBags_15036_81JA.xls -c  -b  -s
Report Total Bags CX162 01 Mar 2009 sunil.kata...@au.unisys.com 
/usr/ud/FirstBag/REPORT/BODYJON

What version of mutt do you use? Check the mutt manpage for how to use
it, the handling of -a parameter was changed some time ago in a way that
requires you to adjust that call.

 This results the mail queued in /var/spool/clientmqueue directory -
 from there it never move to the mail server.

So, when mutt actually sends the message, it cannot do anything about it
if the delivery tool doesn't report an error. In your case, then the
message is in /var/..., it seems it didn't. So there's no reason for
mutt to further investigate.

You need to look at server logfiles about they're being held back.

Rocco


Re: MAIL getting queued only

2009-07-03 Thread Rocco Rutte
Hi,

* Kataria, Sunil wrote:

 Mutt version is 1.5.18. And -a option also appears ok. I don't see any
 error message in any one system log file.

No, it doesn't:

 Mutt 1.5.18 (2008-05-17)
 usage: mutt [options] [-z] [-f file | -yZ]
mutt [options] [-x] [-Hi file] [-s subj] [-bc addr] [-a file 
 [...]] [--] addr [...]

This has been clarified a bit later, but it means that whenever you have
an -a option, you _must_ specify it last and add -- after it, e.g.

mutt -s foo ... -a somefile -- recipient

The following is for 1.5.20, but this part applies to 1.5.18 as well:

http://dev.mutt.org/doc/manual.html#tab-commandline-options

(see below the table)

Rocco


pgpMHH3j5Yld1.pgp
Description: PGP signature


Re: MAIL getting queued only

2009-07-03 Thread Michael Tatge
* On Fri, Jul 03, 2009 10:01PM +1000 Kataria, Sunil 
(sunil.kata...@au.unisys.com) muttered:
 But I have no issues sending mail using mail command (which uses sendmail).

Are $from, $use_from set?

HTH,

Michael
-- 
BOFH excuse #214:

Fluorescent lights are generating negative ions. If turning them off doesn't 
work, take them out and put tin foil on the ends.

PGP-Key-ID: 0xDC1A44DD
Jabber: init...@amessage.de