Picon

Sender's time zone in attribution?

I'd like to have an attribution (the line above quoted text in
replies) that looks like this:

'On Mon, 30 Jun 2008, 21:12 EDT, Firstname Lastname wrote:'

where "EDT" would always be the alphabetic time zone abbreviation of
the sender's time zone.

If I do:

set date_format="%a, %d %b %Y, %H:%M %Z"
and
set attribution="On %d, %n wrote:"

I get:

On Mon, 30 Jun 2008, 22:23 +0200, Firstname Lastname wrote:

that is, the offset from UTC.

If I use 
set attribution="On %d, %n wrote:"
I get the desired alphabetic abbreviation, but the time and time zone
(not surprisingly) of my own location.

Is there any way to get %Z to expand to the alphabetic abbreviation of
the sender's time zone?

All this is on Xubuntu Gutsy, if that matters.

(Continue reading)

Picon

Re: Sender's time zone in attribution?

> If I use 
> set attribution="On %d, %n wrote:"

Sorry, that should have been:
 set attribution="On %D, %n wrote:"

> I get the desired alphabetic abbreviation, but the time and time zone
> (not surprisingly) of my own location.

m.

Gary Johnson | 1 Jul 04:35

Re: Sender's time zone in attribution?

On 2008-06-30, Marianne Promberger <marianne.promberger <at> gmail.com> wrote:
> I'd like to have an attribution (the line above quoted text in
> replies) that looks like this:
> 
> 'On Mon, 30 Jun 2008, 21:12 EDT, Firstname Lastname wrote:'
> 
> where "EDT" would always be the alphabetic time zone abbreviation of
> the sender's time zone.
> 
> If I do:
> 
> set date_format="%a, %d %b %Y, %H:%M %Z"
> and
> set attribution="On %d, %n wrote:"
> 
> I get:
> 
> On Mon, 30 Jun 2008, 22:23 +0200, Firstname Lastname wrote:
> 
> that is, the offset from UTC.
> 
> If I use 
> set attribution="On %d, %n wrote:"
> I get the desired alphabetic abbreviation, but the time and time zone
> (not surprisingly) of my own location.
> 
> Is there any way to get %Z to expand to the alphabetic abbreviation of
> the sender's time zone?

I don't know for sure, but I doubt it, since the mapping from 
(Continue reading)

Picon

Re: Sender's time zone in attribution?

On Monday, 30 June 2008, 19:35 UTC-0700, Gary Johnson wrote:
> On 2008-06-30, Marianne Promberger <marianne.promberger <at> gmail.com> wrote:
> > I'd like to have an attribution (the line above quoted text in
> > replies) that looks like this:
> > 
> > 'On Mon, 30 Jun 2008, 21:12 EDT, Firstname Lastname wrote:'
> > 
> > where "EDT" would always be the alphabetic time zone abbreviation of
> > the sender's time zone.

...

> The only way I can think of to do this is to extract the timezone 
> name from the sender's Date header, e.g., by setting 'header'  
> before replying, then using a editor macro to pull the timezone name 
> from the Date line into your attribution line.

Thanks, that makes sense, but in that case it's not important enough
at the moment to go to such lengths.

Thanks anyway!

m.

Raphael Brunner | 1 Jul 22:02
Picon
Picon

Re: strange charset problem with german/kyrillic chars

> use lots of month mutt, but one thing I can't solve. All Mails are in
>> the right charset (from russia, germany, etc...) in the pager. But,
>> in
>> the index, if there are german umlauts or kyrillic chars, they are
>> displayed as '?'.
>> 
>> in my muttrc its this:
>> set charset = 'utf-8'

> You should not need to set this explicitly if your locale is
> correct.

> try:
> set assumed_charset="windows-1252"

ok, if I comment out all charset-settings in muttrc, then the failure is
the same. If I use assumed_charset="windows-1252", then the subject
change the chars, but only to "ñ Ô" etc... (asc: 241 and 212 etc...)
before (with assumed_charset='utf-8') in the index the subject is
displayed correct except german umlauts and russian chars. If I edit the
message in vim, then the subject-line is displayed correct. only in
mutt-index and pager the charset is weird. Very strange.
If I receive a copy of the same mail with eg. mozilla-mail, there it's
displayed correct. Because that, I think, something is wrong with my
settings. 

Any Idea how to debug the next step?
Any help is welcome...
thanks a lot, raphael

(Continue reading)

mutt attachments html and cron

Hello Mutt-users,

  i'm a bit new to linux world, but my current task needs to be
finished though...

  okay.. here is the deal:
  i need to send html - e-mail from commandline with bunch of
attachments.. every day ..
  i've wrote bash-script already..
  and when run from console (like direct-execute) everything goes
fine.. just as planned..
--------------------
mutt -s "System summary report for $THEDATE" \
  -e 'my_hdr From: ----scrapped eMail------' \
  -e 'set content_type="text/html"' \
  -a $TMPDIR"/d6intprod1_cpu.png" \
  p.rysevets <at> sam-solutions.net < /home/master/stat/getsend_rrdstat_template.html
--------------------

this way.. mutt sets content type of std-in'ed .html to text/html...
and all the mailers read it properly and display right html-page with
attached pictures... i.e. fine, as i wanted it..

but... here comes the troubles...

when i set this script to run by cron... - everything works except
----------
  -e 'set content_type="text/html"' \
----------
even the change of "From:" is working fine... but not the content
(Continue reading)

Michael Kjorling | 2 Jul 16:26

Re: mutt attachments html and cron

On 2 Jul 2008 17:19 +0300, by P.Rysevets <at> sam-solutions.net (Paul -Spawn- Rysevets):
> ah.. btw.. when run by cron i've managet to get error-out:
> ----------------------
> Error in /home/webmaster/.muttrc, line 2: header_cache: unknown variable
> source: errors in /home/webmaster/.muttrc
> Error in command line: content_type: unknown variable
> ----------------------

Do you by any chance have two different versions of Mutt installed?
Try adding a cron job to be executed soon that runs "which mutt" - is
the path the same one as when you run it from the command line?

Usually when manually executed programs behave differently from when
they are run through cron, the problem is that the environments
differ.

--

-- 
Michael Kjörling .. michael <at> kjorling.se .. http://michael.kjorling.se
* ..... No bird soars too high if he soars with his own wings ..... *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *

Cristóbal Palmer | 2 Jul 17:05
Picon

Re: mutt attachments html and cron

On Wed, Jul 02, 2008 at 05:19:39PM +0300, Paul -Spawn- Rysevets wrote:
> Hello Mutt-users,
> 
>   i'm a bit new to linux world, but my current task needs to be
> finished though...
> 
>   okay.. here is the deal:
>   i need to send html - e-mail from commandline with bunch of
> attachments.. every day ..
>   i've wrote bash-script already..
>   and when run from console (like direct-execute) everything goes
> fine.. just as planned..
> --------------------
> mutt -s "System summary report for $THEDATE" \
>   -e 'my_hdr From: ----scrapped eMail------' \
>   -e 'set content_type="text/html"' \
>   -a $TMPDIR"/d6intprod1_cpu.png" \
>   p.rysevets <at> sam-solutions.net < /home/master/stat/getsend_rrdstat_template.html
> --------------------
> 
> this way.. mutt sets content type of std-in'ed .html to text/html...
> and all the mailers read it properly and display right html-page with
> attached pictures... i.e. fine, as i wanted it..
> 
> but... here comes the troubles...
> 
> when i set this script to run by cron... - everything works except
> ----------
>   -e 'set content_type="text/html"' \
> ----------
(Continue reading)

Hein Zelle | 3 Jul 10:27
Picon

Re: forwarding multiple messages

Rocco Rutte wrote:

>> is there a way to mime-forward multiple messages?
>
> Yes, though you can't do it with issueing a forward. You first create your 
> message as usual and, when in the compose menu, use <attach-message> 
> function (default bound to 'A' IIRC) to attach any number of message from 
> any mailbox (or even cross-mailbox).

Thank you, that's just what I needed.  I wasn't aware of that
capability, it allows to deal with messages just as with regular
attachments.  Nice!

Regards,
	Hein Zelle

--

-- 

 Unix is user friendly. It's just very particular about who 
 it's friends are.

 Hein Zelle                     hein <at> icce.rug.nl
	                        http://www.icce.rug.nl/~hein

Vladimir Marek | 6 Jul 13:03
Picon

Re: showing new mail

> since I updated mutt on my debian-machine to version 1.5.18, it 
> doesn't show if there has new mail arrived anymore. 
> To describe it: usually I start mutt, hit 'c' and mutt shows me my 
> subscribed mailboxes and marks the ones with new mails in it with a 
> 'N' besides it. 
> 
> But now it doesn't do it anymore. I can only watch out for new arrived 
> mails by checking the last-updated-timestamp in the mailboxes-list. Is 
> this a bug, or am I missing something in my .muttrc now - which works 
> for me since several years now? 

Maybe clearing your header cache helps ?

--

-- 
	Vlad

Gmane